Posted to the git mailing list:
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
/* | |
Analog Input | |
Demonstrates analog input by reading an analog sensor on analog pin 0 and | |
turning on and off a light emitting diode(LED) connected to digital pin 13. | |
The amount of time the LED will be on and off depends on | |
the value obtained by analogRead(). | |
The circuit: | |
* Potentiometer attached to analog input 0 | |
* center pin of the potentiometer to the analog pin |
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
# JSONP callback for tweets fetched later than current (max_id) | |
window.twitterTimelineLaterCallback = (data) -> | |
window.app.twitterTimeline.receivedData(data, false) | |
# JSONP callback for tweets fetched earlier than current (since_id) | |
window.twitterTimelineEarlierCallback = (data) -> | |
window.app.twitterTimeline.receivedData(data, true) | |
class window.TwitterTimeline | |
# Distance from the bottom that we ask for more tweets, distance from the |
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
# Modify last bit to: | |
puts "#{total_visits} Visits" | |
puts "================================" | |
results.sort_by{ |r| r.visits.to_i }.reverse.each do |result| | |
puts "#{result.browser} #{result.browser_version}: #{'%.2f' % ((result.visits.to_i / total_visits.to_f) * 100)}%" | |
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
(function($){ | |
$.fn.testPlugin = function(options){ | |
var opts = $.extend({}, $.fn.testPlugin.defaults, options); | |
var insideFunction = function(){ | |
alert('hi!') | |
} | |
$fn.testPlugin.callInsideFunction = insideFunction | |
return this.each(function(){ |
By deafault, I have this:
~ $ rvm info
system:
system:
uname: "Darwin rameater.local 10.4.0 Darwin Kernel Version 10.4.0: Fri Apr 23 18:28:53 PDT 2010; root:xnu-1504.7.4~1/RELEASE_I386 i386"
shell: "bash"
version: "3.2.48(1)-release"
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
import com.what.who; | |
var test = true; | |
var instance:ClassName = new ClassName() |
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
import com.what.who; | |
var test = true; | |
var instance:ClassName = new ClassName() |
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
.new-comments .starting-comment{ | |
-webkit-border-radius:4px; | |
-moz-border-radius:4px; | |
border-radius:4px; | |
} | |
.new-comments .starting-comment .meta{ | |
background-image:url(/images/modules/comments/metabar-large.gif); | |
-webkit-border-bottom-right-radius: 4px; | |
-webkit-border-bottom-left-radius: 4px; |