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
# wrote it, didn't try it | |
module TWSS | |
class Body | |
def initialize(text) | |
@text = text | |
end | |
def sentences | |
@text.split(/\?|\.|\;/).map{ |s| Sentence.new(s) } |
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
> ruby /tmp/version.rb | |
1.8.6 | |
> cat /tmp/version.rb | |
puts VERSION | |
> rvm use 1.8.7 -S /tmp/version.rb | |
Now using ruby 1.8.7 p249 |
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
# turns hey => "[h]ey" | |
def grep_safe(path) | |
"[#{path.chars.first}]#{path.chars.to_a.slice(1, path.chars.count).join}" | |
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
Day job: | |
Rails developer | |
Favorite Python project: | |
NodeBox | |
Favorite Conference: | |
Scottish Ruby Conference | |
Python Experience Level: |
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
/*This code for a PIC12F615 compiles in mikroC for PIC http://www.mikroe.com | |
It takes an analog value from a dash-mounted potentiometer and drives a MOSFET proportional to the input. The MOSFET pulses the low-side of a blower motor in | |
a 1997 Mitsubishi Mirage, providing 128 speeds*/ | |
void main() { | |
int anin=0, ramped=255; | |
unsigned long temp = 0; |
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
title New Browser Setup | |
User->Phone: identifying info | |
Phone->idjump: identifying info | |
idjump->Phone: encrypted blob | |
User->Phone: decrypting info | |
Phone->local storage: decrypted blob |
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
package=basho-release-6-1.noarch.rpm && wget http://yum.basho.com/gpg/$package -O /tmp/$package && sudo rpm -ivh /tmp/$package |
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 $i from 1 through 35 | |
.picture:nth-child($i) | |
+animate(fadeIn, 1s, ($i)s) |
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 Cell | |
def initialize | |
become_dead | |
end | |
def eigenclass | |
class << self | |
self | |
end | |
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
(defun color-theme-sunburst () | |
(interactive) | |
(color-theme-install | |
'(color-theme-sunburst | |
((background-color . "#000000") | |
(foreground-color . "#FFFFFF") | |
(cursor-color . "#DAD085")) | |
(default ((t (nil)))) | |
(modeline ((t (:background "DarkRed" :foreground "white" | |
:box (:line-width 1 :style released-button))))) |
OlderNewer