Skip to content

Instantly share code, notes, and snippets.

View cycold's full-sized avatar

cy cycold

  • ShenZhen, China
View GitHub Profile
@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 / 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 / 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 / gem.rb
Created September 2, 2014 09:37
gem安装指定版本的包
gem install sass -v 3.4.1
@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 / 1.md
Last active August 29, 2015 14:05
前端资源网站
@cycold
cycold / gist:cb8c2d292a071ca9e0f3
Created August 29, 2014 09:11
Google I/O 2014 发布的 Material Design 将会成为统一 Android Mobile,Android Table, Desktop 等平台的设计语言规范
http://devework.com/material-design.html
@cycold
cycold / HEAD.html
Created August 26, 2014 07:57
webApp HEAD
<head>
<meta charset="UTF-8">
<title>AppTitle</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<meta http-equiv="x-dns-prefetch-control" content="on" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<!-- 禁止页面缓存 -->
<meta http-equiv="Pragma" CONTENT="no-cache">
<!-- 禁止百度转码 -->
<meta http-equiv="Cache-Control" content="no-transform" />
@cycold
cycold / 1.js
Created August 22, 2014 07:49
IEjs
if (/msie [6|7|8|9]/i.test(navigator.userAgent)) {window.document.location.href = "browserHint.html"};