Overview
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
URL
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
# 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) |
require 'rubygems' | |
require 'nokogiri' | |
class XMLRecord | |
class << self | |
def tag_handlers | |
@tag_handlers ||= [] | |
end | |
end |
#!/bin/sh | |
# To skip submodule update: | |
# IGNORE_SUBMODULES=1 git checkout <...> | |
# Third arg is "1" when doing a branch checkout (as opposed to a file | |
# checkout) | |
if [ "$3" = "1" ] && [ -z "$IGNORE_SUBMODULES" ]; then |
(Swift only)
Easily add entries to Localizable.strings
file by copy/pasting code with new NSLocalizedString
s
Usage:
Copy your code containing NSLocalizedString(_:comment:)
function calls
Pipe it through the pbgenstrings.sh
script:
#!/bin/bash | |
set -eu -o pipefail | |
## Git BRanchClean (removes local branches that have been merged into the current branch) | |
# List of branches to ignore separated by vertical bars/pipes (|) | |
IGNORED_BRANCHES="develop|master" | |
branches="$(git branch --no-column --no-color --merged | egrep -v '\* ' | sed 's/^[\* ] //' | (egrep -v "$IGNORED_BRANCHES" || true))" |
#!/bin/bash | |
# Usage: | |
# 1. Copy your properties to clipboard | |
# 2. `pbpaste | swift-default-init.sh | pbcopy` | |
# 3. Paste into code | |
set -eu -o pipefail | |
# Switch to \t for tab indenting |
import UIKit | |
import PlaygroundSupport | |
extension NSNotification.Name { | |
static let todoListItemUpdated = NSNotification.Name("TodoListItemUpdated") | |
} | |
class TodoList { | |
static let shared = TodoList() |
import UIKit | |
import PlaygroundSupport | |
extension NSNotification.Name { | |
static let todoListItemUpdated = NSNotification.Name("TodoListItemUpdated") | |
} | |
class TodoList { | |
static let shared = TodoList() |
apiVersion: batch/v1 | |
kind: Job | |
metadata: | |
generateName: echo-job- | |
spec: | |
template: | |
spec: | |
containers: | |
- name: echo | |
image: alpine:latest |