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 QuestionAnswerer | |
| def say_hello | |
| "Hey there! Just wanting to test out the gist API" | |
| end | |
| end |
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
| var input = new mOxie.FileInput({ browse_button: '#filePicker' }); | |
| var formData = new mOxie.FormData(); | |
| input.bind('change', function(e) { | |
| formData.append('myFile', e.target.files[0]); | |
| var xhr = new mOxie.XmlHttpRequest(); | |
| xhr.open('POST', 'http://localhost:3000', true); | |
| xhr.send(formData); | |
| }); |
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 getter(o, propChain, undefinedDefault) { | |
| var | |
| props = propChain.split('.'), | |
| len = props.length, | |
| val = o; | |
| for (var i = 0; i < len; i++) { | |
| val = val[props[i]]; | |
| if (val === undefined) break; | |
| } |
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
| var doIt = true, dontDoIt = false; | |
| (doIt ? call1 : call2).call(null, 'hey there'); | |
| (dontDoIt ? call1 : call2).call(null, 'hey there'); | |
| (dontDoIt ? call1 : call2)('hey there'); | |
| // as alternative to: | |
| if (doIt) { | |
| call1('hey there'); | |
| } |
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 Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
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() { | |
| console.log('YOUVE BEEN INJECTED!!!'); | |
| }) |
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
| { | |
| "src_folders": "./tests", | |
| "output_folder": "./results", | |
| "selenium" : { | |
| "start_process" : true, | |
| "server_path" : "./node_modules/selenium-server/lib/runner/selenium-server-standalone-2.38.0.jar", | |
| "log_path" : "", | |
| "host" : "127.0.0.1", | |
| "port" : 3333 | |
| }, |
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
| sudo docker run \ | |
| --volume=/:/rootfs:ro \ | |
| --volume=/var/run:/var/run:rw \ | |
| --volume=/sys:/sys:ro \ | |
| --volume=/var/lib/docker/:/var/lib/docker:ro \ | |
| --publish=8080:8080 \ | |
| --detach=true \ | |
| --name=cadvisor \ | |
| google/cadvisor:latest |
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
| { | |
| "name": "[update name]", | |
| "version": "1.0.0", | |
| "description": "", | |
| "main": "index.js", | |
| "scripts": { | |
| "test": "echo \"Error: no test specified\" && exit 1", | |
| "build.lib": "./node_modules/.bin/babel -D -s false -d ./lib ./src/lib", | |
| "build.lib.w": "npm run build.lib -- -w", |
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
| module.exports = { | |
| env: { | |
| es6: true, | |
| node: true | |
| }, | |
| extends: 'standard', | |
| rules: { | |
| indent: [2, 2, {"SwitchCase": 1}], | |
| //overrides |
OlderNewer