SEARCH
(?<!:local\(|:global\()(\.[a-zA-Z\-0-9]+)(?!;)
Note: don't forget to skip numbers
REPLACE TO
:global($1)
| git_insights() { | |
| # Check Git repository | |
| if ! git rev-parse --is-inside-work-tree > /dev/null 2>&1; then | |
| echo "Err: Not in a valid Git repository!" | |
| return 1 | |
| fi | |
| echo -e "\n=== Git Insights ===" | |
| echo "=========================================================================================================================================" |
| 0.0.0.0 memuplay.com | |
| 0.0.0.0 www.memuplay.com | |
| 0.0.0.0 u888.v.baishan-cloud.net | |
| 0.0.0.0 u999.v.bsclink.cn | |
| 0.0.0.0 uz95.v.bsclink.cn | |
| 0.0.0.0 ut89.v.bsclink.cn | |
| 0.0.0.0 dl.memuplay.com | |
| 0.0.0.0 www.microvirt.com | |
| 0.0.0.0 microvirt.com | |
| 0.0.0.0 hebei.22.121.in-addr.arpa |
| 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); | |
| } |