Inspired by https://gist.github.com/3296982
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
var images = document.querySelectorAll('a.uiMediaThumb'); | |
for (var i=0; i<images.length; i++) { | |
var image = unescape(images[i].href).split('=')[4] | |
console.log(image); | |
} |
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
// parse philippine mobile network operator from wikipedia | |
// http://en.wikipedia.org/wiki/Telephone_numbers_in_the_Philippines | |
function ph_mno(msisdn) { | |
var links = document.querySelectorAll('ul li a'); | |
var operator = new Array(); | |
for (i=0; i<links.length; i++) { | |
var string = links[i].parentNode.innerText; |
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
request({ | |
uri: "https://domain.com/aut/?tsurbanes="+eklabu, | |
method: "GET", | |
strictSSL: false | |
}, function(error, response, body) { | |
console.log(body); | |
console.log(response.headers); | |
console.log(error); | |
}); |
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
var http = require("http"); | |
var soap = require("soap"); | |
var url = 'http://www.w3schools.com/webservices/tempconvert.asmx?wsdl'; | |
var args = {Celsius: '40'}; | |
soap.createClient(url, function(err, client) { | |
client.CelsiusToFahrenheit(args, function(err, result) { | |
console.log(result); //This works | |
}); | |
}); |
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
package com.aaplab.android.robird.utils; | |
import android.view.View; | |
import com.nineoldandroids.animation.Animator; | |
import com.nineoldandroids.view.ViewHelper; | |
import com.nineoldandroids.view.ViewPropertyAnimator; | |
/** | |
* Created with IntelliJ IDEA. | |
* User: user |
As configured in my dotfiles.
start new:
tmux
start new with session name:
OlderNewer