Skip to content

Instantly share code, notes, and snippets.

View windse7en's full-sized avatar

Tao Zhang windse7en

View GitHub Profile
@windse7en
windse7en / Grid.jsx
Last active February 14, 2017 21:15
Grid export into multiple components.
import React, { PropTypes } from 'react';
import GridRow from '../src/GridRow';
import GridColumn from '../src/GridColumn';
import '../src/grid.scss';
const propTypes = {
children: PropTypes.node.isRequired,
};
@windse7en
windse7en / stooge_loader.rb
Created December 1, 2016 15:15 — forked from bowsersenior/stooge_loader.rb
A demo of YAML anchors, references and nested values
require 'rubygems'
require 'yaml'
# A demonstration of YAML anchors, references and handling of nested values
# For more info, see:
# http://atechie.net/2009/07/merging-hashes-in-yaml-conf-files/
stooges = YAML::load( File.read('stooges.yml') )
# => {
# "default" => {