Install jsonlint
to act as syntastic json checker:
$ npm install jsonlint -g
Tell syntatastic about it:
" in your ~/.vimrc
nmap <F2> a<C-R>=strftime("%c")<CR><Esc> | |
"http://stackoverflow.com/questions/69998/tabs-and-spaces-in-vim | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
call pathogen#infect() | |
syntax on | |
filetype plugin indent on |
/* Less.js function which generates prefixes any CSS property */ | |
.pf(@prop, @value){ | |
-:~`";"+"@{prop}:@{value};-webkit-@{prop}:@{value};-moz-@{prop}:@{value};-o-@{prop}:@{value};-ms-@{prop}:@{value}".replace(/'/g,"")`; | |
} | |
#container { | |
.pf('border-radius', 10px); | |
.pf('transform', 'rotate(7deg)'); | |
.pf('transition','all 1s ease-in-out'); | |
.pf('box-shadow','2px 2px 5px 0 rgba(0,0,0,.6)'); |
* { margin: 0; padding: 0; } | |
ul, ol, dl { list-style: none; } | |
h1, h2, h3, h4, h5, h6 { font-weight: normal; } | |
body { font: 14px/1.6 tahoma, arial, "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif; } | |
a { text-decoration: none; color: #000; } | |
imgi { border: none; } |
var app = angular.module('MyApp'); | |
app.controller('ContactController', ['$scope', function($scope) { | |
$scope.contacts = ["juntao", "abruzzi"]; | |
$scope.submit = function() { | |
$scope.$parent.toggleContactsPanel(); | |
}; | |
}]); |
module Jekyll | |
class CategoryIndex < Page | |
def initialize(site, base, dir, category) | |
@site = site | |
@base = base | |
@dir = dir | |
@name = 'index.html' | |
self.process(@name) |
# Sample verbose configuration file for Unicorn (not Rack) | |
# | |
# This configuration file documents many features of Unicorn | |
# that may not be needed for some applications. See | |
# http://unicorn.bogomips.org/examples/unicorn.conf.minimal.rb | |
# for a much simpler configuration file. | |
# | |
# See http://unicorn.bogomips.org/Unicorn/Configurator.html for complete | |
# documentation. |
Install jsonlint
to act as syntastic json checker:
$ npm install jsonlint -g
Tell syntatastic about it:
" in your ~/.vimrc
==========
A useful tools or tips list for mobile web application developing
这个项目收集移动端开发所需要的一些资源与小技巧
一些非常重要的工具类网站
(function( describe ){ | |
"use strict"; | |
/** | |
* Demonstration of how to properly use Jasmine testing with AngularJS promise-based services. | |
* | |
* NOTE: based on the origina version from Jim Lavin's | |
* http://codingsmackdown.tv/blog/2012/12/28/mocking-promises-in-unit-tests/ | |
* | |
* FIXED: Igor Minar fixed this on 8/22/2013. Check with v1.2.x master branch of AngularJS |
// Central xhr progress tracker. Used for both a global | |
// activity indicator as well as granular spinners within in a page. | |
var Progress$ = new Rx.Subject(); | |
// Make an xhr call and make a tag to track the progress ticks. | |
var users$ = Rx.DOM.ajax({ | |
method: 'GET', | |
url: 'https://api.github.com/users', | |
responseType: 'json', | |
progressObserver: Rx.Observer.create( |