Skip to content

Instantly share code, notes, and snippets.

@lucifr
lucifr / gist:1208100
Created September 10, 2011 08:16
Sublime Text 2 - 实用快捷键 (Mac OS X)
> 这是一个 Quix 内置命令中文版文件
>
> 要查看更多关于 Quix 命令的编写请参考 http://quixapp.com/syntax/ 或是查看 Lucifr 翻译的中文手册 http://lucifr.com/quix
>
#kill-defaults
@基本命令
@这些是 Quix 内置的最为基本的命令,但可能也是最为强大的一些命令。
a http://www.amazon.com/s/?field-keywords=%s Amazon(亚马逊英文) 搜索
d http://www.google.com/search?q=define:%s Google 定义一个词语
@lucifr
lucifr / Code added to _config.yml
Created December 2, 2011 04:41
Flickr aside for Octopress
# Flick Badges
# Find your user id here: http://idgettr.com/ It should be something like "25711589%40N00".
flickr_user: 25711589%40N00
flickr_count: 6
@lucifr
lucifr / code_in_ol.md
Created February 21, 2012 12:57
code in ol
  1. xxxxx

    your code
    
  2. xxxxx

@lucifr
lucifr / sublimetext2.html
Created March 5, 2012 02:49
Sublime Text 2 Shortcuts for Cheaters
<table>
<caption>打开/前往</caption>
<colgroup>
<col style="text-align:left;width:150px"/>
<col style="text-align:left;"/>
</colgroup>
<thead>
<tr>
<th scope="col">快捷键</th>
<th scope="col">说明</th>
@lucifr
lucifr / gist:3696466
Created September 11, 2012 06:25 — forked from al3xandru/gist:1169583
Things Generalized Bookmarklet
javascript: (function () {
var w = window,
d = document,
selectedTxt = w.getSelection ? w.getSelection() : (d.getSelection) ? d.getSelection() : (d.selection ? d.selection.createRange().text : 0),
pageUri = w.location.href,
isGMail = w.location.host.match(/mail\.google\.com/),
subject = d.title,
source, url;
if (isGMail) {
var msgFrm = d.getElementById('canvas_frame'),
@lucifr
lucifr / PlainTasks_Tutorial_zhCN.todo
Created September 18, 2012 04:43
PlainTasks 教程中文版
如何使用 PlainTasks:
项目:
☐ 任何以冒号结尾的行都会被作为项目标题
☐ 可以通过缩进在项目中创建新的项目
☐ 项目可以被折叠(利用了编辑器的原生功能)
任务:
可以在任何位置添加普通文本作为笔记或描述;
就是这么简单!
@lucifr
lucifr / image_process.bash
Created September 20, 2012 05:49
a bash script for Alfred Extension to process screenshot.
#!/bin/bash
#
# requirements:
# - ImageMagick: http://www.imagemagick.org/script/binary-releases.php#macosx
# - image_optim: https://github.com/toy/image_optim
# - a scp supported host with ssh key paired
# setting up the enviroment
export PATH=/usr/local/bin:/opt/local/bin:/opt/local/sbin:$PATH
@lucifr
lucifr / markdown.js
Created January 2, 2013 06:34
markdown.js for hexo
var marked = require('marked'),
mdiscn = require('discount'),
_ = require('underscore'),
highlight = require('../util').highlight,
extend = require('../extend');
var regex = {
backtick: /^`{3}\s*([^\n]+)\n([^`]+)/,
captionUrl: /([^\s]+)\s*(.*)(https?:\/\/\S+)\s*(.*)/,
caption: /([^\s]+)\s*(.*)/
@lucifr
lucifr / private.xml
Created February 17, 2013 16:00
My KeyRemap4MacBook private.xml
<?xml version="1.0"?>
<root>
<item>
<name>F19 to F19</name>
<appendix>(F19 to Hyper (ctrl+shift+cmd+opt) + F19 Only, F19)</appendix>
<identifier>private.f192f19</identifier>
<autogen>
--KeyOverlaidModifier--
KeyCode::F19,
KeyCode::COMMAND_L,