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
{ | |
"caret_style": "blink", | |
"color_scheme": "Packages/Tomorrow Color Schemes/Tomorrow-Night.tmTheme", | |
"font_size": 11, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"rulers": | |
[ |
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
kite = KD.getSingleton 'kiteController' | |
kite.run 'cat ~/Applications/YourApp.kdapp/resources/style.css', (err, res) -> | |
$('head').append "<style>#{res}</style>" unless err |
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
var uls = ''; | |
for(i = 1; i <= that.find('ul').length; i++) { //that = $(this); | |
uls += 'ul '; | |
$(uls, that).removeClass().addClass('sublevel-'+i); | |
} |
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
$(document).ready(function() { | |
window.disqus_no_style = true; | |
$.getScript('http://sitename.disqus.com/embed.js', function() { | |
var loader = setInterval(function() { | |
if($('#disqus_thread').html().length) { | |
clearInterval(loader); | |
disqusReady(); | |
} | |
}, 1000); |
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
require "rubygems" | |
require "directory_watcher" | |
unless ARGV[0] | |
puts "Usage: brundle.rb [path to watch]" | |
exit | |
end | |
commands = [ | |
{ :tell => "Firefox", :to => "activate" }, |
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
require "rubygems" | |
require 'directory_watcher' | |
commands = [ | |
{ :tell => "Firefox", :to => "activate" }, | |
{ :tell => "System Events", :to => "keystroke \"1\" using command down" }, | |
{ :tell => "System Events", :to => "keystroke \"r\" using command down" }, | |
{ :tell => "TextMate", :to => "activate" } | |
] |
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
get "/rss.xml" do | |
builder :rss | |
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
ARTICLES = [ | |
{ :title => "Create a Micro Chameleon Blog with Sinatra", :url => "create_a_micro_chameleon_blog_with_sinatra", :created => Time.parse("05/31/2010") } | |
] |
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
<% unless @stylesheets.nil? %> | |
<% @stylesheets.each do |stylesheet| %> | |
<link rel="stylesheet" type="text/css" media="screen" href="/articles/<%= params[:article] %>/<%= stylesheet %>.css" /> | |
<% end %> | |
<% end %> | |
<% unless @javascripts.nil? %> | |
<% @javascripts.each do |javascript| %> | |
<script type="text/javascript" src="/articles/<%= params[:article] %>/<%= javascript %>.js"></script> | |
<% 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
<% @title = "Create a Micro Chameleon Blog with Sinatra" %> | |
<% @stylesheets = ["article"] %> | |
<% @javascripts = ["article"] %> | |
Content goes here... |
NewerOlder