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
$c = curl_init(); | |
$url = getfile($twitter_id . ".xml"); | |
curl_setopt($c, CURLOPT_URL, $url); | |
//e cho "http://twitter.com/statuses/user_timeline/" . $twitter_id . ".xml" . "<br>"; | |
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); | |
curl_setopt($c, CURLOPT_CONNECTTIMEOUT, 3); | |
curl_setopt($c, CURLOPT_TIMEOUT, 5); | |
$response = curl_exec($c); | |
$responseInfo = curl_getinfo($c); |
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
%~dp0 |
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
xcopy ..\*.md tmp\ |
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
#!/bin/bash | |
DIRPATH=$(dirname "$0") | |
FILEPATH="${DIRPATH}/Sample-UISearchController/Resources/assets/images/xida_logo" | |
for i in `seq 1 30000`; | |
do | |
cp "${FILEPATH}.png" "${FILEPATH}${i}.png" | |
done |
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
int numWeapons = System.Enum.GetValues(typeof(WeaponType).Length; | |
// Cast weapon to int to do math on it | |
int wt = (int)weaponType; | |
wt++; | |
if( wt == numWeapons) wt = 0; | |
weaponType = (WeaponType) wt; |
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
On/Off | |
particleSystem.Play(); | |
particleSystem.Stop(); |
OlderNewer