clarified butter
- GitHub Staff
- http://jonmagic.com/
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
# If you are using in a Rails app just add gem 'plucky' to Gemfile. | |
# Otherwise install the plucky gem and require it. | |
# require 'plucky' | |
# | |
# Halp.mongo_db is just a shortcut to the database I already connected | |
# to using the mongo ruby driver. | |
# | |
# http://api.mongodb.org/ruby/current/file.TUTORIAL.html has instructions | |
# for the mongo ruby driver. |
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 Discussion | |
States = { | |
:new => 0, | |
:open => 1, | |
:closed => 2, | |
} | |
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
$ = jQuery # Adds plugin object to jQuery | |
$.fn.extend {}= # Change the pluginName | |
queueSearch: (options) -> | |
settings = # Default settings | |
option1: true | |
option2: false | |
debug: false |
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
<?xml version="1.0" encoding="utf-8"?> | |
<feed xmlns="http://www.w3.org/2005/Atom"> | |
<title>jonmagic.com {{ blog.title }}</title> | |
<link href="{{ blog.feed.url }}" rel="self" /> | |
<link href="{{ blog.url }}" /> | |
<id>{{ blog.url }}</id> | |
<updated>{{ blog.last_updated_at | isodate }}</updated> | |
{% for post in blog.recent_posts.15 %} | |
<entry> |
IndexTank http://indextank.com/
- free option for up to 100k documents
- their ruby client looks dead simple
- http://indextank.com/documentation/ruby-client
- start simple, but build something more complicated as you want
- good documentation
- more interesting gems
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
@mixin pretty_button($font_size, $gradient_color) { | |
$border:$font_size/2; | |
span { | |
font-size:$font_size; | |
line-height:$font_size * 2; | |
margin:$border; | |
padding:$font_size/3+1px $font_size*1.5; | |
position:relative; | |
text-align:center; | |
@include background-image(linear-gradient(top, $gradient_color, adjust-lightness($gradient_color, -15))); |
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.download {display:none;} | |
#status_ui {display:block !important;} | |
div.welcomeMessage {display:none;} |
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
Saturday | |
hamburgers with sweet potato fries & corn on the cob | |
Sunday | |
BLT's | |
Whole Sea Bass with Charred Serrano-Basil Vinaigrette, steamed broccoli & roasted potatoes | |
Monday | |
Stir-Fried Baby Bok choy & carrots with Garlic, served over lo-mien noodles |
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
'## Silly setup stuff | |
Dim conn | |
Dim wsh | |
Dim sPath | |
Dim rs | |
set wsh = CreateObject("wscript.shell") | |
On Error Resume Next | |
sPath = wsh.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Helios\Helios11\Paths\DPathClient") |