Skip to content

Instantly share code, notes, and snippets.

@honix
honix / .vimrc
Last active August 26, 2017 20:19
my vim editor settings
" github.com/honix
" VIM CONFIGURATION
set nocompatible
""" VISUALS
" Visualy combos
set showcmd
" Display line numbers on the left
set number
@honix
honix / tripo.lisp
Last active October 31, 2016 12:36
(defun weak-tripo (n)
(case n
(0 0)
(1 0)
(2 1)
(t (+ (weak-tripo (- n 1))
(weak-tripo (- n 2))
(weak-tripo (- n 3))))))
(let ((table (make-hash-table)))
@honix
honix / recur1.lisp
Created June 9, 2016 19:30
Playing with Sketch
(ql:quickload :sketch)
(in-package :sketch)
(defstruct point
(x 0.0 :type short-float)
(y 0.0 :type short-float))
(defparameter *pen* (make-pen :fill +black+
:stroke +black+
@honix
honix / round_rect.py
Created January 3, 2016 20:59
Tkinter canvas round rect
from tkinter import *
from math import sin, cos
master = Tk()
c = Canvas(master, width=230, height=230)
c.pack()
def create_good_rectangle(c, x1, y1, x2, y2, feather, res=5, color='black'):
points = []