Skip to content

Instantly share code, notes, and snippets.

@ericchen0121
ericchen0121 / machine.js
Last active August 25, 2020 21:24
Generated by XState Viz: https://xstate.js.org/viz
Machine({
id: 'vms4',
initial: 'grid',
states: {
grid: {
},
solo: {
}

This is a header\n\nAnd this is a paragraph

@ericchen0121
ericchen0121 / components__App.js
Created March 25, 2017 06:50
connect() function not picking up Redux state (returning undefined) // in the gist file names, i used "__" in place of "/" in my folder structure
import React, { Component } from 'react';
import './App.css';
import { Items } from '../containers/Items'
export default class App extends Component {
render() {
return (
<div>
<Items />
@ericchen0121
ericchen0121 / Rakefile
Created August 19, 2013 10:28
rakefile configuration for the master command... 'rake reset'
#!/usr/bin/env rake
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require File.expand_path('../config/application', __FILE__)
Stacked::Application.load_tasks
desc "reset everything"
task "reset" do
@ericchen0121
ericchen0121 / chris_irc.rb
Created August 1, 2013 00:42
club's irc pretty print, awesome print irc
# require 'rubygems' #needed for wirble
require 'irb/completion' # non-wirble auto-complete
require 'pp'
require 'wirble'
begin
# init wirble
Wirble.init
Wirble.colorize
rescue LoadError => err
@ericchen0121
ericchen0121 / index.html
Last active December 20, 2015 06:18 — forked from dbc-challenges/index.html
DBC Phase 2 Practice Assessment Part 3
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="http://cdn.jsdelivr.net/normalize/2.1.0/normalize.css">
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lato:100,900">
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.0.2/css/font-awesome.min.css">
</head>
/* Here is your chance to take over Socrates!
Spend 10 minutes on each of the following hacks to the socrates website.
Enter them in the console to make sure it works and then save
your results here.
Choose a new pair for each. Add your names to the section you complete.
*/
/* Here is your chance to take over Socrates!
Spend 10 minutes on each of the following hacks to the socrates website.
Enter them in the console to make sure it works and then save
your results here.
Choose a new pair for each. Add your names to the section you complete.
*/
/* Here is your chance to take over Socrates!
Spend 10 minutes on each of the following hacks to the socrates website.
Enter them in the console to make sure it works and then save
your results here.
Choose a new pair for each. Add your names to the section you complete.
*/
/* Here is your chance to take over Socrates!
Spend 10 minutes on each of the following hacks to the socrates website.
Enter them in the console to make sure it works and then save
your results here.
Choose a new pair for each. Add your names to the section you complete.
*/