// jQuery
$(document).ready(function() {
// code
})
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
// declare start, mid, end colors | |
$c = array( | |
array(0,0,0), | |
array(128,128,128), | |
array(255,255,255) | |
); | |
$loops = 127; | |
for ($t = 0; $t <= $loops; $t++) |
9/5/2013 @ 6:30pm
UX Speakeasy (VT)
9/7/2013 @ 2:00pm
Vermont Makers (FIRST Robotics Ice Cream Social)
9/12/2013 @ 6:00pm
Burlington Healthcare Innovators
9/14/2013 @ 9:30am
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
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
Rx LINQ Operator Precis | |
Brian Beckman, May 2013 | |
================================================================================ | |
Introduction | |
================================================================================ | |
This is a highly abbreviated "cheat-sheet" for the LINQ operators over Rx, the | |
Reactive Extensions. Its purpose is to TEACH by laying bare the regular and | |
tasteful structure of the API. This structure can be difficult to perceive from | |
ordinary documentation and source code because comparable and contrastable |
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
--returns rows in random order | |
select * from sometable order by random(); | |
--use '::' for casting | |
select '2013-01-01'::date; | |
-- date | |
-------------- | |
-- 2013-01-01 | |
select 1 / 10 as non_casted, 1::float8 / 10 as casted; | |
-- non_casted | casted |
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
def field_names | |
@field_names ||= @expression.flatten | |
.each_cons(2) | |
.select {|marker, _| marker == :@ivar } | |
.map {|_,name| field_name(name) } | |
end | |
In August 2007 a hacker found a way to expose the PHP source code on facebook.com. He retrieved two files and then emailed them to me, and I wrote about the issue:
http://techcrunch.com/2007/08/11/facebook-source-code-leaked/
It became a big deal:
http://www.techmeme.com/070812/p1#a070812p1
The two files are index.php (the homepage) and search.php (the search page)
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
# A poor man's complexity measure for a file or group of files | |
puts ARGF.lines.grep(/^([ \t]*)/) { $1 }.map(&:length).reduce(0, :+) |
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
var five = require("../lib/johnny-five.js"), | |
board, distance, vibration, accel, | |
red, green, blue; | |
board = new five.Board(); | |
board.on("ready", function() { | |
var status = new five.Led(13); | |
status.on(); |