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
| // Processing code by Etienne JACOB | |
| // motion blur template by beesandbombs | |
| // opensimplexnoise code in another tab might be necessary | |
| // --> code here : https://gist.github.com/Bleuje/fce86ef35b66c4a2b6a469b27163591e | |
| int[][] result; | |
| float t, c; | |
| float ease(float p) { |
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 (context, trackingId, options) { | |
| const history = context.history; | |
| const doc = document; | |
| const nav = navigator || {}; | |
| const storage = localStorage; | |
| const encode = encodeURIComponent; | |
| const pushState = history.pushState; | |
| const typeException = 'exception'; | |
| const generateId = () => Math.random().toString(36); | |
| const getId = () => { |
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
| # | |
| # Reference implementation of a load balanced PgBouncer service on Amazon ECS | |
| # | |
| # see: https://engineering.loyaltylion.com/load-balanced-pgbouncer-service-on-amazon-ecs-f02120d1733e | |
| # | |
| resource "aws_lb" "pgbouncer" { | |
| name = "${var.environment}-pgbouncer" | |
| internal = true | |
| load_balancer_type = "network" |
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
| { | |
| "scripts": { | |
| "build": "npm run build:es2015 && npm run build:esm && npm run build:cjs && npm run build:umd && npm run build:umd:min", | |
| "build:es2015": "tsc --module es2015 --target es2015 --outDir dist/es2015", | |
| "build:esm": "tsc --module es2015 --target es5 --outDir dist/esm", | |
| "build:cjs": "tsc --module commonjs --target es5 --outDir dist/cjs", | |
| "build:umd": "rollup dist/esm/index.js --format umd --name YourLibrary --sourceMap --output dist/umd/yourlibrary.js", | |
| "build:umd:min": "cd dist/umd && uglifyjs --compress --mangle --source-map --screw-ie8 --comments --o yourlibrary.min.js -- yourlibrary.js && gzip yourlibrary.min.js -c > yourlibrary.min.js.gz", | |
| } | |
| } |
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
| // $ yarn add request request-promise | |
| // $ node count userA userB | |
| const request = require('request-promise') | |
| const get = resource => request({ | |
| url: /^https/.test(resource) ? resource : `https://api.github.com/${resource}`, | |
| headers: { | |
| 'User-Agent': 'GitHub Contrib Counter', | |
| 'Authorization': 'token YOUR_PERSONAL_ACCESS_TOKEN' |
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
| files: | |
| # If this file is edited, it must be removed from EC2 instance prior to deploy. | |
| "/opt/elasticbeanstalk/hooks/appdeploy/pre/09_yarn_install.sh" : | |
| mode: "000775" | |
| owner: root | |
| group: users | |
| content: | | |
| #!/usr/bin/env bash | |
| set -xe |
This guide describes how to bootstrap new Production Core OS Cluster as High Availability Service in a 15 minutes with using etcd2, Fleet, Flannel, Confd, Nginx Balancer and Docker.
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
| // Babel 2015 - ES6 | |
| // Convert a complex JS Object to GraphQL Query, should handle most use cases as of 21/01/2016 | |
| const o = { | |
| query: { | |
| fields: { | |
| complex: { | |
| aliasFor: "Products", | |
| processArgs: { | |
| coupon: (value) => { | |
| return `"${JSON.stringify(value).replace(/"/g, "\\\"")}"`; // passing json string as a argument |