Skip to content

Instantly share code, notes, and snippets.

View mustardamus's full-sized avatar

Sebastian Senf mustardamus

View GitHub Profile
{
"caret_style": "blink",
"color_scheme": "Packages/Tomorrow Color Schemes/Tomorrow-Night.tmTheme",
"font_size": 11,
"ignored_packages":
[
"Vintage"
],
"rulers":
[
kite = KD.getSingleton 'kiteController'
kite.run 'cat ~/Applications/YourApp.kdapp/resources/style.css', (err, res) ->
$('head').append "<style>#{res}</style>" unless err
var uls = '';
for(i = 1; i <= that.find('ul').length; i++) { //that = $(this);
uls += 'ul ';
$(uls, that).removeClass().addClass('sublevel-'+i);
}
$(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);
require "rubygems"
require "directory_watcher"
unless ARGV[0]
puts "Usage: brundle.rb [path to watch]"
exit
end
commands = [
{ :tell => "Firefox", :to => "activate" },
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" }
]
get "/rss.xml" do
builder :rss
end
ARTICLES = [
{ :title => "Create a Micro Chameleon Blog with Sinatra", :url => "create_a_micro_chameleon_blog_with_sinatra", :created => Time.parse("05/31/2010") }
]
<% 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 %>
<% @title = "Create a Micro Chameleon Blog with Sinatra" %>
<% @stylesheets = ["article"] %>
<% @javascripts = ["article"] %>
Content goes here...