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 / jquery.autoSuggest.css
Created January 26, 2010 23:53
Adds mozilla gradient support
/* AutoSuggest CSS - Version 1.1 */
ul.as-selections {
list-style-type: none;
border-top: 1px solid #888;
border-bottom: 1px solid #b6b6b6;
border-left: 1px solid #aaa;
border-right: 1px solid #aaa;
padding: 4px 0 4px 4px;
margin: 0;
@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;
@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
import com.what.who;
var test = true;
var instance:ClassName = new ClassName()
import com.what.who;
var test = true;
var instance:ClassName = new ClassName()

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"
(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(){
# 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
@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
/*
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