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 | |
| class Bootstrap extends Zend_Application_Bootstrap_Bootstrap | |
| { | |
| /* Other functions may have been omitted */ | |
| protected function _initTwigView() | |
| { | |
| $twigView = new ZExt_Twig(APPLICATION_PATH, APPLICATION_PATH."/modules"); | |
| $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper("ViewRenderer"); |
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 | |
| class importTask extends sfTask | |
| { | |
| protected function execute($arguments = array(), $options = array()) | |
| { | |
| $xml = simplexml_load_file('file'); | |
| $users = array(); | |
| foreach ($xml->users as $user) | |
| { |
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 | |
| /** | |
| * SplClassLoader implementation that implements the technical interoperability | |
| * standards for PHP 5.3 namespaces and class names. | |
| * | |
| * http://groups.google.com/group/php-standards/web/final-proposal | |
| * | |
| * // Example which loads classes for the Doctrine Common package in the | |
| * // Doctrine\Common namespace. |
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
| fastcgi.server = ( ".js" => | |
| (( "socket" => "/tmp/js-fastcgi.socket", | |
| "bin-path" => "/node-fastcgi/examples/responder.js", | |
| "check-local" => "disable" | |
| )) | |
| ) |
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
| // Backbone.js 0.9.2 | |
| // (c) 2010-2012 Jeremy Ashkenas, DocumentCloud Inc. | |
| // Backbone may be freely distributed under the MIT license. | |
| // For all details and documentation: | |
| // http://backbonejs.org | |
| // Use a factory function to attach Backbone properties to an exports value. | |
| // Code at the end of this file creates the right define, require and exports | |
| // values to allow Backbone to run in a CommonJS or AMD container or in the |
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
| Trace | |
| at WriteStream.process.stdout.write (/Users/dave/dev/node-latest/index.js:4:11) | |
| at Object.exports.log (console.js:25:18) | |
| at Object.keys.forEach.console.(anonymous function) [as log] (/Users/dave/dev/node-latest/node_modules/log-timestamp/index.js:13:14) | |
| at defaultCb (/Users/dave/dev/node-latest/node_modules/npm/lib/npm.js:205:16) | |
| at Conf.done (/Users/dave/dev/node-latest/node_modules/npm/node_modules/npmconf/npmconf.js:218:15) | |
| at Object.oncomplete (fs.js:297:15) | |
| undefined | |
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 d = document.createElement('div'); | |
| d.innerHTML = '\ | |
| <style>\ | |
| *:not(.icon):not(i), *:not(.icon):not(i):after, *:not(.icon):not(i):before {\ | |
| box-shadow: none !important;\ | |
| text-shadow: none !important;\ | |
| background-image: none !important;\ | |
| }\ | |
| *:not(.icon):not(i) {\ | |
| border-color: transparent !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
| #!/bin/sh | |
| ######################################################## | |
| # history | |
| ######################################################## | |
| # | |
| # 0.3 (2011-02-08) | |
| # - create/update configuration template 'InitialConfig' instead | |
| # of 'Default', which is not editable | |
| # |
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
| ### | |
| Module dependencies | |
| ### | |
| require.paths.unshift "#{__dirname}/lib/support/express-csrf/" | |
| require.paths.unshift "#{__dirname}/lib/support/node_hash/lib/" | |
| express = require 'express' | |
| app = module.exports = express.createServer() | |
| RedisStore = require 'connect-redis' |
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
| // Simple gist to test parallel promise resolution when using async / await | |
| function promiseWait(time) { | |
| return new Promise((resolve, reject) => { | |
| setTimeout(() => { | |
| resolve(true); | |
| }, time); | |
| }); | |
| } |
OlderNewer