Skip to content

Instantly share code, notes, and snippets.

View amyreese's full-sized avatar
🐍
herding snakes

Amethyst Reese amyreese

🐍
herding snakes
View GitHub Profile
#!/usr/bin/env python2
from os import path
import os, sys, shutil
settings = {
"source": "~/profile",
"target": "~",
}
@amyreese
amyreese / gist:6207161
Created August 11, 2013 22:25
Travis CI config to build against Qt5.0 on Ubuntu 12.04. Requires installing a PPA and certain packages for qt5 support.
before_install:
- sudo add-apt-repository --yes ppa:ubuntu-sdk-team/ppa
- sudo apt-get update -qq
- sudo apt-get install -qq qt5-qmake qtbase5-dev qtdeclarative5-dev libqt5webkit5-dev libsqlite3-dev
script:
- qmake -qt=qt5 -v
- qmake -qt=qt5
- make
set nocompatible
set guioptions-=T guifont=Pragmata\ TT\ 8,monospace\ 8
"set background=light
colorscheme xoria256
set ai
set hidden
set history=100
set hlsearch
@amyreese
amyreese / gist:9299616
Created March 2, 2014 00:02
keybase.md
### Keybase proof
I hereby claim:
* I am jreese on github.
* I am jreese (https://keybase.io/jreese) on keybase.
* I have a public key whose fingerprint is 9A24 B14A 6239 AA5A 4507 08B6 71FC FA26 C45D 960E
To claim this, I am signing this object:
#include <stdio.h>
#include <stdlib.h>
void numeral(int num, char buffer[])
{
int ones = num % 10;
int tens = num / 10;
int i = 0;
switch (tens)
#include <stdio.h>
#include <stdlib.h>
int length = 5;
int test_array[] = {21,14,35,63,28};
int main(int argc, char* argv[])
{
for (int i = 0; i < length; i++)
{
#include <stdio.h>
#include <stdlib.h>
const int length = 5;
int test_array[length] = {21,14,35,63,28};
int main(int argc, char* argv[])
{
for (int i = 0; i < length; i++)
{
13:30:33 *push | Evaluating channel message #pandora <jreese> aoeu
13:30:33 *push | last_notification: True
13:30:33 *push | highlight: False
13:30:33 *push | away_only: True
13:30:33 *push | nick_blacklist: False
13:30:33 *push | replied: True
13:30:33 *push | client_count_less_than: True
13:30:33 *push | last_active: True
13:30:33 *push | idle: True
13:30:33 *push | Evaluating custom expression: import math; math.abs(1,100)
Python 2.7.8 (default, Oct 16 2014, 11:03:30)
Type "copyright", "credits" or "license" for more information.
IPython 2.2.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
In [1]: import collections, numbers
NOTE: connecting to service...
NOTE: connection established
INFO: using last known command: "C:/Program Files/Synergy/synergys.exe" -f --no-tray --debug INFO --name shepard --ipc --stop-on-desk-switch --enable-drag-drop --enable-crypto --profile-dir "C:\Users\jreese\AppData\Local" -c "C:/Users/jreese/AppData/Local/Temp/qt_temp.Hp5548" --address :24800
INFO: service command updated
INFO: starting new process
activeDesktop:Winlogon
INFO: starting new process
INFO: drag and drop enabled
ERROR: failed to get desktop path, no drop target available, error=2
NOTE: started server, waiting for clients