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
/** | |
* Website: http://sourceforge.net/projects/simplehtmldom/ | |
* Additional projects: http://sourceforge.net/projects/debugobject/ | |
* Acknowledge: Jose Solorzano (https://sourceforge.net/projects/php-html/) | |
* | |
* Licensed under The MIT License | |
* See the LICENSE file in the project root for more information. | |
* | |
* Authors: |
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
adb shell "mkdir -p /sdcard/tunnel" #-p flag will make the mkdir silent if the dir already exists | |
adb shell "run-as <package-id> cp -r /data/data/<package-id>/ /sdcard/tunnel" | |
adb pull /sdcard/tunnel <destination-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
#include <iostream> | |
#include <fstream> | |
#include <cstdlib> | |
using namespace std; | |
//void function declaration | |
string cleanLine(string line); | |
int main( ) | |
{ |
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
DATE="`date +%Y-%m-%d_%H_%M`"; \ | |
git add .; \ | |
git commit -m "Backup ${DATE}"; \ | |
git push origin HEAD:backup-${DATE} |
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
#bash alias | |
alias cd="pushd . && cd" |
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
DATE="`date +%Y-%m-%d_%H_%M`"; \ | |
git add .; \ | |
git commit -m "Save ${DATE}"; \ | |
git push origin HEAD:backup-${DATE} |
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 | |
foreach (hash_algos() as $algo) { | |
$start_time = microtime(TRUE); | |
for ($index = 0; $index <= 500000; $index++) { | |
$hash = hash($algo, $index); | |
} |
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/sh | |
git checkout master; \ | |
git remote prune origin; \ | |
for i in `git branch`; do | |
echo $i; | |
git branch -D $i; | |
done |
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
++++++++[->+++++++++<]>.>++++[<+++++++>-]<+.>[-]+++[<++>-]<+..+++.>+++++++++++[<------>-]<-.>++++[<--->-]<.>+++++++[<++++++++>-]<-.>++++++[<++++>-]<.+++.------.>++[<---->-]<.>+++++++++++[<------>-]<-. |
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
/** | |
Fix this code | |
var multiplyByIndex = []; | |
for (var i = 0; i < 100; i ++) { | |
multiplyByIndex[i] = function(inputNum) { | |
return inputNum * i; | |
}; | |
} |
NewerOlder