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 | |
$aObjectStack = array( | |
new SimpleXMLElement("<html />"), | |
new SimpleXMLElement("<my_xml />"), | |
new SimpleXMLElement("<test a='adsf' />"), | |
); | |
/** | |
* In der foreach wuessten wir eigentlich nicht mehr, um |
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 | |
namespace ePress\test\Autoloader; | |
require_once dirname(__FILE__) . '/../../../../../bootstrap.php'; | |
use \Mockery as m; | |
use \ePress\Impl\Autoloader\DefaultConfiguration; | |
class DescribeNewAutoloaderConfiguration extends \PHPSpec\Context { |
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
package main | |
import ("os";"runtime") | |
func main() { | |
var aFromList [2]string= [2]string{"/tmp/checkout/folder1_new","/tmp/checkout/folder2_new"} | |
var aToList [2]string = [2]string{"/var/www/folder1","/var/www/folder2"} | |
runtime.GOMAXPROCS(2) | |
c := make(chan int) |
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
# -*- coding: utf-8 -*- | |
def main(): | |
import MySQLdb | |
conn = MySQLdb.connect (host="localhost", user="root", passwd="", db="crm") | |
cursor = conn.cursor () | |
cursor.execute ("SELECT usf_id, usf_name FROM adm_user_fields") | |
aNameRows = cursor.fetchall() | |
kvMapNames = {} | |
for aNameRow in aNameRows: | |
kvMapNames[aNameRow[0]] = aNameRow[1] |
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
package main | |
import ("os";"runtime") | |
func main() { | |
var aFromList [2]string= [2]string{"/tmp/checkout/folder1_new","/tmp/checkout/folder2_new"} | |
var aToList [2]string = [2]string{"/var/www/folder1","/var/www/folder2"} | |
runtime.GOMAXPROCS(2) | |
c := make(chan int) |
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
CFLAGS="-D_REENTRANT -D_THREAD_SAFE -O3 -pipe -pthread" CXXFLAGS="-D_REENTRANT -D_THREAD_SAFE -O3 -pipe -pthread" ./configure |
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
Quercus q; | |
QuercusEngine qce = new QuercusEngine(); | |
qce.getQuercus().init(); | |
FilePath executableFile = new FilePath(cmdLine[7].replace("\"", "")); | |
// Set the ini path | |
qce.getQuercus().setIniFile(new FilePath(cmdLine[3])); | |
ByteArrayOutputStream byteOutput = new ByteArrayOutputStream(); | |
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
# Customize BASH PS1 prompt to show current GIT repository and branch. | |
# by Mike Stewart - http://MediaDoneRight.com | |
# SETUP CONSTANTS | |
# Bunch-o-predefined colors. Makes reading code easier than escape sequences. | |
# I don't remember where I found this. o_O | |
# Reset | |
Color_Off="\[\033[0m\]" # Text Reset |
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
set git_branch_color green | |
set mycolor 875f5f | |
function headrev | |
echo (git log --pretty=%h -n 1) | |
end | |
function __git_ps1 | |
set -l g (git rev-parse --git-dir ^/dev/null) |
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
entries = Atom::Feed.load_feed(URI.parse("https://speakerdeck.com/u/xenji.atom")) | |
base_url = "https://speakerdeck.com" | |
path = "/oembed.json?url=" | |
@embeds = [] | |
entries.each_entry do |entry| | |
link = entry.links.alternate.to_s.sub "https", "http" | |
fullpath = path + CGI.escape(link) | |
uri = URI.parse(base_url + fullpath) |
OlderNewer