This file contains hidden or 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
curl -L "https://graph.facebook.com/[1-100000000]/picture?width=160&height=160" -o "facebook_user_#1.jpg" |
This file contains hidden or 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
http://toddmotto.com/everything-about-custom-filters-in-angular-js/ | |
app.filter('startsWithLetter', function () { | |
return function (items, letter) { | |
var filtered = []; | |
var letterMatch = new RegExp(letter, 'i'); | |
for (var i = 0; i < items.length; i++) { | |
var item = items[i]; | |
if (letterMatch.test(item.name.substring(0, 1))) { | |
filtered.push(item); |
This file contains hidden or 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
//The parenthesis in the regex creates a captured group within the quotes | |
var myRegexp = /[^\s"]+|"([^"]*)"/gi; | |
var myString = 'single words "fixed string of words"'; | |
var myArray = []; | |
do { | |
//Each call to exec returns the next regex match as an array | |
var match = myRegexp.exec(myString); | |
if (match != null) | |
{ |
This file contains hidden or 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 echeck(str) { | |
var at="@" | |
var dot="." | |
var lat=str.indexOf(at) | |
var lstr=str.length | |
var ldot=str.indexOf(dot) | |
if (str.indexOf(at)==-1){ | |
return false | |
} |
This file contains hidden or 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
create dummy images | |
curl -L "http://dummyimage.com/600x400/000/fff&text=DummyImage%20[01-10]" -o image_#1.png | |
get page headers | |
curl --head http://google.com | |
send parameters to page | |
curl.exe -L -G "http://yoururl.com" --data-urlencode "text=DESIGN6 daily backup started" | |
send formdata & files to page |
This file contains hidden or 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
Restart ADB Server | |
adb kill-server && adb start-server | |
app id = de.xida.example | |
install: | |
adb install yourapk.apk | |
uninstall: |
NewerOlder