Miscellanious information discovered from sniffing Tinder's API traffic.
See also: https://gist.github.com/rtt/10403467, has a lot of valuable information & is much better formatted
Requests are made to api.gotinder.com
Miscellanious information discovered from sniffing Tinder's API traffic.
See also: https://gist.github.com/rtt/10403467, has a lot of valuable information & is much better formatted
Requests are made to api.gotinder.com
require 'rubygems' | |
require 'nokogiri' | |
class XMLRecord | |
class << self | |
def tag_handlers | |
@tag_handlers ||= [] | |
end | |
end |
# After wondering how commands like curl showed a progress bar, with the very big help of | |
# Google, I decided to write a shell script to show a progress bar | |
# | |
# Having not done much shell scripting, I learned a few (very likely quite obvious) things: | |
# * It looks much nicer to create the string to echo in a variable, then echo it. If I echo'ed | |
# each part of the string instead of concatenating it with the rest of the string, the cursor | |
# jumped around quite a bit. | |
# * 'let x=x+1' is a lot faster than 'x=`expr $x + 1`' (I have a feeling this is probably because | |
# let is implemented directly in bash, instead of a separate command) |
# Hack-job of a class to force Sprockets to rebuild assets every request | |
class NoCacheSprockets < Sprockets::Environment | |
# Bypass Sprockets::Environment's caching, and call Sprockets::Base's method directly | |
def find_asset(path, options = {}) | |
self.class.superclass.superclass.instance_method(:find_asset).bind(self).call(path, options) | |
end | |
# Prevent any 304 responses (for the web browser's sake) | |
def not_modified?(asset,env) |