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
| YUI().add('node-visibility', function(Y) { | |
| Y.mix(Y.DOM, { | |
| visible: function(node) { | |
| return Y.DOM.getStyle(node, 'display') != 'none'; | |
| }, | |
| toggle: function(node) { | |
| Y.DOM.visible(node) ? Y.DOM.hide(node) : Y.DOM.show(node); | |
| }, | |
| hide: function(node) { | |
| Y.DOM.setStyle(node, 'display', 'none'); |
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 perl | |
| $field =~ | |
| m/^( | |
| [\x09\x0A\x0D\x20-\x7E] # ASCII | |
| | [\xC2-\xDF][\x80-\xBF] # non-overlong 2-byte | |
| | \xE0[\xA0-\xBF][\x80-\xBF] # excluding overlongs | |
| | [\xE1-\xEC\xEE\xEF][\x80-\xBF]{2} # straight 3-byte | |
| | \xED[\x80-\x9F][\x80-\xBF] # excluding surrogates | |
| | \xF0[\x90-\xBF][\x80-\xBF]{2} # planes 1-3 |
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
| dscacheutil -flushcache |
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
| PRUNEPATHS="/tmp /var/tmp */Backups.backupdb /Users" sudo /usr/libexec/locate.updatedb |
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
| --- botobackend.py.orig 2010-07-25 16:14:39.000000000 +0000 | |
| +++ botobackend.py 2010-09-30 15:52:41.000000000 +0000 | |
| @@ -146,7 +146,7 @@ | |
| else: | |
| self.conn.calling_format = calling_format | |
| - else: | |
| + elif self.bucket_name is None: | |
| # Duplicity hangs if boto gets a null bucket name. | |
| # HC: Caught a socket error, trying to recover |
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
| define round ( x ) { | |
| auto origscale, result; | |
| origscale = scale; | |
| scale = 0 | |
| result = (x + 0.5) / 1; | |
| scale = origscale; | |
| return result; | |
| } |
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
| LIBRARY_PATH=/opt/local/lib C_INCLUDE_PATH=/opt/local/include gem install gmp |
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
| sudo /opt/local/apache2/bin/apachectl start | |
| sudo /opt/local/apache2/bin/apachectl stop |
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
| require 'rubygems' | |
| require 'bundler/setup' | |
| require 'mongoid' | |
| Mongoid.configure do |config| | |
| config.master = Mongo::Connection.new.db("mongoid-test") | |
| end | |
| class Group | |
| include Mongoid::Document |
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 rspec | |
| require 'rubygems' | |
| require 'bundler/setup' | |
| require 'rspec' | |
| class Convert | |
| MAPPING = { | |
| # singles |
OlderNewer