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 | |
class DummyClass | |
{ | |
public $msg; | |
} | |
$obj = new DummyClass(); | |
$obj->msg = "Hello World"; | |
echo $obj->msg.PHP_EOL; |
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 | |
class DummyClass | |
{ | |
public $msg; | |
} | |
$obj = new DummyClass(); | |
$obj->msg = "Hello World"; | |
echo $obj->msg.PHP_EOL; |
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
#!/usr/bin/env python | |
import sys, os | |
import shutil | |
if len(sys.argv) < 3: | |
print "Usage: ./configs.py [backup|restore] venture" | |
sys.exit() | |
current_path = os.path.dirname(os.path.abspath(__file__)) + os.sep |
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
[user] | |
name = XXX.YYY | |
email = XXXX@zalora.sg | |
[core] | |
excludesfile = /home/zalora/.gitignore_global | |
[color] | |
diff = auto | |
status = auto |
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
# usage: startsolr sg/tw | |
get_proc=`ps -e -o pid,command | grep java` | |
echo $get_proc > get_it | |
get_pid=`gawk -F" " '{ print $1 }' get_it` | |
kill $get_pid | |
rm get_it | |
cd solr/$1/jetty/ | |
nohup java -jar -Dt=$1 start.jar & | |
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
cd trunk | |
sudo php bob/cli/index.php --env=dev --module=solr --controller=import --action=import | |
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
#!/usr/bin/env python | |
import sys, os | |
import shutil | |
if len(sys.argv) < 2: | |
print "Usage: ./runsite.py venture" | |
sys.exit() | |
current_path = os.path.dirname(os.path.abspath(__file__)) + os.sep |
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
import random | |
def cmp(a, b): | |
i = random.randint(0, 1) | |
if i == 1: | |
return True | |
return False | |
def quicksort(q, cmp): | |
lesser=[] |
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
#!/usr/bin/env python | |
# encoding: utf-8 | |
""" | |
check_balancer.py | |
Created by Wuvist on 2012-12-10. | |
Copyright (c) 2011 . All rights reserved. | |
""" | |
import urllib |
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
<style> .sizechart_container{padding:10px 0px 40px 20px} .sizechart_container h1{font-size:160%; padding:0px 0 10px 0; margin:0;} .sizechart_container b{} .sizechart{ border:1px solid #666666; font-family:Helvetica; } a.fittingguide{color:#e53f03; font-weight:bold; text-decoration:none;} .sizechart td{padding:10px 15px 10px 15px; background:url([MEDIA_BASE_URL]/cms/vertical_line.jpg) repeat-x bottom left; color:#888888; font-size:12px} .sizechart td.header{background:#fafafa; font-weight:bold; border-bottom:1px solid #efefef; font-size:14px; color:#333333} .sc_header{font-size:16px; font-weight:bold; background:url(vertical_line.jpg) repeat-x bottom left; padding:0 10px 10px 10px; font-family:Helvetica} .sizechart_summary{font-size:12px; color:#888888;} </style> <div class="sizechart_container"> <h1>Newborn / Toddlers</h1> <table class="sizechart" cellpadding="0" cellspacing="0"> <tr> <td class="header">Age<br> Girls/Boys</td> <td class="header">Size 1</td> <td class="header">Size 2</td> <td class="header">He |
OlderNewer