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
/** | |
* START | |
* -------------------- | |
* Go to http://jsbin.com, | |
* Hit the X in the top left corner | |
* Ensure only JavaScript and Console are selected in the midlle | |
* Enter code in the JavaScript window and see the results in the console | |
* Copy in each of the blocks below into the jacascript window | |
* Then in the top right hand cornr of the console press clear and then run | |
* The coding style and patterns here is the accepted modern norm, you will see older styles in the wild |
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
// This file does only one thing it can not call on other functions | |
const mysql = require('mysql'); | |
const connection = mysql.createConnection({ | |
host : process.env.MYSQL_HOST, | |
user : process.env.MYSQL_USER, | |
password : process.env.MYSQL_PASSWORD, | |
database : process.env.MYSQL_DATABASE | |
}); |
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
<script> | |
suite('caja-sanitizer', function() { | |
test('testdiv is equal to one', function() { | |
// Setup | |
var element = fixture('BasicTestFixture'); | |
var elementShadowRoot = element.shadowRoot; | |
// Select Stuff | |
var div1 = elementShadowRoot.querySelector('#div1'); | |
var div2 = elementShadowRoot.querySelector('.div2'); |
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
'use strict'; | |
const aws = require('aws-sdk'); | |
exports.s3PutBase64 = (image, folder, imageName) => { | |
return new Promise(function(resolve, reject) { | |
const buf = new Buffer(image.replace(/^data:image\/\w+;base64,/, ""), 'base64'); | |
const s3 = new aws.S3(); | |
aws.config = { |
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
Morning ideas and jokes, in writers meeting | |
boil down ideas | |
Not afraid of throwing ideas around | |
Progression of ideas that ends up being somthing | |
When ofence is caused they know they have somthing good | |
Sketches | |
Inking | |
Animation | |
Everybody does everything | |
fast turn around |
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
pragma solidity ^0.4.0; | |
contract myAge { | |
uint age = 41; | |
function getAge() constant returns(uint){ | |
return age; | |
} | |
} |
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 _test(actions){ | |
return actions.reduce((chain, action) => { | |
return chain.then(() => action.functionToCall(action.argumentToSend)).then(val => console.log(val)); | |
}, Promise.resolve()); | |
} | |
function _one(data){ | |
return new Promise((resolve, reject) => { | |
setTimeout(function(){ | |
console.log(data); |
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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
[ -z "$PS1" ] && return | |
# don't put duplicate lines in the history. See bash(1) for more options | |
# ... or force ignoredups and ignorespace |
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
get-transactions-time-limit = 3 | |
block-log-dir = "blocks" | |
block-interval-seconds = 1 | |
rcvd-block-trans-execution-time = 72 | |
trans-execution-time = 18 | |
create-block-trans-execution-time = 18 | |
per-authorized-account-transaction-msg-rate-limit = 1800 | |
per-code-account-transaction-msg-rate-limit-time-frame-sec = 18 | |
per-code-account-transaction-msg-rate-limit = 18000 | |
per-code-account-max-storage-db-limit-mbytes = 5 |
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
server { | |
listen 80; | |
listen [::]:80; | |
server_name test.swarmdev.city; | |
location / { | |
proxy_pass http://127.0.0.1:8088; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection 'upgrade'; |