This file contains hidden or 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
| flash.keys.each do |f| | |
| content_tag(:p, flash[f], :class => "flash #{f}") | |
| end | |
| >> flash[:notice] = 'A notice' | |
| => <p class="flash notice">A notice</p> |
This file contains hidden or 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
| // add a flash message | |
| // | |
| App.flash = function(msg, options){ | |
| options = options || {}; | |
| var flash = jQuery('.flash'); | |
| var template = App.templates['flash-list-item']; | |
| var data = {'message' : msg}; | |
| var message = jQuery.tmpl(template, data); |
This file contains hidden or 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 mostRecentMessageID = 0; | |
| var myRegexpNotify; | |
| function onAppInFG(){ | |
| window.fluid.dockBadge = ""; | |
| } | |
| function callbackNewMessage(m){ | |
| if( !m.sender_name.match( myRegexpNotify ) ){ |
This file contains hidden or 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
| #!/bin/sh -e | |
| #/ Usage: pow [on|off] | |
| #/ Toggle between running Pow (http://pow.cx) and Apache on Mac OS X. | |
| # Show Usage | |
| function usage { | |
| grep '^#/' "$0" | cut -c4- | |
| exit 2 | |
| } | |
| [ -z "$1" -o "$1" = "--help" ] && usage |
This file contains hidden or 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
| div.input { | |
| background-color: #555 !important; | |
| border-top: 1px solid #aaa !important; | |
| } | |
| .topic_container { | |
| background-color: #222 !important; | |
| color: #aaa !important; | |
| } |
This file contains hidden or 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
| /**********************************************/ | |
| /* | |
| /* IR_Black Skin by Ben Truyman - 2011 | |
| /* | |
| /* Based on Todd Werth's IR_Black: | |
| /* http://blog.toddwerth.com/entries/2 | |
| /* | |
| /* Inspired by Darcy Clarke's blog post: | |
| /* http://darcyclarke.me/design/skin-your-chrome-inspector/ | |
| /* |
This file contains hidden or 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
| 56k: "https://123.campfirenow.com/images/56k.gif" | |
| bell: ":bell:" | |
| bezos: ":laughing::thought_balloon:" | |
| bueller: "anyone?" | |
| butts: ":open_hands: :smoking:" | |
| clowntown: "https://123.campfirenow.com/images/clowntown.gif" | |
| cottoneyejoe: ":notes::hear_no_evil::notes:" | |
| crickets: "hears crickets chirping" | |
| dadgummit: "dad gummit!! :fishing_pole_and_fish:" | |
| dangerzone: "https://123.campfirenow.com/images/dangerzone.png" |
This file contains hidden or 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
| # 0 is too far from ` ;) | |
| set -g base-index 1 | |
| # Automatically set window title | |
| set-window-option -g automatic-rename on | |
| set-option -g set-titles on | |
| #set -g default-terminal screen-256color | |
| set -g status-keys vi | |
| set -g history-limit 10000 |
This file contains hidden or 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
| web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb |
This file contains hidden or 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
| #!/usr/bin/env ruby | |
| require "redis" | |
| redis = Redis.new | |
| redis.keys("*").each do |key| | |
| val = case redis.type(key) | |
| when "string" | |
| redis.get key | |
| when "list" |
OlderNewer