Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / code_in_ol.md
Created February 21, 2012 12:57
code in ol
  1. xxxxx

    your code
    
  2. xxxxx

@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
> 这是一个 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 / gist:1208100
Created September 10, 2011 08:16
Sublime Text 2 - 实用快捷键 (Mac OS X)