Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| .highlight{background-color:#073642;color:#93a1a1}.highlight .c{color:#586e75 !important;font-style:italic !important}.highlight .cm{color:#586e75 !important;font-style:italic !important}.highlight .cp{color:#586e75 !important;font-style:italic !important}.highlight .c1{color:#586e75 !important;font-style:italic !important}.highlight .cs{color:#586e75 !important;font-weight:bold !important;font-style:italic !important}.highlight .err{color:#dc322f !important;background:none !important}.highlight .k{color:#cb4b16 !important}.highlight .o{color:#93a1a1 !important;font-weight:bold !important}.highlight .p{color:#93a1a1 !important}.highlight .ow{color:#2aa198 !important;font-weight:bold !important}.highlight .gd{color:#93a1a1 !important;background-color:#372c34 !important;display:inline-block}.highlight .gd .x{color:#93a1a1 !important;background-color:#4d2d33 !important;display:inline-block}.highlight .ge{color:#93a1a1 !important;font-style:italic !important}.highlight .gr{color:#aa0000}.highlight .gh{color:#586e |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| /** | |
| * Requires node v0.7.7 or greater. | |
| * | |
| * To connect: $ curl -sSNT. localhost:8000 | |
| */ | |
| var http = require('http') | |
| , repl = require('repl') | |
| , buf0 = new Buffer([0]) |
| # 適用於【鼠鬚管】0.9.13+ | |
| # 位置:~/Library/Rime/squirrel.custom.yaml | |
| # 用法:想要哪項生效,就刪去該行行首的#字符,但注意保留用於縮進的空格 | |
| patch: | |
| # us_keyboard_layout: true # 鍵盤選項:應用美式鍵盤佈局 | |
| # show_notifications_when: growl_is_running # 狀態通知,默認裝有Growl時顯示,也可設爲全開(always)全關(never) | |
| # style/horizontal: true # 候選窗横向顯示 | |
| # style/inline_preedit: false # 非內嵌編碼行 | |
| # style/font_face: "儷黑 Pro" # 我喜歡的字體名稱 |
| import sublime, sublime_plugin | |
| import os | |
| class DetectFileTypeCommand(sublime_plugin.EventListener): | |
| """ Detects current file type if the file's extension isn't conclusive """ | |
| """ Modified for Ruby on Rails and Sublime Text 2 """ | |
| """ Original pastie here: http://pastie.org/private/kz8gtts0cjcvkec0d4quqa """ | |
| def on_load(self, view): | |
| filename = view.file_name() |
| # How to create a favicon with multiple image sizes and keep alpha transparency | |
| - export your images in the desired sizes (16x16, 32x32 ... max 256x256) as PNGs + alpha | |
| - install ImageMagick | |
| Run this command (replacing the .png files for your own images): | |
| convert favicon-16.png favicon-32.png favicon-64.png -colors 256 -alpha background favicon.ico |
| define(function(require) { return function(jQuery) { | |
| /** | |
| * jQuery Validation Plugin 1.9.0 | |
| * | |
| * http://bassistance.de/jquery-plugins/jquery-plugin-validation/ | |
| * http://docs.jquery.com/Plugins/Validation | |
| * | |
| * Copyright (c) 2006 - 2011 J枚rn Zaefferer | |
| * | |
| * Dual licensed under the MIT and GPL licenses: |
| function whichTransitionEvent(){ | |
| var t; | |
| var el = document.createElement('fakeelement'); | |
| var transitions = { | |
| 'transition':'transitionend', | |
| 'MSTransition':'msTransitionEnd', | |
| 'MozTransition':'transitionend', | |
| 'WebkitTransition':'webkitTransitionEnd' | |
| } |