Skip to content

Instantly share code, notes, and snippets.

View vermiculus's full-sized avatar
🙃
I may be slow to respond.

Sean Allred vermiculus

🙃
I may be slow to respond.
View GitHub Profile
--- !Move
name: mark node
description: mark this node
author: Sean Allred
date: 2014-05-17
tex: '"marked"(n) = 1'
filename: mark.py
--- !Move
name: unmark node
description: unmark this node
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{enumerate}
\item \dots
\item \dots
\item \dots
\item \dots
\item \dots
\item \dots
# http://stackoverflow.com/a/16532192/1443496
from tkinter import *
from ttk import * # sudo pip3 install pyttk
import ssa.final as core
import time
class Test:
count = 0
ListeyTree = [1,[2,3,4],5,6,[7,8,[9,10],11,12,[13,14],15]]
import pygame
import networkx as nx
from ColorBank import ColorBank
from BasicNode import BasicNode
def construct_tree_from_lisp(lisp):
"""
from ColorBank import ColorBank
class BasicNode:
default_radius = 25
default_color = (0,0,0)
default_data = None
default_position = (0, 0)
def __init__(self, position=None,
import tkinter as tk
def construct_tree_from_lisp(lisp):
"""
Creates a Tree object from a LISP-style list:
[1, 2, [3, 4, 5], [6, 7], 8]
"""
if isinstance(lisp, list):
v = lisp[0]
\documentclass[a5paper]{memoir}
\usepackage[margin=1in]{geometry}
\usepackage{gmverse}
\usepackage{parallel}
\usepackage{fontspec}
% for unicode glyphs; I'm not actually using this :)
\setmainfont[Ligatures=TeX]{Arial Unicode MS}
\usepackage{xparse}
% arara: xelatex
\documentclass{article}
\usepackage{fontspec}
\setmonofont{Courier}
\usepackage{listings}
\lstset{
basicstyle=\ttfamily,
language=bash,
% arara: xelatex
\documentclass{article}
\usepackage{fontspec}
\setmonofont{Courier}
\usepackage{listings}
\lstset{
basicstyle=\ttfamily,
language=bash,
@vermiculus
vermiculus / c-jump.el
Last active August 29, 2015 14:03
CJump: Jump to or search for a corresponding file
(defun get-word-at-point ()
"Get the word at point."
(interactive)
(let (pos1 pos2 meat)
(if (and transient-mark-mode mark-active)
(setq pos1 (region-beginning)
pos2 (region-end))
(setq pos1 (car (bounds-of-thing-at-point 'symbol))
pos2 (cdr (bounds-of-thing-at-point 'symbol))))
(buffer-substring-no-properties pos1 pos2)))