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(); |
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
#!/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
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
%~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
$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
navigate to trunk url | |
svn merge -r368:369 https://branchurl | |
this will merge revision 369 (but it seems svn merge always wants to have two revision numbers) |
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
$returnXml = '<?xml version="1.0" encoding="utf-8"?>'; | |
header("Content-type: text/xml; charset: utf-8"); | |
ob_start(); | |
echo $returnXml; | |
ob_flush(); | |
exit; |
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
svnlook youngest e:\Repositories\repositoryname |
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 "http://dummyimage.com/600x400/000/fff&text=DummyImage%20[01-10]" -o image_#1.png |
NewerOlder