Skip to content

Instantly share code, notes, and snippets.

Avatar

Stephen Chisholm sbchisholm

View GitHub Profile
View Self Generating Class Attributes.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View ylt.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View ylt.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View log
Warning: could not import Base.foldl into NumericExtensions
Warning: could not import Base.foldr into NumericExtensions
Warning: could not import Base.sum! into NumericExtensions
Warning: could not import Base.maximum! into NumericExtensions
Warning: could not import Base.minimum! into NumericExtensions
ERROR:
in abstract_call_gf at inference.jl:605
in abstract_call at inference.jl:701
in abstract_eval_call at inference.jl:789
in abstract_eval at inference.jl:814
View screen-sgr-patch.diff
diff --git a/ansi.c b/ansi.c
index d88e153..088ab0b 100644
--- a/ansi.c
+++ b/ansi.c
@@ -193,6 +193,7 @@ register struct win *p;
p->w_insert = 0;
p->w_revvid = 0;
p->w_mouse = 0;
+ p->w_mouse_protocol = 0;
p->w_curinv = 0;
View .screenrc
hardstatus alwayslastline "%{b}[%{B}%H%{b}][%{k}%?%-Lw%?%{b}(%{R}%n %t%?(%u)%?%{b})%{k}%?%+Lw%?%?%= %{b}][%{B}%d/%m %{k}%C%{b}]"
msgwait 1
vbell off
shell "/bin/bash"
scrollback 3000
View doodles.jl.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sbchisholm
sbchisholm / config.json
Created Apr 8, 2013
backup configuration
View config.json
{
"backup_sources": [
"/home/username/Documents",
"/home/username/Mail"
],
"rsync_excludes": "",
"backup_server_location": "/mnt/backup",
"log_file": "log/backup.log",
"log_file_path_relative": true,
@sbchisholm
sbchisholm / backup.py
Last active Dec 15, 2015
Backs up the files/folders according to the configuration in config.json. Will send an reporting the success or failure of the rsyncs.
View backup.py
#!/usr/bin/python
#
# Backs up the files/folders according to the configuration in config.json. Will
# send an reporting the success or failure of the rsyncs.
import json, os, smtplib, ast, datetime
from email.mime.text import MIMEText
def email_backup_failures(config, failed_backups, failed = True):
# build message body
View gist:5326939
hardstatus alwayslastline "%{b}[%{B}%H%{b}][%{k}%?%-Lw%?%{b}(%{R}%n %t%?(%u)%?%{b})%{k}%?%+Lw%?%?%= %{b}][%{B}%d/%m %{k}%C%{b}]"
msgwait 1
vbell off
scrollback 3000
You can’t perform that action at this time.