Skip to content

Instantly share code, notes, and snippets.

@chase
chase / gist:5a212f414b44efc1f560
Created July 15, 2014 05:19
LINE Sticker Window Rule for Awesome WM
{ rule = { instance = "Line.exe", name = "emoji" },
properties = { floating = true, raise = true, focus = true },
callback = function (c)
local g = c:geometry()
mouse.coords({x=g.x + (g.width/2), y=g.y + (g.height/2)})
return awful.client.setslave(c)
end
}
@chase
chase / connectbot-gruvbox-dark.sql
Last active August 29, 2015 14:00
Gruvbox Colors for ConnectBot
-- Gruvbox Colors for ConnectBot
-- Chase Colman
--
-- Based on the Connectbot Solarized Colors by Priyesh Patel
-- https://github.com/priyeshpatel/connectbot-colors-solarized
-- *******************************************************************
-- The following commands should be executed on this SQLite DB:
-- /data/data/org.connectbot/databases/hosts
@chase
chase / fobot_stats.py
Last active January 4, 2016 02:19
A Willie IRC Bot (http://willie.dftba.net/) module that scrapes character info off of Fallout IRC RPG (http://falloutirc.webs.com/)Requires: Python 2.7, Willie, fuzzywuzzy, and lxml
"""
fobot_stats.py - New Reno Fallout Stat Module
Copryight 2014 Chase Colman, https://gist.github.com/chase/8554277
Licensed under the MIT License
"""
# TODO: Reorganize into Classes
import re
@chase
chase / global_ycm_config.py
Created August 29, 2013 20:57
Hacky, ugly, quickly-written YCM global file that checks for an Xcode project and pulls the flags from a dry run. Works just fine, but has no fallbacks.
from os import listdir
from os.path import dirname, join
import subprocess
import vim
import ycm_core
from ycm.completers.cpp.flags import _RemoveUnusedFlags
cached_xcode_flags = {}
def MakeRelativePathsInFlagsAbsolute(flags, working_directory):
@chase
chase / highlight.js
Created October 22, 2012 18:23
Times for highlightAuto Test
function highlightAuto(text) {
var result = {
keyword_count: 0,
relevance: 0,
value: escape(text)
};
var second_best = result;
for (var key in languages) {
console.time(key); // Start timer
if (!languages.hasOwnProperty(key))