Skip to content

Instantly share code, notes, and snippets.

@franksn
franksn / keybindings-conkeror.js
Last active May 2, 2018 20:06
keybindings-conkeror.js
// NOTE: This file should be loaded finally, after all other files
// define keys for specific keymap
// arguments: keymap, keystroke1, command1, keystroke2, command2,...
function my_define_keys(){
// check if arguments if larger than 1
if(arguments.length > 1){
var args = Array.prototype.slice.call(arguments);
// get the keymap
@franksn
franksn / project.clj
Created December 1, 2015 04:00
project.clj for figwheel 0.5.0-2 and cider
(defproject omtut "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.7.0"]
[org.clojure/clojurescript "1.7.170"]
[org.clojure/core.async "0.2.374"]
[org.omcljs/om "1.0.0-alpha24"]
[com.cemerick/piggieback "0.2.1"]
@franksn
franksn / ratpoisonrc
Created November 14, 2015 19:57
ratpoisonrc
# ~/.ratpoisonrc
# options
startup_message off
# ratpoison
set border 6
set padding 20 20 20 20
set fgcolor #6b6254
set fwcolor #6b6254
@franksn
franksn / nothing-special.py
Created October 25, 2015 16:07
invert colors from css
import re
import Tkinter, tkFileDialog
root = Tkinter.Tk()
root.withdraw()
p6 = re.compile("#[0-9a-f]{6};", re.IGNORECASE)
p3 = re.compile("#[0-9a-f]{3};", re.IGNORECASE)
filepath = tkFileDialog.askopenfilename(title= "file?",)
content = file(filepath,'r').read()
@franksn
franksn / bulb-light
Created October 25, 2015 15:51
bulb-light xresources
!! based on dkeg's bulb colors
!! inverted with a bit of tweaks
#define fg #847a67
#define bg #f1eeeb
#define blk #b3afaf
#define bblk #a9a3a5
#define red #9c674b
#define grn #78784d
@franksn
franksn / bulb-theme.el
Created October 25, 2015 14:42
an emacs theme based on bulb colors by dkeg
;;; bulb-theme.el --- Emacs theme with a dark background.
;; Copyright (C) 2015 , dkeg
;; Author: dkeg <https://github.com/dkeg/crayolo/blob/master/bulb>
;; With a few modification from franksinistra
;; Version: 0.1
;; Package-Requires: ((emacs "24"))
;; This file is not part of Emacs.