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
#ifndef _Cing_Singleton_H_ | |
#define _Cing_Singleton_H_ | |
/** | |
* @internal | |
* @file Singleton related utilities | |
*/ | |
#ifndef NULL | |
#define NULL 0 |
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
import flash.utils.Timer; | |
import flash.events.Event; | |
import flash.events.TimerEvent; | |
import flash.events.MouseEvent; | |
import flash.external.ExternalInterface; | |
ExternalInterface.call("alert", "hello"); |
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
def associations_attributes | |
# Get a list of symbols of the association names in this class | |
association_names = self.class.reflect_on_all_associations.collect { |r| r.name } | |
# Fetch myself again, but include all associations | |
me = self.class.find self.id, :include => association_names | |
# Collect an array of pairs, which we can use to build the hash we want | |
pairs = association_names.collect do |association_name| | |
# Get the association object(s) |
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
set -g mode-mouse on | |
set-window-option -g mode-mouse on | |
set -g terminal-overrides 'xterm*:smcup@:rmcup@' | |
# ~/.tmux.conf | |
# | |
# See the following files: | |
# | |
# /opt/local/share/doc/tmux/t-williams.conf | |
# /opt/local/share/doc/tmux/screen-keys.conf |
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
vbell off | |
autodetach on | |
nethack on | |
startup_message off | |
defscrollback 5000 | |
altscreen on | |
shell -$SHELL |
NewerOlder