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
| /** | |
| * @ NAME: Cross-browser TextStorage | |
| * @ DESC: text storage solution for your pages | |
| * @ COPY: sofish, http://sofish.de | |
| */ | |
| typeof window.localStorage == 'undefined' && ~function () { | |
| var localStorage = window.localStorage = {}, | |
| prefix = 'data-userdata', | |
| doc = 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
| "====================================================================================== | |
| "General settings | |
| "====================================================================================== | |
| syntax on | |
| set expandtab | |
| set guifont=Courier\ New\ 12 | |
| set guifontwide=STXihei:h14 | |
| "set guifont=Bitstream\ Vera\ Sans\ Mono:h14 | |
| "set nomacatsui | |
| "set termencoding=macroman |
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 _default_options = { | |
| freezeTableName: true | |
| , underscored: true | |
| , charset: 'utf8' | |
| , collate: 'utf8_general_ci' | |
| }; |
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
| ps -ef | grep UWA | grep -v grep | awk '{print $2}' | xargs kill |
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 mongoose = require('mongoose'); | |
| var db = mongoose.createConnection('127.0.0.1', 'test'); | |
| // Make schema | |
| var schema = mongoose.Schema({ name: String }); | |
| // Create subscribers collection | |
| var subscribers = []; | |
| // Hook `save` post method |
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
| async.parallel({ | |
| tasks: function(fn) { | |
| mongo.model('Task').find(function(err, data) { | |
| fn(err, data) | |
| }); | |
| }, | |
| projects: function(fn) { | |
| mongo.model('Project').find(function(err, data) { | |
| fn(err, 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
| class Php53Yaf < AbstractPhpExtension | |
| homepage 'http://pecl.php.net/package/yaf' | |
| url 'http://pecl.php.net/get/yaf-2.2.2.tgz' | |
| sha1 '826f85b7b641a7418110f73f823749509c58b1b7' | |
| head 'https://svn.php.net/repository/pecl/yaf/trunk/', :using => :svn | |
| depends_on 'autoconf' => :build | |
| depends_on 'php53' if build.include?('with-homebrew-php') && !Formula.factory('php53').installed? | |
| depends_on 'pcre' |
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
| <?php | |
| echo ip(); | |
| function ip() | |
| { | |
| if ($ip = getenv('X_FORWARDED_FOR')) { | |
| return $ip; | |
| } elseif ($ip = getenv('CLIENT_IP')) { | |
| return $ip; |
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
| <?php | |
| $data = (object)array( | |
| "html" => "<foo bar=\"baz\"/> &", | |
| "arabic" => "العربية al-ʿarabiyyah, IPA: [æl ʕɑrɑˈbijjɐ], or عربي ʿarabī", | |
| "hebrew" => "עִבְרִית, Ivrit", | |
| "chinese" => "汉语/漢語 Hanyu; 华语/華語 Huáyǔ; 中文 Zhōngwén", | |
| "korean" => "한국어/조선말", | |
| "japanese" => "日本語 Nihongo", | |
| "umlauts" => "äüöãáàß", |
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
| ifconfig en0 down | |
| ifconfig en1 down | |
| route -n flush | |
| ifconfig en0 up | |
| ifconfig en1 up |
OlderNewer