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
# build | |
sudo docker build -t pokerap . | |
# run | |
sudo docker run -v /dev/log:/dev/log pokerap /go/bin/gokerap | |
# check syslog | |
sudo tail /var/log/syslog | |
# here are the cool lines I like |
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
submission := func() { | |
label: | |
for { | |
switch message := psc.Receive().(type) { | |
case redis.Message: | |
return db.Loads(message.Data) | |
case error: | |
log.Println(colors.Red("Failed to pubsub on trading session! %e", message.Error)) | |
break label | |
} |
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 os | |
import sys | |
sys.path.append(os.path.dirname(__file__)) | |
sys.path.append('/usr/local/django') | |
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' | |
import django.core.handlers.wsgi | |
application = django.core.handlers.wsgi.WSGIHandler() |
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
// Copyright (c) 2009, Scott Ferguson | |
// All rights reserved. | |
// | |
// Redistribution and use in source and binary forms, with or without | |
// modification, are permitted provided that the following conditions are met: | |
// * Redistributions of source code must retain the above copyright | |
// notice, this list of conditions and the following disclaimer. | |
// * Redistributions in binary form must reproduce the above copyright | |
// notice, this list of conditions and the following disclaimer in the | |
// documentation and/or other materials provided with the distribution. |
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
<?xml version="1.0" encoding="utf-8"?> | |
<RelativeLayout | |
android:id="@+id/widget51" | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent" | |
android:orientation="vertical" | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
> | |
<TextView | |
android:id="@+id/widget40" |
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
{ | |
"name": "Sizerator", | |
"version": "1.0", | |
"description": "The first extension that I made.", | |
"toolstrips": [ | |
"my_toolstrip.html" | |
], | |
"permissions": [ | |
"tabs" | |
], |
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
{ | |
"name": "Sizerator", | |
"version": "1.0", | |
"description": "The first extension that I made.", | |
"toolstrips": [ | |
"my_toolstrip.html" | |
], | |
"permissions": [ | |
"tabs" | |
], |