Skip to content

Instantly share code, notes, and snippets.

View mtmzorro's full-sized avatar
🌌
Warp Drive Active

mTmzorro mtmzorro

🌌
Warp Drive Active
View GitHub Profile
@keelii
keelii / mac app
Last active August 31, 2016 03:37
我的 Mac 必装软件
1. xcode
安装好 commend line tools 方便开发使用命令行
2. iTerm2 + zsh
mac 上最好用的终端,全屏透明什么的用起来很不错
3. Alfred
启动器,和spotlight一样,不过更强大,alt+space让你启动任何东西
[
{
name:"HTML5",
uri:"http://www.w3.org/TR/html5/single-page.html",
category:"markup"
},
{
name:"HTML 5.1",
uri:"http://www.w3.org/TR/html51/single-page.html",
category:"markup"
@keelii
keelii / formatSeconds
Created June 21, 2013 06:05
把秒数转换成 「天:时:分:秒」
var formatSecounds = function(seconds, callback) {
var rDays, rHours, rMinutes, rSeconds;
if (!seconds || seconds < 0) {
return;
} else {
seconds = Math.round(seconds);
}
//剩余天
@Johnqing
Johnqing / less通用函数
Last active December 14, 2015 12:49
提取公共函数
/**
* @通用颜色
* @{color:@color-33;}
*/
@color-333:#333;
@color-666:#666;
@color-999:#999;
@color-ddd:#ddd;
@color-ccc:#ccc;
@color-c00:#c00;
@r37r0m0d3l
r37r0m0d3l / JavaScriptStringHashCode.js
Created January 9, 2013 13:36
Works same as Java’s String.hashCode()
/**
* String hash code
* @param {String} str
* @return {int}
*/
function hashCode(str) {
for (var result = 0, i = 0; i < str.length; i++) {
result = (result << 5) - result + str.charCodeAt(i);
result &= result;
}
@wrongkitchen
wrongkitchen / js-class.js
Created November 7, 2012 08:00
Javascript: Class Template
var PluginName;
(function($){
PluginName = function(options) {
this.defaults = {
};
this.options = $.extend(this.defaults, options);
};
@keelii
keelii / position-fixed.css
Created March 30, 2012 08:55 — forked from subtleGradient/position-fixed.css
Make position:fixed work in IE6
/*Make position:fixed work in IE6!*/
.fixed-top /* position fixed Top */{position:fixed;bottom:auto;top:0;}
.fixed-bottom /* position fixed Bottom */{position:fixed;bottom:0;top:auto;}
.fixed-left /* position fixed Left */{position:fixed;right:auto;left:0;}
.fixed-right /* position fixed right */{position:fixed;right:0;left:auto;}
* html,* html body /* IE6 Fixed Position Jitter Fix */{background-image:url(about:blank);background-attachment:fixed;}
* html .fixed-top /* IE6 position fixed Top */{position:absolute;bottom:auto;top:expression(eval(document.documentElement.scrollTop));}
* html .fixed-right /* IE6 position fixed right */{position:absolute;right:auto;left:expression(eval(document.documentElement.scrollLeft+document.documentElement.clientWidth-this.offsetWidth)-(parseInt(this.currentStyle.marginLeft,10)||0)-(parseInt(this.currentStyle.marginRight,10)||0));}
@kevinSuttle
kevinSuttle / meta-tags.md
Last active November 7, 2024 10:05 — forked from lancejpollard/meta-tags.md
List of Usable HTML Meta and Link Tags