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
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="Your Project Name" default="build"> | |
<target name="build" depends="prepare,phpunit" /> | |
<target name="clean" description="Cleanup build artifacts"> | |
<delete dir="${basedir}/build/api" /> | |
<delete dir="${basedir}/build/code-browser" /> | |
<delete dir="${basedir}/build/coverage" /> | |
<delete dir="${basedir}/build/logs" /> |
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
<a href="https://www.facebook.com/dialog/oauth?client_id=447711781933701&redirect_uri=http%3A%2F%2Fdocplanner.com&locale=cs_CZ" target="_blank"> | |
Click to show Facebook Auth Dialog in default language</a> | |
<br><br> | |
Copy and paste this URL into the location bar to see a page in czech language: <br> | |
<input value="https://www.facebook.com/dialog/oauth?client_id=447711781933701&redirect_uri=http%3A%2F%2Fdocplanner.com&locale=cs_CZ"> |
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 | |
function compress($source, $type) { | |
global $lastError; | |
global $yuiPath; | |
$cmd = sprintf('java -jar %s --type %s --charset UTF-8 --line-break 1000', escapeshellarg($yuiPath), $type); | |
$process = proc_open( | |
$cmd, | |
array( |
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 | |
$op = new OAuth('…', '…', OAUTH_SIG_METHOD_HMACSHA256, OAUTH_AUTH_TYPE_AUTHORIZATION); | |
$op->setToken('',''); | |
$op->fetch('https://www.znanylekarz.pl/api?method=doctor.search&category_id=57&location=Warszawa'); | |
$response = $op->getLastResponse(); | |
$response = json_decode($response, true); | |
var_dump($response); | |
?> |
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 | |
LIST=`su -c "screen -ls" $SUDO_USER | grep -Eo '[0-9]\S+\s'` | |
# LIST="31702.test" | |
for SOCKET in $LIST; do | |
PID=`echo $SOCKET|cut -d. -f 1` | |
NAME=`echo $SOCKET|cut -d. -f 2` | |
DIR=`pwdx $PID | cut -d" " -f 2` | |
echo "Screen $NAME running at $PID from $DIR" |
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
"use strict"; | |
var empty_list = function (selector) { | |
return selector(undefined, undefined, true); | |
}; | |
var prepend = function (el, list) { | |
return function (selector) { | |
return selector(el, list, false); | |
} |
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 | |
require_once __DIR__ . '/../vendor/autoload.php'; | |
$app = new Silex\Application; | |
$app->get('/hello/{name}', function ($name) { | |
return sprintf("Hello %s at PHP v%s\n", $name, phpversion()); | |
}); | |
$app->run(); |
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 getPosY(e) { | |
var top = 0; | |
while (e) { | |
top += parseInt(e.offsetTop) || 0; | |
e = e.offsetParent; | |
} | |
return top; | |
} | |
var lastTop = null; | |
var iAmHere; |
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
server { | |
listen 80; | |
server_name local.*; | |
root /home/docplanner/web; | |
access_log /dev/fd/1; | |
error_log /dev/fd/2 error; | |
index app_dev.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
DOMAINS=$(grep "DOMAIN" $( grep --color=none -L 'SITE_ENABLED: false' ../config/lang-*.yaml ) | awk '{ print "www."$2; }') | |
for HOST in $DOMAINS; | |
do | |
#################### | |
export ZL_HOST=$HOST | |
#################### |