Skip to content

Instantly share code, notes, and snippets.

View Yogendra0Sharma's full-sized avatar
🎯
Focusing

Yogendra Sharma Yogendra0Sharma

🎯
Focusing
View GitHub Profile
@Yogendra0Sharma
Yogendra0Sharma / tinder-api-documentation.md
Created February 18, 2017 07:59 — 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. 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

# encoding: utf8 1,1 Top# encoding: utf8
import argparse
from datetime import datetime
import json
from random import randint
import requests
import sys
from time import sleep

What you will get

  • Jupyter Notebook for Python 3 and R
  • Jupyter Notebook Extensions
  • Python libraries: numpy scipy pandas matplotlib (can be changed via Vagrant_provision.sh below)
  • R packages: Many (ggplot2, knitr, lattice, to name a few)

Requirements

  • At least 6-8GB of RAM (of those 4GB will be used for a virtual machine)
  • About 4GB of diskspace
  • 2-3 hours of time (depends on your network speed)
@Yogendra0Sharma
Yogendra0Sharma / README.md
Created February 16, 2017 12:32 — forked from n-bar/README.md
This is a sample of how to send some information to logstash via the TCP input from node.js or python.

This is a sample of how to send some information to logstash via the TCP input in nodejs or python. It assumes the logstash host is on 10.10.10.100 and the TCP listening input is 9563.

The logstash.conf should look something like the sample file.

The log message should be a stringified JSON object with the log message in the @message field.

To use, run the node script node sendMessageToLogstash.js, or the python script python sendMessageToLogstash.js

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Yogendra0Sharma
Yogendra0Sharma / managers.py
Created January 23, 2017 14:27 — forked from OdinsPlasmaRifle/managers.py
Haversine formula in Django using Postgres SQL
from django.db import models, connection
"""
Haversine formula in Django using Postgres SQL
Queries a model for all rows that are within a certain radius (given in meters) of a central point.
The 'location_model' placeholder should be raplaced with a table that includes a latitude and longitude column.
Returns a list of row ids.
"""
@Yogendra0Sharma
Yogendra0Sharma / python_socialauth.md
Created January 23, 2017 10:55 — forked from suhailvs/python_socialauth.md
Social authentication on django

install django,python-social-auth

pip install django
pip install python-social-auth

./manage.py startproject mysite

update mysite/mysite/settings.py

@Yogendra0Sharma
Yogendra0Sharma / angularjs-providers-explained.md
Created January 19, 2017 12:52 — forked from reflexdemon/angularjs-providers-explained.md
AngularJS Providers: Constant/Value/Service/Factory/Decorator/Provider
Provider Singleton Instantiable Configurable
Constant Yes No No
Value Yes No No
Service Yes No No
Factory Yes Yes No
Decorator Yes No? No
Provider Yes Yes Yes

Constant

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.