Skip to content

Instantly share code, notes, and snippets.

View cycold's full-sized avatar

cy cycold

  • ShenZhen, China
View GitHub Profile
<!doctype html>
<html>
<head>
<!-- Run in full-screen mode. -->
<meta name="apple-mobile-web-app-capable" content="yes">
<!-- Make the status bar black with white text. -->
<meta name="apple-mobile-web-app-status-bar-style" content="black">
@cycold
cycold / httpd.conf
Created August 4, 2014 07:51
Xampp apache config
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
@cycold
cycold / sublime_project.conf
Created August 4, 2014 07:55
sblime_text项目配置文件
{
"folders":
[
{
"follow_symlinks": true,
"path": "F:\\web\\web_gits\\sassIce"
}
],
"settings":
{
@cycold
cycold / for-retunr.js
Created August 7, 2014 03:57
For 循环中的if中return语句
for( var i=0; i<10; i++ ){
if( i == 5 ){
console.log(i);
return i; //这里return后,后面的代码就不会执行了,即使是在if语句中
}
console.log(i);
}
@cycold
cycold / gist:e0a286b130a6e727dabb
Last active August 29, 2015 14:05
placehold-IMG
<img src="http://fpoimg.com/155x260?text=Palcehold-1&bg_color=bdd080">
<img src="http://fpoimg.com/155x260?text=Palcehold-2&bg_color=d45d59">
<img src="http://fpoimg.com/155x260?text=Palcehold-3&bg_color=d49259">
@cycold
cycold / json.js
Created August 20, 2014 07:51
json解析
if( typeof( data ) === 'string' ) {
dataTemp1 = JSON.parse( data );
dataTemp2 = $.parseJSON( data );
dataTemp3 = eval('(' + data + ')' );
}
@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"};
@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 / 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 / 1.md
Last active August 29, 2015 14:05
前端资源网站