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
.repl_history | |
build | |
tags | |
.DS_Store | |
*.swp | |
*.swo | |
resources/*.nib | |
resources/*.momd | |
resources/*.storyboardc | |
.DS_Store |
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
# A class-based template for jQuery plugins in Coffeescript | |
# | |
# $('.target').myPlugin({ paramA: 'not-foo' }); | |
# $('.target').myPlugin('myMethod', 'Hello, world'); | |
# | |
# Check out Alan Hogan's original jQuery plugin template: | |
# https://github.com/alanhogan/Coffeescript-jQuery-Plugin-Template | |
# | |
(($, window) -> |
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 'benchmark' | |
N = 10_000_000 | |
Benchmark.bmbm do |bm| | |
bm.report('String') do | |
N.times do | |
a = 'devise/session' | |
a.sub('/', '-') | |
end |
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
$ ssh egorov@hdp001.rdb | |
$ echo 42 > big_data.txt | |
$ hadoop fs -put big_data.txt /tmp | |
$ hadoop fs -ls /tmp | |
Found 1 item | |
-rw-r--r-- 3 egorov supergroup 3 2015-07-10 02:41 /tmp/big_data.txt | |
$ hadoop fs -du /tmp/big_data.txt | |
3 /tmp/big_data.txt | |
[egorov@hdp001 ~]$ hadoop fs -stat %o /tmp/big_data.txt | |
134217728 |
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
// I pasted this without even looking at it. It the code running in the video here: http://youtu.be/OZ_9Yg0PG3M | |
// The video is of an Arduino controlling a single 8x8 LED matrix via an MBI5026 chip + a single 74HC595 shift register. | |
// Link to the MBI5026: http://www.rayslogic.com/propeller/programming/AdafruitRGB/MBI5026.pdf | |
#define SDI 10 | |
#define CLK 9 | |
#define LE 8 | |
#define LED 17 | |
// 74HC595 | |
#define SHSDI 3 // DS (pin 14 on shift register) |
NewerOlder