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
/** | |
* crowdparkRpc.callApi('AppJsonRpc', 'Foo.bar',[1,2,3], function(response){console.log("response=",response)}) | |
* @desc rpc client namespace | |
* @type {Object} | |
*/ | |
var crowdparkRpc = { | |
_initialized: false, | |
url: '', | |
loggerFunction: null, | |
baseParams: {}, |
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
<?php | |
/** | |
* Created by JetBrains PhpStorm. | |
* User: seb | |
* Date: 11/20/12 | |
* Time: 2:09 PM | |
* To change this template use File | Settings | File Templates. | |
*/ | |
namespace BootstrapExample; |
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
<?php | |
/** | |
* Created by JetBrains PhpStorm. | |
* User: seb | |
* Date: 11/20/12 | |
* Time: 4:10 PM | |
* To change this template use File | Settings | File Templates. | |
*/ | |
require dirname(__FILE__).'/ErrorHandler.php'; |
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
<?php | |
/** | |
* Created by JetBrains PhpStorm. | |
* User: seb | |
* Date: 11/20/12 | |
* Time: 4:05 PM | |
* To change this template use File | Settings | File Templates. | |
*/ | |
namespace Symfony\Component\HttpKernel\Debug; | |
class ErrorHandler |
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
class Bootstrap | |
{ | |
// PROTOTYPE. EXPERIMENTAL. BUGGY! | |
protected $_exceptionHandler; | |
protected $_errorHandler; | |
protected $_shutdownHandler; | |
protected $_onException; |
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
#!/bin/bash | |
#============================================================================== | |
# | |
# Script for automated deployments. | |
# | |
# This system expects at least the following directories to exists: | |
# | |
# * ../../temp | |
# * ../../transfer | |
# * ../../testing |
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
#!/bin/bash | |
CMD_DIR=`dirname $0` | |
ssh [email protected] ' | |
cd deploy ; | |
./sync_app.sh' | |
exit |
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
#!/bin/bash | |
echo "#########################################################" | |
echo "# WARNING: YOU ARE ABOUT TO UPDATE THE __LIVE__ SYSTEM! #" | |
echo "#########################################################" | |
echo | |
echo -n "Please type in YES to continue: " | |
read CHECK |
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
require 'formula' | |
class Nginx < Formula | |
homepage 'http://nginx.org/' | |
# url 'http://nginx.org/download/nginx-1.2.3.tar.gz' | |
# sha1 '98059ae08ebbfaaead868128f7b66ebce16be9af' | |
url 'http://nginx.org/download/nginx-1.3.5.tar.gz' | |
sha1 'ce0245295f23a54f10d916eb6b7b34469d0618a1' | |
devel do |
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
<?php | |
class A1 { | |
/** | |
* @var array | |
*/ | |
private static $instanceDictionary = array(); | |
/** |