Skip to content

Instantly share code, notes, and snippets.

@ml242
ml242 / gist:c1b060efaa9bd07c1a08
Created February 19, 2016 15:03
replay button
// <a class="replay_btn hide"></a>
/////////////////// REPLAY ///////////////////
@transitSpeed: 0.5s;
@replayScale: 0.75;
.replay_btn {
background: url(replay_btn.png) 0 0 no-repeat;
position: absolute;
top: 5px * (@replayScale);
right: 5px * (@replayScale);
@ml242
ml242 / tinder-api-documentation.md
Created December 11, 2015 15:44 — forked from rtt/tinder-api-documentation.md
Tinder API Documentation

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

API Details

[
"5 Days With 5 Scholars: History, NAS, Marine Resources, US Constitution, and Hum",
"Across the Dakotas: Adventure Along the Missouri River",
"Alaska Up and Down: From the Arctic Coast to the North Pacific Fjords",
"Another Day, Another Scholar",
"America''s Musical Theater/Astronomy/History of Lake Arrowhead",
"Wolf: An In-Depth Study/Introduction to Astronomy/Walk in the Clouds: View of Li",
"W.E.B. Dubois and the Black Experience",
"Different View of Santa Fe: A Vantage Point That Will Surprise You!",
"The Grand Canyon: Natural & Human History & the Historic Grand Canyon Railway",
@ml242
ml242 / gist:5d75082d9a12e4e837c5
Last active August 29, 2015 14:17
debugging io-js
% git clone https://github.com/thlorenz/iojs-inspect-entire-stack
brew install ninja
// helpfull tip todebug:
SIGTERM flushAll() // get an exit code
flags:
"iojs --perf-basic-prof app.js"
@ml242
ml242 / gulpstarted
Last active August 29, 2015 14:14
Getting started with Gulp
If you have OSX, install NVM https://github.com/creationix/nvm
Install and add zsh, bash, etc
// curl https://raw.githubusercontent.com/creationix/nvm/v0.23.2/install.sh | zshrc
add this line to ~/.zshrc to use NVM from the cli
// source ~/.nvm/nvm.sh
### optional line to install io or a distinct node version: nvm install iojs ###
@ml242
ml242 / gist:80d6017d3182c151b465
Last active August 29, 2015 14:11
Mail Chimp embed links and handy snippets....
This just needs to get put into a content block with the mail merge thing clicked on, no need for video tags at all.
*|VIMEO:[$vid=114175218, $max_width=450, $ratings=N, $views=N, $border=N, $title=N, $trim_border=N]|*
// <iframe src="//player.vimeo.com/video/114175218" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> <p><a href="http://vimeo.com/114175218">Haven Life Moments</a> from <a href="http://vimeo.com/havenlife">Haven Life</a> on <a href="https://vimeo.com">Vimeo</a>.</p>
# Adapted from the javascript implementation at http://sedition.com/perl/javascript-fy.html
# Randomizes the order of elements in the passed in array in place.
fisherYates = (arr) ->
i = arr.length;
if i == 0 then return false
while --i
j = Math.floor(Math.random() * (i+1))
tempi = arr[i]
@ml242
ml242 / gist:8547fa8b1a8ad97d09dd
Created May 20, 2014 19:47
Get rid of annoying "from around the web" widgets
### In terminal type:
### sudo nano /private/etc/hosts
### // type password
### // add the following line, then save and quit
127.0.0.1 widgets.outbrain.com images.outbrain.com odb.outbrain.com trc.taboola.com netstorage.taboola.com images.taboola.com cdn.taboola.com cdn.taboolasyndication.com nau.hexagram.com a.discuscdn.com disqus.com go.disqus.com referrer.disqus.com www.smartlinks.dianomi.com
#Deep Sleep Off
sudo pmset -a hibernatemode 0
# Airdrop On
defaults write com.apple.NetworkBrowser BrowseAllInterfaces 1
@ml242
ml242 / gist:9121573
Created February 20, 2014 19:39 — forked from panuta/gist:1852087

Command Line Tools for Xcode

Command line tools comes bundle with Xcode prior to 4.3 version. After 4.3, you need to install a separated command line tools yourself.

First, go to this url and login using Apple Developer account (Free to register)

https://developer.apple.com/downloads/index.action