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
git checkout master | |
git fetch | |
git remote prune origin | |
#Remove locally | |
git branch --merged master | grep -v 'master$' | xargs git branch -d | |
echo "Branches merged, to delete:" | |
git branch -r --merged master | sed 's/ *origin\///' | grep -v 'master$' |
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
#change foo.bar@gmail\.com | |
postqueue -p | tail -n +2 | awk 'BEGIN { RS = "" } / foo.bar@gmail\.com$/ { print $1 }' | tr -d '*!' | postsuper -d - |
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
/** Zend 1.12 **/ | |
/** bootstrap / routes **/ | |
$front = \Zend_Controller_Front::getInstance(); | |
$front->setParam('bootstrap',$this); | |
//REST API | |
$router = $front->getRouter(); | |
$restRoute = new Zend_Rest_Route($front, array(), array( | |
'default' => array('rest'), | |
)); |
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
public function __get($key) | |
{ | |
$func = array($this, 'get' . ucwords($key)); | |
if (\is_callable($func)) { | |
return call_user_func($func); | |
} | |
} |
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
<span class="s1 f49 fs7 l0" style= | |
"left:35909.7px;bottom:1711.58px;letter-spacing:-20px;word-spacing:20px;color:rgb(35,31,32);"> | |
19</span><span class="s1 f53 fs8 l0" style= | |
"left:31691.7px;bottom:1702.37px;letter-spacing:-3px;word-spacing:20px;color:rgb(35,31,32);">P</span><span class="s1 f53 fs8 l0" | |
style= | |
"left:32025.8px;bottom:1702.37px;letter-spacing:-3px;word-spacing:20px;color:rgb(35,31,32);">e</span><span class="s1 f53 fs8 l0" | |
style= | |
"left:32312.6px;bottom:1702.37px;letter-spacing:-3px;word-spacing:20px;color:rgb(35,31,32);">o</span><span class="s1 f53 fs8 l0" | |
style= | |
"left:32625.4px;bottom:1702.37px;letter-spacing:-3px;word-spacing:20px;color:rgb(35,31,32);">p</span><span class="s1 f53 fs8 l0" |
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
self = [super initPageWithID:_bookPageIdentifier.ID | |
book:_bookPageIdentifier.book | |
title:_bookPageIdentifier.title | |
titleHtml:_bookPageIdentifier.titleHtml | |
path:_bookPageIdentifier.path | |
thumbnail:_bookPageIdentifier.thumbnail | |
pagePrefix:_bookPageIdentifier.pagePrefix | |
pageShortPrefix:_bookPageIdentifier.pageShortPrefix | |
pageLongPrefix:_bookPageIdentifier.pageLongPrefix | |
parentPart:_bookPageIdentifier.parentPart |
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 | |
for f in `find ./app/app/data -name "index.html"`;do | |
png=${f/html/png} | |
phantomjs ./bin/rasterize.js $f $png "entire page" | |
metadataFile=${f/index/meta-data} | |
metadataFile=${metadataFile/html/json} | |
IMG_CHARS=$(identify "${png}" 2> /dev/null) || die "${IMAGE} is not a proper image" | |
# grab width and height |
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 firebase = new Firebase('https://v****.firebaseio.com/exercices'); | |
firebase.on('child_added', function(newExercice) { | |
$scope.$apply(function(){ | |
updateExercices($scope.exercices, $scope.chartData, newExercice); | |
}); | |
}); |
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 | |
public function streamAction(){ | |
$toto = $this->xml_stream_reader('./data/hg3.xml'); | |
var_dump($toto); | |
return false; | |
} | |
public function xml_stream_reader($url) | |
{ |
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
Cinéma français | |
Delicatessen | |
Sheitan | |
Romance | |
Enter the Void | |
L'Appolonide, souvenirs de la maison close | |
Indochine | |
Ils | |
Swimming Pool |
OlderNewer