Skip to content

Instantly share code, notes, and snippets.

Avatar

Tim Sims timsims

  • Moe Cat Productions
  • Guangzhou, China
View GitHub Profile
@timsims
timsims / 0_reuse_code.js
Last active Aug 29, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View gist:d77167794cb9c0eeef90
<?php
use Bosnadev\Repositories\Contracts\RepositoryInterface;
class MovieCacheRepo implements RepositoryInterface
{
public function __construct(RepositoryInterface $repo, MyCustomCache $cache, MyCustomCacheKeyGenerator $keygen)
{
$this->repo = $repo;
$this->cache = $cache;
$this->keygen = $keygen;
@timsims
timsims / mountain-lion-brew-setup.markdown
Created Jul 28, 2012 — forked from myobie/mountain-lion-brew-setup.markdown
Get Mountain Lion and Homebrew to Be Happy
View mountain-lion-brew-setup.markdown

Get Mountain Lion and Homebrew to Be Happy

1) Install XCode 4.4 into /Applications

Get it from http://developer.apple.com. You will not be able to submit apps to any stores using this XCode version, so turn away if that is something you might want to do.

2) Install Command Line Tools

In XCode's Preferences > Downloads you can install command line tools.

View gist:2785645
#UPDATE:12-05-09 02:30
127.0.0.1 localhost
#SmartHosts START
#Google Services START
203.208.47.1 0.docs.google.com
203.208.46.170 0-open-opensocial.googleusercontent.com
203.208.46.170 0-focus-opensocial.googleusercontent.com