Skip to content

Instantly share code, notes, and snippets.

View churro-s's full-sized avatar

Churro churro-s

  • Los Angeles, CA 90064
View GitHub Profile
@aharpole
aharpole / .powrc
Last active March 12, 2024 23:11 — forked from 8bitDesigner/.powrc
Everything you need to use RVM sanely. Check out the instructions in the rvm-setup file to get started.
if [ -f ".rvmrc" ]; then
source ".rvmrc"
fi

Javascript #router. Features:

  • Just 70 lines of code.
  • Router scope can be bound to any object (default window); just change first parameter
  • Triggers custom DOM (Level 2) events on window.document.
  • IE 9+, FF, and Webkit based browsers [Tested only in Chrome and FF].
@joakimbeng
joakimbeng / router.html
Last active March 15, 2024 06:18
A really simple Javascript router
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Building a router</title>
<script>
// Put John's template engine code here...
(function () {
// A hash to store our routes:
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active April 30, 2024 04:42
A badass list of frontend development resources I collected over time.
@jexchan
jexchan / multiple_ssh_setting.md
Created April 10, 2012 15:00
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@steveyen
steveyen / gist:1201110
Created September 7, 2011 17:00
Using TCP_NODELAY with ruby Net HTTP
class MyHTTP < Net::HTTP
def on_connect()
@socket.io.setsockopt(Socket::IPPROTO_TCP, Socket::TCP_NODELAY, 1)
end
end
MyHTTP.new(host, port).start do |http|
for x in 0..n
req = Net::HTTP::Get.new("http://#{host}:#{port}/rest/of/url")
req.add_field('Connection', 'keep-alive')