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
Microsoft Windows [Version 6.1.7600] | |
Copyright (c) 2009 Microsoft Corporation. All rights reserved. | |
C:\Users\jpmadmin>pathping jinglepunks.com | |
Tracing route to jinglepunks.com [67.23.14.32] | |
over a maximum of 30 hops: | |
0 jinglewin7 [192.168.0.141] | |
1 192.168.0.1 | |
2 160.79.63.209 |
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
var MyC; | |
describe("MyC", function(){ | |
beforeEach(function(){ | |
// Load in the templates thanks to jasmine-jquery | |
loadFixtures("tmpl.html"); | |
// Instantiates all of the views and sets up routes. | |
MyC = new MyController(); |
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
// myModule.js | |
var n = 100; | |
exports.getNumber = function(){} | |
exports.setNumber = function(){} | |
// app.js | |
var myMod = require('./myModule'); | |
console.log(myMod.getNumber()); |
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
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
# irb3 - Runs an IRB-esque prompt (but it's NOT really IRB!) over multiple | |
# versions of Ruby at once (using RVM) | |
# | |
# By Peter Cooper, BSD licensed | |
# | |
# Main dependency is term-ansicolor for each impl: | |
# rvm exec gem install term-ansicolor |
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
let mapleader="," | |
set nocompatible | |
" allow backspacing over everything in insert mode | |
set backspace=indent,eol,start | |
set nobackup | |
set nowritebackup | |
set history=50 " keep 50 lines of command line history |
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
def output name=((default=true); "caius") | |
puts "name: #{name.inspect}" | |
puts "default: #{default.inspect}" | |
end | |
output | |
# >> name: "caius" | |
# >> default: true | |
output "avdi" |
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
# For RubyQue question: http://rubeque.com/problems/home-on-the-range | |
def find_range | |
min = 0 | |
default_max = 99 | |
max = default_max | |
goal = 4494 | |
while min <= max | |
current_sum = (1..100).to_a[min..max].reduce(:+) | |
if current_sum == 4494 |
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
require([ | |
'lib/dom_router', | |
'vendor/modernizr.custom.08494', | |
'jquery_ujs', | |
'lib/document-write-override' | |
], function(dom_router) { | |
dom_router.route({ | |
//... | |
}); |
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
import requests, json | |
from collections import Counter | |
districts = json.loads(requests.get('http://public-crest.eveonline.com/districts/').text)['items'] | |
systems = {} | |
constellations = {} | |
s_times = {} | |
c_times = {} |
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 ApplicationController < ActionController::Base | |
#Deailing with AngularJS CRSF issues | |
#... | |
protect_from_forgery with: :exception | |
after_action :set_ng_csrf_token | |
#... | |
protected | |
# Dealing with CSRF token issues. |
OlderNewer