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
docker run -e MYSQL_ROOT_PASSWORD=<root_password> -p <port_on_host>:3306 -d mysql/mysql-server |
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 | |
/** | |
* Mobile Detect Library | |
* ===================== | |
* | |
* Motto: "Every business should have a mobile detection script to detect mobile readers" | |
* | |
* Mobile_Detect is a lightweight PHP class for detecting mobile devices (including tablets). | |
* It uses the User-Agent string combined with specific HTTP headers to detect the mobile environment. |
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
var jq = document.createElement('script'); | |
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"; | |
document.getElementsByTagName('head')[0].appendChild(jq); | |
function Vector(x, y) { | |
this.x = x; | |
this.y = y; | |
this.equal = function(v) { |
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
function Vector(x, y) | |
{ | |
this.x = x; | |
this.y = y; | |
this.equal = function(v) |
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
all into sun | |
var jq = document.createElement('script'); | |
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"; | |
document.getElementsByTagName('head')[0].appendChild(jq); | |
setTimeout(function(){ jQuery.noConflict();jQuery('img').attr("src","//ssl.gstatic.com/onebox/weather/48/sunny.png"); }, 1000); | |
----- |
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
#!/usr/bin/env bash | |
echo "pre commit hook start phpcs" | |
CURRENT_DIRECTORY=`pwd` | |
GIT_HOOKS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
PROJECT_DIRECTORY="$GIT_HOOKS_DIR/../.." | |
cd $PROJECT_DIRECTORY; | |
PHP_CS_FIXER="php php-cs-fixer.phar" |
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
FROM tutum/apache-php | |
RUN apt-get update && apt-get install -yq git && rm -rf /var/lib/apt/lists/* | |
RUN rm -fr /app | |
ADD . /app | |
RUN apt-get -yq update | |
RUN sudo apt-get install -yq software-properties-common | |
RUN sudo php -v |
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
docker network create --subnet=10.10.3.0/24 mynet | |
docker run --name wwmyew1 --ip 10.10.3.13 --net=mynet -e MYSQL_ROOT_PASSWORD=dooc -p 3306:3306 -d mysql/mysql-server |
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
({ | |
baseUrl: 'app', | |
out: 'build/main.js', | |
optimize: 'uglify2', | |
name: 'libs/almond', | |
include: ['main'], | |
exclude: ['coffee-script'], | |
stubModules: ['cs', 'text'], |
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 app/console doctrine:generate:entities ZA/InvoiceBundle/Entity/Invoice --no-backup |
NewerOlder