This file contains 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
/* eslint-disable import/no-default-export */ | |
/** | |
* Axiom Ingest Splitter | |
* | |
* - Run `npx wrangler dev src/index.ts` in your terminal to start a development server | |
* - Open a browser tab at http://localhost:8787/ to see your worker in action | |
* - Run `npx wrangler publish src/index.ts --name my-worker` to publish your worker | |
* | |
* Learn more at https://developers.cloudflare.com/workers/ | |
* |
This file contains 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
####################################################################################################################################### | |
# Check for swearing and other words | |
# https://gist.github.com/SkyM/1641459 | |
####################################################################################################################################### | |
"`dirname $0`"/pre-commit-swearing | |
if [ $? -ne 0 ] | |
then | |
exit 1; | |
fi |
This file contains 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
// UserStore.ts | |
// | |
// This is the code you write and is executed on the Node.js server side. | |
// The decorators can be used to automatically turn it into Express routes. | |
// | |
// Pretty much already exists using `routing-controllers` NPM | |
@Route('/api/users') | |
export class UserStore { | |
@Get('/') |
This file contains 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
{ | |
"$\UF729" = moveToBeginningOfParagraphAndModifySelection:; // shift-home | |
"$\UF72B" = moveToEndOfParagraphAndModifySelection:; // shift-end | |
"^\UF729" = moveToBeginningOfDocument:; // ctrl-home | |
"^\UF72B" = moveToEndOfDocument:; // ctrl-end | |
"^$\UF729" = moveToBeginningOfDocumentAndModifySelection:; // ctrl-shift-home | |
"^$\UF72B" = moveToEndOfDocumentAndModifySelection:; // ctrl-shift-end | |
/* home */ | |
"\UF729" = "moveToBeginningOfLine:"; |
This file contains 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 https = require('https'); | |
const querystring = require('querystring'); | |
exports.handler = (event, context, callback) => { | |
console.log('Received event:', event); | |
const postData = querystring.stringify({}); | |
const options = { | |
hostname: 'my-glitch.glitch.me', |
This file contains 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
/** | |
* This is a sample that connects Lambda with IFTTT Maker channel. The event is | |
* sent in this format: <serialNumber>-<clickType>. | |
* | |
* The following JSON template shows what is sent as the payload: | |
{ | |
"serialNumber": "GXXXXXXXXXXXXXXXXX", | |
"batteryVoltage": "xxmV", | |
"clickType": "SINGLE" | "DOUBLE" | "LONG" | |
} |
This file contains 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
[alias] | |
# short hand | |
co = checkout | |
br = branch | |
# short hand with some flags | |
st = status -sb | |
# reset all files | |
nuke = reset --hard HEAD |
This file contains 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
module: { | |
rules: [ | |
{ | |
test: /\.less$/, | |
use: [ | |
...(process.env.NODE_ENV === 'production' | |
? [ | |
{ | |
loader: MiniCssExtractPlugin.loader, | |
}, |
This file contains 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
if application "Google Chrome" is running then | |
tell application "Google Chrome" | |
activate | |
repeat with w in (windows) | |
set j to 0 | |
repeat with t in (tabs of w) | |
set j to j + 1 | |
tell t | |
if URL starts with "http://www.youtube.com/watch" or URL starts with "https://www.youtube.com/watch" then | |
set (active tab index of w) to j |
This file contains 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
// This will comment out any lines that begin with wordPattern in jsonMain.js and cssMain.js | |
// jsonMain.js and cssMain.js moved to these locations in VSCode 1.22.1 | |
sed -i -e "s/wordPattern/\/\/wordPattern/g" /Applications/Visual\ Studio\ Code.app/Contents/Resources/app/extensions/json-language-features/client/out/jsonMain.js | |
sed -i -e "s/wordPattern/\/\/wordPattern/g" /Applications/Visual\ Studio\ Code.app/Contents/Resources/app/extensions/css-language-features/client/out/cssMain.js |
NewerOlder