This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:b="http://www.google.com/2005/gml/b" xmlns:data="http://www.google.com/2005/gml/data" xmlns:expr="http://www.google.com/2005/gml/expr"> | |
<!--<head>--><head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> | |
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" /> | |
<meta content="yes" name="apple-mobile-web-app-capable" /> | |
<meta content="black" name="apple-mobile-web-app-status-bar-style" /> | |
<meta content="telephone=no" name="format-detection" /> | |
<meta name="renderer" content="webkit" /> | |
<b:include data="blog" name="all-head-content"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import url('http://fonts.useso.com/css?family=Droid+Sans:400,700|Vollkorn:400italic'); | |
/** | |
* Page styles | |
*/ | |
/*--------------------------------------------------- | |
LESS Elements 0.9.1 | |
--------------------------------------------------- | |
A set of useful LESS mixins | |
More info at: http://lesselements.com | |
MODIFIED BY: Brandon Brown |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace Tmb; | |
use Illuminate\Database\Eloquent\Model as Eloquent; | |
use Illuminate\Validation\Validator; | |
class BaseModel extends Eloquent | |
{ | |
/** | |
* Error message bag |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// answer to http://weibo.com/1915548291/z2UtyzuvQ | |
// see also http://www.cnblogs.com/baiyanhuang/archive/2012/11/11/2764914.html | |
#include <boost/bind.hpp> | |
#include <boost/function.hpp> | |
#include <boost/noncopyable.hpp> | |
#include <boost/ptr_container/ptr_vector.hpp> | |
#include <fstream> | |
#include <iostream> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en-US" prefix="og: http://ogp.me/ns#"> | |
<head> | |
<meta charset="utf-8"> | |
<title>{% if is_home %}{{ site.author }}{% elif is_post %}{{ post.title }}{% elif is_link %}{{ link.title }}{% elif is_page %}{{ page.title }}{% endif %} | {{ site.name }}</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta name="apple-mobile-web-app-capable" content="yes"> | |
<meta name="apple-mobile-web-app-status-bar-style" content="black"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" MacVim colorscheme | |
" | |
" Maintainer: Bjorn Winckler <bjorn.winckler@gmail.com> | |
" Last Change: 2008 May 9 | |
" | |
" This is the default MacVim color scheme. It supports both light and dark | |
" backgrounds (see :h 'background'). | |
" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local ngx = require"ngx" | |
local setmetatable = setmetatable | |
local insert = table.insert | |
local pairs = pairs | |
local ipairs = ipairs | |
local type = type | |
local strlen = string.len | |
local substr = string.sub | |
local pp = require'prettyprint' | |
local match = string.match |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
usage: | |
local form = multipart:new() | |
-- set any opts | |
form:parse() | |
-- form.fields | |
]] | |
local ngx = require("ngx") | |
local upload = require("resty.upload") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd $HOME | |
#vimpath=".vim/bundle" | |
vimpath=".vim/bundle" | |
mkdir -p $vimpath && cd $vimpath | |
echo woring in [`pwd`] | |
git clone https://github.com/gmarik/vundle.git | |
curl -o ~/.vimrc https://gist.github.com/kran/2886745/raw/f42600943517f20fd1e6773a99cf5af02c0763d5/.vimrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xfconf-query -c xsettings -p /Gtk/KeyThemeName -s Emacs | |
/usr/bin/setxkbmap -option "ctrl:swapcaps" |
NewerOlder