Skip to content

Instantly share code, notes, and snippets.

@arcthur
arcthur / TeXIt.tex
Created May 3, 2012 13:27 — forked from neolee/TeXIt.tex
XeLaTeX Sample
%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
% 以上设定默认使用 XeLaTeX 编译,并指定 Unicode 编码,供 TeXShop 自动识别
% XeLaTeX 示例
\documentclass[12pt]{article}
% XeTeX 配合 fontspec 可以非常方便的设置字体
@arcthur
arcthur / hack.sh
Created March 31, 2012 15:24 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@arcthur
arcthur / snowyfog.9.js
Created December 20, 2011 16:16 — forked from am0c/snowyfog.9.js
Google: Let it snow
(function () {
var g = void 0,
k = !0,
m = null,
o = !1,
p, q = this,
r = function (a) {
var b = typeof a;
if ("object" == b) if (a) {
if (a instanceof Array) return "array";
@arcthur
arcthur / critique.md
Created December 15, 2011 06:51 — forked from island205/critique.md
jQuery library critique

jQuery

$ itself is a god object. Everything goes on it. The standard plugin / extension architecture that is recommended is to just bolt more methods on $ itself!

Surely this is bad. An example would be how we have both $.load which is overloaded to do completely different things. If they were on two separate sensibly named objects $Container.load and $EventTarget.load. Personally I would deprecate the latter in favour of .on('load'

The animation should be it's own little modular thing, not bolted onto $. Ajax should be it's own little modular thing, not bolted onto $

$

@arcthur
arcthur / BostonVimMeetup_12_05_2011_talknotes.txt
Created December 9, 2011 16:37 — forked from darcyparker/BostonVimMeetup_12_05_2011_talknotes.txt
Boston Vim Meetup December 5, 2011 Talk Notes
Boston Vim Meetup December 5, 2011
----------------------------------
Title : Harmonizing your text editing and shell work in vim
Speaker : Darcy Parker
github : @darcyparker
gmail : darcyparker at gmail.com
( Friendly reminder for new users when reading this in Vim:
:help fold-commands
:set foldmethod=marker
@arcthur
arcthur / gist:1378460
Created November 19, 2011 04:46
Ruby Style Guide
Original Source: https://github.com/chneukirchen/styleguide
= Christian Neukirchen's Ruby Style Guide
You may not like all rules presented here, but they work very well for
me and have helped producing high quality code. Everyone is free to
code however they want, write and follow their own style guides, but
when you contribute to my code, please follow these rules: