SEARCH
(?<!:local\(|:global\()(\.[a-zA-Z\-0-9]+)(?!;)
Note: don't forget to skip numbers
REPLACE TO
:global($1)
| A) just-skip | |
| B) crappy episode | |
| C) maybe watch or just skip all | |
| D) maybe watch or skip some parts | |
| E) non-important episode but not bad one | |
| F) important episode but skipping is sometimes required | |
| 1.3rd / S1E4 (A) | |
| 1.5th / S1E6 (C, god-dilemma stuff) | |
| 1.15th / S1E16 (C, trial stuff) |
SEARCH
(?<!:local\(|:global\()(\.[a-zA-Z\-0-9]+)(?!;)
Note: don't forget to skip numbers
REPLACE TO
:global($1)
| import { js } from './js-literal'; | |
| // easy call | |
| let result = js()`1`; | |
| // auto context | |
| let result2 = js()`${result}`; | |
| assert(result === result2); | |
| // auto context, objects |
| const PAGE_KEYS_CREATE: React.FC = () => { | |
| return <Form | |
| submit={(data) => console.log(data)} | |
| submitText="Create" | |
| fields={{ | |
| name: { | |
| label: 'Name', | |
| type: 'text', | |
| validation: GenericTextValidation |
| export class Lock { | |
| private chain: Promise<any> = Promise.resolve(null); | |
| busy = false; | |
| acquire(deadlockSafeTimeout = 0, acquireTimeout = 0) { | |
| let acquireTimeoutId: any = null; | |
| let acquireFailed = false; | |
| let unlock: () => void; | |
| let unlockingPromise = new Promise(r => unlock = r); |
| function deferred() { | |
| let r; | |
| let p = new Promise(a => r = a); | |
| p.r = r; | |
| return p; | |
| } | |
| function lock() { | |
| let queue = []; | |
| let locked = false; | |
| return { |
| var getRobberies = function (done) { | |
| console.log('%c Soygun seçiliyor.', 'background: black; color: white') | |
| $.ajax({ | |
| type: "GET", | |
| url: 'https://www.thecrims.com/api/v1/robberies', | |
| success: function (res) { | |
| done(res.single_robberies | |
| .filter(robbery => robbery.successprobability == 100) | |
| .sort((a, b) => b.difficulty - a.difficulty) | |
| .find((x, index) => index == 0)) |
| function asyncForeach(array, fn, atEnd) { | |
| var at = -1; | |
| function next(shouldBreak) { | |
| if (shouldBreak || ++at == array.length) { | |
| if (atEnd) { | |
| setTimeout(atEnd); | |
| } | |
| } else { | |
| setTimeout(fn, 0, array[at], next); | |
| } |
| // Millet evalle tc kimlik doğrulama yazmış. Manyak la bunlar | |
| // 10. satırda 7 * t - c negatif çıkması durumunda hesabın bozulmaması için +30 yapılmıştır. (Bazı insanların negatif çıkabiliyor) | |
| function tcKimlikKontrol(s) { | |
| if (!(/^[1-9]\d{9}[02468]$/.test(s))) return false; | |
| var t = +s[0] + +s[2] + +s[4] + +s[6] + +s[8], | |
| c = +s[1] + +s[3] + +s[5] + +s[7]; | |
| if (s[9] != ((30 + t * 7 - c) % 10)) return false; |
| alias biggestfile='du -cks * | sort -rn | head' | |
| alias freedisk='df -h' | |
| alias foldersize='du -hs' |