This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ 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 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var crypto = require('crypto'); | |
var nsURL = new Buffer([0x6b,0xa7,0xb8,0x11,0x9d,0xad,0x11,0xd1,0x80,0xb4,0x00,0xc0,0x4f,0xd4,0x30,0xc8]); | |
var emailUUID = function(email) { | |
var shasum = crypto.createHash('sha1'); | |
shasum.update(Buffer.concat([nsURL, new Buffer('mailto:'+email)])); | |
shasum=shasum.digest(); | |
var result = new Buffer(16); | |
shasum.copy(result, 0, 0, 16); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
snippet rollbar_deployment | |
rollbar_deployment: | |
environment: ${1:# REQUIRED} | |
token: ${2:# REQUIRED} | |
revision: ${3:# REQUIRED} | |
comment: ${4} | |
rollbar_user: ${5} | |
url: ${6:https://api.rollbar.com/api/1/deploy/} | |
user: ${7} | |
validate_certs: ${8:#yes|no} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Fix trackpad after resume | |
After=suspend.target | |
After=hibernate.target | |
[Service] | |
User=%I | |
Type=simple | |
Environment=DISPLAY=:0 | |
ExecStart=/usr/bin/xinput -enable bcm5974 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# kpm restore whines about failing to write some headers, here's the non-obvious fix: | |
# Add Microsofts poorly signed certificates! | |
sudo certmgr -ssl -m https://go.microsoft.com | |
sudo certmgr -ssl -m https://nugetgallery.blob.core.windows.net | |
sudo certmgr -ssl -m https://nuget.org | |
mozroots --import --sync |
OlderNewer