Skip to content

Instantly share code, notes, and snippets.

@carlosliu
carlosliu / bootstrap_sass_ms.scss
Last active April 29, 2016 05:41 — forked from firepol/bootstrap_ms.css
bootstrap sass version of 'col-ms-*' grid
.col-ms-1,
.col-ms-2,
.col-ms-3,
.col-ms-4,
.col-ms-5,
.col-ms-6,
.col-ms-7,
.col-ms-8,
.col-ms-9,
.col-ms-10,
@carlosliu
carlosliu / Return-to-ControlR-for-Karabiner
Last active August 29, 2015 14:27 — forked from ShingoFukuyama/Return-to-ControlR-for-Karabiner
Pretend return key as control_r key. http://fukuyama.co/return-to-right-control (with "only in Emacs, Vi, Terminal, X11" options)
<?xml version="1.0"?>
<root>
<item>
<name>Change Return Key R</name>
<item>
<name>Return to Command_R</name>
<identifier>remap.return2commandR</identifier>
<autogen>__KeyToKey__ KeyCode::RETURN, KeyCode::COMMAND_R</autogen>
</item>
<item>
@carlosliu
carlosliu / minmal_twitter.css
Created September 14, 2012 01:28 — forked from cmod/minmal_twitter.css
Twitter stylebot
.trends, .bird-topbar-etched, .wtf-module, .site-footer, .topics {
display: none !important;
}
.wrapper, .wrapper-narrow, .wrapper-permalink {
background: none !important;
max-width: 37em !important;
}
.dashboard {
@carlosliu
carlosliu / gist:2181466
Created March 24, 2012 11:45 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
if (typeof (AC) === "undefined") {
AC = {}
}
AC.ImageReplacer = Class.create({
_defaultOptions: {
listenToSwapView: true,
filenameRegex: /(.*)(\.[a-z]{3}($|#.*|\?.*))/i,
filenameInsert: "_☃x",
ignoreCheck: /(^http:\/\/movies\.apple\.com\/|\/105\/|\/global\/elements\/quicktime\/|_(([2-9]|[1-9][0-9]+)x|nohires)(\.[a-z]{3})($|#.*|\?.*))/i,
attribute: "data-hires",
@carlosliu
carlosliu / Bcrypt.php
Created August 5, 2011 13:10
Simple PHP 5.3+ Bcrypt class and functions
<?php
/*
By Marco Arment <me@marco.org>.
This code is released in the public domain.
THERE IS ABSOLUTELY NO WARRANTY.
Usage example:
// In a registration or password-change form: