Skip to content

Instantly share code, notes, and snippets.

Sharnie Ivery sharnie

Block or report user

Report or block sharnie

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
@danawoodman
danawoodman / 1-react-websockets-reflux.md
Last active May 23, 2018
Using WebSockets with Reflux and React
View 1-react-websockets-reflux.md

WebSockets + Reflux + React

Using WebSockets, React and Reflux together can be a beautiful thing, but the intial setup can be a bit of a pain. The below examples attempt to offer one (arguably enjoyable) way to use these tools together.

Overview

This trifect works well if you think of things like so:

  1. Reflux Store: The store fetches, updates and persists data. A store can be a list of items or a single item. Most of the times you reach for this.state in react should instead live within stores. Stores can listen to other stores as well as to events being fired.
  2. Reflux Actions: Actions are triggered by components when the component wants to change the state of the store. A store listens to actions and can listen to more than one set of actions.
View install_pg.txt
# Substitute Postgres.app/Contents/Versions/9.3 with appropriate version number
sudo ARCHFLAGS="-arch x86_64" gem install pg -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/9.5/bin/pg_config
@rtt
rtt / tinder-api-documentation.md
Last active Sep 10, 2019
Tinder API Documentation
View tinder-api-documentation.md

Tinder API documentation

http://rsty.org/

I've sniffed most of the Tinder API to see how it works. You can use this to create bots (etc) very trivially. Some example python bot code is here -> https://gist.github.com/rtt/5a2e0cfa638c938cca59 (horribly quick and dirty, you've been warned!)

Note: this was written in April/May 2014 and the API may have changed since. I have nothing to do with Tinder, nor their API, and I do not offer any support for anything you may build on top of this

API Details

View gist:2597326

Moving from jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@mattfinlayson
mattfinlayson / gource.sh
Created Dec 13, 2011
Setting up Gource on OS X
View gource.sh
brew install sdl sdl_image glew pcre
cd gource
./configure
make
sudo make install
cd ..
brew install ffmpeg
mkdir ~/.ffmpeg
You can’t perform that action at this time.