Skip to content

Instantly share code, notes, and snippets.

View cycold's full-sized avatar

cy cycold

  • ShenZhen, China
View GitHub Profile
@cycold
cycold / start.bat
Last active August 29, 2015 14:05
批处理start命令传递参数
start cmd /c ""C:\Program Files\Git\bin\sh.exe" --login -i"
rem 参考http://stackoverflow.com/questions/21151408/bat-start-w-command-recognized
@cycold
cycold / gem.rb
Created September 2, 2014 09:37
gem安装指定版本的包
gem install sass -v 3.4.1
@cycold
cycold / delete_all.bat
Created September 4, 2014 03:58
delete所有文件
@echo off
rem 要把要删除的文件或目录拖放到这个bat文件的图标上就可删除
DEL /F /A /Q \\?\%1
RD /S /Q \\?\%1
@cycold
cycold / AutoHotkey.ahk
Created September 9, 2014 01:52
autoKey
; IMPORTANT INFO ABOUT GETTING STARTED: Lines that start with a
; semicolon, such as this one, are comments. They are not executed.
; This script has a special filename and path because it is automatically
; launched when you run the program directly. Also, any text file whose
; name ends in .ahk is associated with the program, which means that it
; can be launched simply by double-clicking it. You can have as many .ahk
; files as you want, located in any folder. You can also run more than
; one ahk file simultaneously and each will get its own tray icon.
@cycold
cycold / trst.js
Created September 10, 2014 01:42
浏览器的分辨率
document.write("浏览器分辨率是"+document.documentElement.clientWidth+"*"+document.documentElement.clientHeight );
document.write("屏幕分辨率是"+window.screen.width+"*"+window.screen.height);
@cycold
cycold / gist:c3a3a7df69ccacb29dd3
Created September 10, 2014 02:38
window.devicePixelRatio值支持与数值测试实例页面
<input type="button" id="button" value="点击弹出window.devicePixelRatio" />
document.getElementById("button").onclick = function() {
alert(window.devicePixelRatio);
};
@cycold
cycold / _vimrc
Created September 11, 2014 01:58
Gvim configure
"------default settings安装完就有放入设置---------------
set nocompatible "关闭兼容模式
"模仿win快捷键,如Ctrl+a 全选, Ctrl+c 复制 Ctrl + v 粘贴等
source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
behave mswin
"设置无自动备份文件 如index.php~
set nobackup
@cycold
cycold / sublime.sublime-keymap
Last active August 29, 2015 14:06
sublime key shutcuts
[
{ "keys": ["alt+/"], "command": "auto_complete" },
{ "keys": ["ctrl+shift+c"], "command": "toggle_side_bar" },
{ "keys": ["ctrl+shift+g"], "command": "find_all_under" },
{ "keys": ["ctrl+shift+x"], "command": "open_dir", "args": {"dir": "$file_path", "file": "$file_name"} },
{ "keys": ["ctrl+shift+s"], "command": "reveal_in_side_bar"},
{ "keys": ["ctrl+shift+z" ], "command": "view_in_browser" },
{ "keys": ["ctrl+shift+l"], "command": "next_view_in_stack" },
{ "keys": ["ctrl+shift+h"], "command": "prev_view_in_stack" },
{ "keys": ["alt+l"], "command": "focus_neighboring_group" },
@cycold
cycold / Preferences.sublime-settings
Created September 11, 2014 03:33
sublime confiure
{
"auto_complete_commit_on_tab": false,
"auto_match_enabled": true,
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/User/Monokai (SL).tmTheme",
"copy_with_empty_selection": false,
"default_encoding": "UTF-8",
"detect_slow_plugins": false,
"drag_text": false,