Skip to content

Instantly share code, notes, and snippets.

View roberjo's full-sized avatar
🏠
Contact me!

John B. Roberts roberjo

🏠
Contact me!
View GitHub Profile
@roberjo
roberjo / gist:5221354
Last active December 15, 2015 07:09 — forked from padolsey/gist:527683
A short snippet for detecting versions of IE in JavaScript without resorting to user-agent sniffing. Useful as a replacement for jQuery.browser as this was deprecated in jQuery 1.9.
// ----------------------------------------------------------
// A short snippet for detecting versions of IE in JavaScript
// without resorting to user-agent sniffing
// ----------------------------------------------------------
// If you're not in IE (or IE version is less than 5) then:
// ie === undefined
// If you're in IE (>=5) then you can determine which version:
// ie === 7; // IE7
// Thus, to detect IE:
// if (ie) {}
@roberjo
roberjo / hack.sh
Created March 29, 2013 17:06 — forked from erikh/hack.sh
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
Latency Comparison Numbers
--------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns
Send 1K bytes over 1 Gbps network 10,000 ns 0.01 ms
Read 4K randomly from SSD* 150,000 ns 0.15 ms
require 'rubygems'
require 'mechanize'
FIRST_NAME = 'FIRST_NAME'
LAST_NAME = 'LAST_NAME'
PHONE = 'PHONE'
EMAIL = 'EMAIL@provider.com'
PARTY_SIZE = 2
SCHEDULE_RANGE = { :start_time => '19:00', :end_time => '20:30' }

Algebra 1 EOC Practice Flashcards

Flashcard 1

Question: Solve for x: 2x + 5 = 15
Answer: x = 5
Explanation: Subtract 5 from both sides to get 2x = 10, then divide by 2 to find x = 5.
DOK Level: 1
Standard: A.REI.3 (Solve linear equations in one variable)