Skip to content

Instantly share code, notes, and snippets.

View kneath's full-sized avatar
🌲
Growing soil

Kyle Aster kneath

🌲
Growing soil
View GitHub Profile
@kneath
kneath / _link.md
Created September 7, 2011 06:01
The imporantance of including http credential caching in 1.7.7
/*
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
@kneath
kneath / twitter_timeline.coffee
Created May 30, 2011 07:14
Example file for my History API experiment
# 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
# 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
(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"
import com.what.who;
var test = true;
var instance:ClassName = new ClassName()
import com.what.who;
var test = true;
var instance:ClassName = new ClassName()
@kneath
kneath / Campfire Client.mkdn
Created April 11, 2010 03:01
A list of some iPad apps I'd love to see

Campfire client

A simple campfire client similar to Propane for OSX.

Wanted Features

  • Ability to stay logged into multiple rooms with unread counts
  • Noise / notification when people mention my name or listed aliases (Kyle, kneath, etc)
  • Upload / paste in images
  • Username completion
@kneath
kneath / not_a_joke.css
Created March 8, 2010 23:18
I wish this were a joke
.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;