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
// jest.config.js | |
const neutrino = require('neutrino'); | |
process.env.NODE_ENV = process.env.NODE_ENV || 'test'; | |
module.exports = neutrino().customJest(); |
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
class Foo extends Component { | |
state = { | |
email: '', | |
password: '', | |
}; | |
handleChange = e => { | |
this.setState({ | |
[e.target.name]: e.target.value, | |
}); |
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
'use strict'; | |
const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
module.exports = { | |
use: [ | |
['@neutrinojs/airbnb', { | |
"eslint": { | |
"rules": { | |
"semi": ["off"], | |
// Restricting for..of seems pretty controversial, let's disable that. |
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
lib-cov | |
*.seed | |
*.log | |
*.csv | |
*.dat | |
*.out | |
*.pid | |
*.gz | |
pids |
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
Command to run: | |
ssh -L 2222:localhost:8501 [email protected] | |
where 2222 is the local port mapping it can be any number above 1000 | |
where localhost must be set to localhost and refers to your current connection | |
where 8501 is the port you will be opening up on the remote machine | |
where [email protected] is the first hop in your quest for internal access |
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
JSWEEKLY BINGO | |
+-------------------------------+-------------------------------+-------------------------------+ | |
| An article from someone who | | | | |
| just figured out | Baby's first functional | How to do this one very | | |
| prototype-based OO and thinks | programming | specific thing in Node.js | | |
| everyone else needs telling | | | | |
+-------------------------------+-------------------------------+-------------------------------+ | |
| | | | | |
| A new jQuery release | A job in San Francisco | An introduction to an MVC | | |
| | | framework | |
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
function deferredRequest( resource, data ) { | |
return $.Deferred(function( dfd ) { | |
amplify.request({ | |
resourceId: resource, | |
data: data, | |
success: dfd.resolve, | |
error: dfd.reject | |
}); | |
}).promise(); | |
} |
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
person.eat(food, function() { | |
if (typeof food === 'tacobell') { | |
// Kinda yum... | |
setInterval(function() { | |
// Oh noes! | |
// http://www.hulu.com/watch/10304/saturday-night-live-colon-blow | |
colon.blow(); | |
}, 120000); // 2 hrs. | |
} | |
}); |
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
// JSLint: | |
/*global window, parseInt*/ | |
// Conditionally check value, in case | |
// future implementations of parseInt | |
// provide native base-10 by default. | |
(function () { | |
var _parseInt = window.parseInt; | |
if (_parseInt('09') === 0) { |
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
<!doctype html> | |
<html> | |
<head></head> | |
<body> | |
<ul> | |
<li><a href="#">1</a></li> | |
<li><a href="#">2</a></li> | |
<li><a href="#">3</a></li> | |
</ul> |
NewerOlder