Skip to content

Instantly share code, notes, and snippets.

I may be slow to respond

Kevin Titor egoist

I may be slow to respond
Block or report user

Report or block egoist

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
egoist / jquery to
Last active Jan 7, 2016
Compile jQuery to XXX component
View jquery to

form jQuery:

<div class="bingo">
  <button>Say hi!</button>

  $('button').on('click', function () {
egoist /
Last active Feb 8, 2016
CSS 布局(非 flexbox 篇)


<div class="container">
  css is awesome!  
.container {
upstream php {
server unix:/var/run/php5-fpm.sock;
server {
# enforce NO www
return 301 $scheme://$request_uri;
egoist /
Last active May 14, 2016
PostgreSQL 简明指南


# ubuntu
$ sudo apt-get install postgresql


#! /usr/bin/env bash
# Usage: git-io URL [CODE]
# Turns a URL
# into a URL
nathggns / stroke.scss
Created Jun 24, 2012
Text Stroke SCSS Mixin (SASS)
View stroke.scss
@mixin stroke($width, $color) {
$shadow: 0 0 0 transparent;
$i: 0;
@while ($i < $width) {
$i: $i + 1;
$j: 0;
@while ($j < 2) {
$j: $j + 1;
View rainbow-text.css
.rainbow-text {
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-image: -webkit-gradient(linear, left top, left bottom,
color-stop(0.00, red),
color-stop(16%, orange),
color-stop(32%, yellow),
color-stop(48%, green),
color-stop(60%, blue),
color-stop(76%, indigo),

First of all, this is not my brilliant effort to get react-native working on Windows, it is the collation of work by others, particularly @mqli and @Bernd Wessels. I've just summarised what worked for me.

If you would prefer to read what I've plagerised, head over to mqli's great gist


  • The below is tested with react-native-cli 0.1.5, react-native 0.12.0 on Windows 10, node 4.1.1, and Android (physical Nexus 6 and AVD with API v22)
  • I hope this will all be redundant in a few weeks. Please comment on stuff that is now fixed and I will update this to keep it relevant.
  • Sprinkle a bit of YMMV around

Keep this github issue handy, it’s the bucket for all Windows/Linux related tricks to get RN working.

rgrove /
Created Feb 8, 2016
Cake's approach to React Router server rendering w/code splitting and Redux

Can't share the complete code because the app's closed source and still in stealth mode, but here's how I'm using React Router and Redux in a large app with server rendering and code splitting on routes.


  1. Wildcard Express route configures a Redux store for each request and makes an addReducers() callback available to the getComponents() method of each React Router route. Each route is responsible for adding any Redux reducers it needs when it's loaded. (This isn't really necessary on the
You can’t perform that action at this time.