Skip to content

Instantly share code, notes, and snippets.

View timsims's full-sized avatar

Tim Sims timsims

  • Moe Cat Productions
  • Guangzhou, China
View GitHub Profile
@timsims
timsims / mountain-lion-brew-setup.markdown
Created July 28, 2012 11:36 — forked from myobie/mountain-lion-brew-setup.markdown
Get Mountain Lion and Homebrew to Be Happy

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.

#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
@timsims
timsims / 0_reuse_code.js
Last active August 29, 2015 14:19
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
<?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;