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
Show hidden characters
{ | |
// == Enforcing Options =============================================== | |
"bitwise" : true, // Prohibit bitwise operators (&, |, ^, etc.). | |
"curly" : true, // Require {} for every new block or scope. | |
"eqeqeq" : true, // Require triple equals i.e. `===`. | |
"forin" : true, // Require `for in` loops to use `hasOwnPrototype` checks. | |
"immed" : true, // Require immediate invocations to be wrapped in parens e.g. `( function(){}() );` | |
"latedef" : true, // Prohibit variable use before definition. | |
"newcap" : true, // Require capitalization of all constructor functions e.g. `new F()`. |
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
#!/bin/bash | |
SERVERS=(108.162.196.125 108.162.197.125) | |
for server in ${SERVERS[*]} | |
do | |
echo "Now processing $server" | |
wget --timeout=10 -t1 -O tor.txt https://check.torproject.org/cgi-bin/TorBulkExitList.py?ip=$server | |
for ip in `tail -n +4 tor.txt` |
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
// Option 1: require inline | |
var app = express(); | |
app.get('/', require('routes/index')); | |
app.get('/login', require('routes/login').index); | |
app.post('/login', require('routes/login').do_login); | |
// Easy to split up routes | |
// Centralized route paths |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName:'Ember Twiddle', | |
foo: 'foo', | |
bar: Ember.computed(function() { | |
return this.getWithDefault('baz.bop', 'no therapy needed'); | |
}) | |
}); |