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
CMD_PHP_CLI=docker run --rm -it \ | |
-v "$(PWD)":"/src" -w "/src" \ | |
php:7-cli | |
guard-%: | |
@if [ "${${*}}" == "" ]; then \ | |
echo "CONFIGURATION ERROR! Environment variable $* not set"; \ | |
echo "USAGE : $(USAGE)"; \ | |
exit 1; \ | |
fi |
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
UID=$(shell id -u) | |
GID=$(shell id -g) | |
CMD_PHP_CLI=docker run --rm -it \ | |
-e "$$PATH=$(PATH)" \ | |
-v "$(PWD)":"$(PWD)" -w ${PWD} \ | |
php:7-cli php | |
CMD_COMPOSER=docker run --rm -v $(PWD):/app -v ~/.ssh:/root/.ssh composer/composer |
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
task :default => 'tasklist' | |
desc "List & Describe Tasks" | |
task :tasklist do | |
sh "rake -P" | |
sh "rake -T" | |
end | |
namespace :composer do | |
composer_phar="./composer.phar" |
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
public class GenericMapExample { | |
private String value; | |
public String getValue() { | |
return value; | |
} | |
public void setValue(String value) { | |
this.value = value; |
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
public class ClientFactory { | |
public static <T extends Client> T createClient(Class<T> clientClass, String host, Integer port) | |
{ | |
try { | |
Constructor<T> constructor = clientClass.getConstructor( | |
String.class, Integer.class | |
); | |
T client = constructor.newInstance( |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
/** | |
* @param string $table | |
* @param array $rowInsert | |
* @param array $rowUpdate | |
* @return array | |
*/ | |
function createSqlInsertIntoTableOnDuplicateKeyUpdate($table, $rowInsert, $rowUpdate) | |
{ | |
$insertColumnTokens = array(); | |
$insertValueTokens = array(); |
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
'use strict'; | |
angular.module('CrowdparkJsonRpc').provider( | |
'CrowdparkJsonRpcApiClient', | |
function (){ |
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
CrowdparkRpc = { | |
invokeRpc: function (httpMethod, url, method, params, baseParams, callback) { | |
var method = '' + method; | |
if (!params) { | |
var params = []; | |
} | |
var rpc = { | |
method: method, | |
params: params |
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
project.environment.name=local | |
project.name=${phing.project.name} | |
dir.build_xml=${project.basedir} | |
project.host.default=${project.environment.name}.${project.name}.mydomain.com | |
dir.project=${dir.build_xml}/../../.. |