Skip to content

Instantly share code, notes, and snippets.

\MeleeWeaponCard{
name={Katana},
parry=0,
damage=1d+2/1d+4,
reach={\scalebox{0.9}[1.0]{1,2(cut only)}},
st=8,
lc=1,
points=11,
notes=,
weaponpic={\includegraphics[width=1.9cm]{images/katanasword.pdf}}
@natfarleydev
natfarleydev / indico-docker.log
Created January 10, 2018 14:22
Log for indico-docker container.
Pulling indico-redis (redis:latest)...
Trying to pull repository docker.io/library/redis ...
sha256:0e773022cd6572a5153e5013afced0f7191652d3cdf9b1c6785eb13f6b2974b1: Pulling from docker.io/library/redis
Digest: sha256:0e773022cd6572a5153e5013afced0f7191652d3cdf9b1c6785eb13f6b2974b1
Status: Downloaded newer image for docker.io/redis:latest
Building indico-celery
Step 1/22 : FROM python:2.7
Trying to pull repository docker.io/library/python ...
sha256:8cb593cb9cd1834429f0b4953a25617a8457e2c79b3e111c0f70bffd21acc467: Pulling from docker.io/library/python
Digest: sha256:8cb593cb9cd1834429f0b4953a25617a8457e2c79b3e111c0f70bffd21acc467
@natfarleydev
natfarleydev / jitsistache.py
Last active April 9, 2017 21:33
Jitsi meet stache
import random
from functools import lru_cache
from urllib.request import urlopen
from skybeard.beards import BeardChatHandler
from skybeard.decorators import onerror
class JitsiStache(BeardChatHandler):
@natfarleydev
natfarleydev / config.log
Created February 27, 2017 17:29
config.log for pyenv issue
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by python configure 3.6, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --prefix=/home/nasf/.pyenv/versions/3.6.0 --libdir=/home/nasf/.pyenv/versions/3.6.0/lib --enable-unicode=ucs4
## --------- ##
## Platform. ##
0 info it worked if it ends with ok
1 verbose cli [ '/home/vagrant/.nvm/versions/node/v4.3.1/bin/node',
1 verbose cli '/home/vagrant/.nvm/versions/node/v4.3.1/bin/npm',
1 verbose cli 'install' ]
2 info using npm@3.8.8
3 info using node@v4.3.1
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 silly install normalizeTree
// Compile with ROOT 6 ACliC with
// .L addEtaToTree.cxx+
#include <iostream>
#include <map>
#include <vector>
#include <assert.h>
#include <TFile.h>
#include <TTree.h>
#include <TBranch.h>
#import <iostream>
#import <TPython.h>
#import <TString.h>
#import <vector>
#import <string>
Int_t pickle_std_string_vector(std::vector<std::string> string_vec = { "foo", "bar"}, std::string pickle_filename = "tmp.p") {
TPython p = TPython();
p.Exec("import pickle");
p.Exec("list_to_pickle = []");
# To the extent possible, this code is licensed under CC-0
# https://creativecommons.org/publicdomain/zero/1.0/
from moviepy.editor import VideoFileClip
import requests
import os
from vimeo import VimeoClient
ACCESS_TOKEN = # REPLACE WITH REAL ACCESS TOKEN
CLIENT_ID = # REPLACE WITH REAL CLIENT ID
CLIENT_SECRET = # REPLACE WITH CLIENT SECRET
@natfarleydev
natfarleydev / gist:6733510
Created September 27, 2013 18:56
Emacs functions to insert \sfrac{n}{m}
(defun insert-half ()
"Insert '\sfrac{1}{2} '"
(interactive)
(insert "\\sfrac{1}{2} "))
(defun insert-third ()
"Insert '\sfrac{1}{3} '"
(interactive)
(insert "\\sfrac{1}{3} "))
(defun insert-quarter ()
"Insert '\sfrac{1}{4} '"
@natfarleydev
natfarleydev / clean-org-mode-agenda
Created July 29, 2013 16:25
Little function to clean org mode files that have no more TODO items in them from the org-agenda-file
;; Function for cleaning org mode agenda
(defun clean-org-mode-agenda (tmp-org-agenda)
"Clean up all the org mode files that no longer have TODO items in"
(while tmp-org-agenda
(set-buffer (find-file-noselect (car tmp-org-agenda)))
(goto-char (point-min))
(if (re-search-forward "^\*+ TODO" nil t 1)
()
(org-remove-file (car tmp-org-agenda))
)