Skip to content

Instantly share code, notes, and snippets.

andyyou / index.jade
Created September 17, 2014 04:18
A Pen by AndyYou.
andyyou / gulpfile.js
Created September 17, 2014 12:08
The question?
View gulpfile.js
var gulp = require("gulp"),
connect = require("gulp-connect"),
less = require("gulp-less"),
react = require("gulp-react"),
watch = require("gulp-watch"),
jade = require("gulp-jade"),
clean = require("gulp-clean");
andyyou / fix_homebrew.rb
Created September 24, 2015 01:11 — forked from rpavlik/fix_homebrew.rb
Fix permissions on /usr/local for Homebrew
View fix_homebrew.rb
# This script fixes /usr/local only.
# 6th January 2010:
# Modified the script to just fix, rather than install. - rpavlik
# 30th March 2010:
# Added a check to make sure user is in the staff group. This was a problem
# for me, and I think it was due to me migrating my account over several
andyyou / color.rb
Created October 30, 2011 07:58
View color.rb
color = ["ffffff","f9fcfe","eaf5fd","dbeefb","cce6f9","bddff7","add8f5","9ed0f4","8fc9f2","71baee","61b3ed","52abeb","43a4e9"]
color.inject do |f,s|
color = f.to_s
next_color = s.to_s
first = color[0,2].hex
second = color[2,2].hex
third = color[4,2].hex
next_color_first = next_color[0,2].hex

All binary can be downloaded

Sublime Text 3, build 3083 (dev) for Windows x64

0xe21b3 85 3B


View Few Line of Hack Code Make React-Native Run on

#Few Line of Hack Code Make React-Native Run on Windows

While React-Native just add support of Android,yet officeally they just only support on OSX.

After a few hours of debugging, I find a simple way of let React-Native run on Windows.

Make sure all requirements were all setup following this:

Then initilize the project following this:

andyyou / react-native-issue-sample.js
Created November 26, 2015 02:48
View react-native-issue-sample.js
'use strict';
var React = require('react-native');
var {
} = React;
andyyou / gist:4730995
Created February 7, 2013 13:42
View gist:4730995
# Load other application
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
if [ -f ~/ ]; then
source ~/
export PS1='Geoff[\W]$(__git_ps1 "(%s)"): '
andyyou /
Created December 14, 2015 07:52 — forked from brentvatne/
React.js Conf Contest

React.js Conf tickets, everyone wants them but we only have space for 400 people, and that includes speakers, organizers and everyone’s proud parents and grandparents! If you are into speaking and have time before December 13th, you should submit a 30 minute talk or 5 minute lightning talk proposal. If you’re more into writing than speaking or coding, ReactJSNews is giving away 1 ticket for the best blog post submission. But you probably like programming, so React Native Newsletter & Exponent are giving away two tickets for the best React Native apps made with Exponent! Of course, if you like speaking, writing and programming you should do all of the above.

Details of the contest

  • You make an “app” and publish it to Exponent. You don’t have to open source it, but people
andyyou / HomeController.cs
Created March 9, 2013 07:14
Sample for comment
View HomeController.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace MvcSample.Controllers
public class HomeController : Controller