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
python -m py_compile script.py |
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
function counter(colAdd, rowAdd) { | |
var count = 1; | |
var x, y; | |
for (x = move.col + colAdd, y = move.row + rowAdd; | |
isOwnedByCurrentPlayer(x, y); | |
count++, x += colAdd, y += rowAdd) { | |
} | |
for (x = move.col - colAdd, y = move.row - rowAdd; | |
isOwnedByCurrentPlayer(x, y); | |
count++, x -= colAdd, y -= rowAdd) { |
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
relayhost = smtp.mandrillapp.com:submission | |
# http://www.zulius.com/how-to/set-up-postfix-with-a-remote-smtp-relay-host/ | |
smtpd_sasl_auth_enable = yes | |
smtpd_sasl_path = smtpd | |
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd | |
smtp_sasl_type = cyrus | |
smtp_sasl_auth_enable = yes | |
smtp_sasl_security_options = noanonymous |
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
ibus restart && sleep 1 && ibus engine xkb:se::swe |
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 | |
$postdata = json_encode(array( | |
array('name'=>'TBIT'), | |
)); | |
$opts = array('http' => | |
array( | |
'method' => 'POST', | |
'header' => 'Content-type: application/json', |
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
.notebook tab { | |
background-color: #c0c0c0; | |
color: black; | |
} | |
.notebook tab:active { | |
background-color: #f0f0f0; | |
color: black; | |
} |
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
public enum EnumSingleton | |
{ | |
_INSTANCE; | |
public static EnumSingleton of() | |
{ | |
return _INSTANCE; | |
} |
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
#!/bin/sh | |
set -e | |
set -x | |
cd `dirname $0` | |
DIR=`pwd` | |
NAME=`basename $DIR` | |
SNAPSHOT_TARBALL=`mktemp --tmpdir "$NAME-XXX.tar.gz"` | |
rhc snapshot-save -a "$NAME" --filepath "$SNAPSHOT_TARBALL" | |
tar --wildcards --strip-components=5 -xvf "$SNAPSHOT_TARBALL" './*/app-root/runtime/repo/php' | |
git add -A php |
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
dconf reset -f /org/compiz/ | |
dconf write /org/compiz/profiles/unity/plugins/unityshell/launcher-capture-mouse false |
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
https://www.facebook.com/appcenter/XXXX?fb_source=dialog_permission |