This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Context = { | |
name: 'pablo', | |
dogs: [ | |
{ | |
name: 'Fikkie' | |
}, | |
{ | |
name: 'Jantje' | |
} | |
], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SomeClass { | |
constructor() { | |
this.x = 0; | |
} | |
getX() { | |
return this.x; | |
} | |
setX(val) { | |
this.x = val; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm run lint | grep '.*/partofpath/.*' | while read -r line ; do | |
echo "Processing $line" | |
# your code goes here | |
lebab --replace $line --transform args-rest | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function clickNextEntry() { | |
$('[title="AUS_ Hours Worked | 7.6 Hours | Approved"]').click() | |
} | |
function selectNewFeatures() { | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const execSync = require("child_process").execSync; | |
const writeFileSync = require("fs").writeFileSync; | |
const resolve = require("path").resolve; | |
function getDependencyInfo(dependency) { | |
return JSON.parse(execSync(`yarn info --json ${dependency}`)); | |
} | |
/** | |
upgradeCommonDependencies is only needed when using this script for dependencies shipped from the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Keeps checking the spirit of tasmania booking page for new available ferries. | |
I run this script in the chrome developer tools console with this page open: | |
https://www.spiritoftasmania.com.au/my-booking#?booking=XXXXX&lastname=YYYYY&step=ReturnFare&version=2 | |
To open chrome devtools press: Option + ⌘ + J (on macOS), or Shift + CTRL + J (on Windows/Linux) then click the console tab. | |
You need to be on the page because of browser security policies, but technically these requests dont require a browser env | |
and could also be run in a nodejs script. |
OlderNewer