Skip to content

Instantly share code, notes, and snippets.

@plantvsbirds
plantvsbirds / aiofjiosajoifjoias.js
Created March 31, 2017 20:33
tracking ranking in whale's elevator pitch contest via telegram bot
import Telebot from 'telebot'
import axios from 'axios'
import cheerio from 'cheerio'
const token = 'IWONTTELL:IWONTTELL',
bot = new Telebot({token, polling : {}})
bot.on('/poll', ({text, from, chat}) => {
@plantvsbirds
plantvsbirds / replay-apis.txt
Created April 16, 2016 04:46
zhihu follower scrap
URL https://www.zhihu.com/people/plantvsbird/followers
<input type="hidden" name="_xsrf" value="87aaa16de8fd26f58bf4f9ca38d947f4">
POST https://www.zhihu.com/node/ProfileFollowersListV2
method:next
params:{"offset":20,"order_by":"created","hash_id":"9d62c47e2e6db82938c7bac0909b5e5b"}
_xsrf:87aaa16de8fd26f58bf4f9ca38d947f4
upsert fan profile
@plantvsbirds
plantvsbirds / py_plot_example.py
Created March 24, 2016 14:50
plot a crazy function using trigs and matplotlib
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import mpl_toolkits.mplot3d as mp3d
from matplotlib import cm
from matplotlib.ticker import LinearLocator, FormatStrFormatter
import matplotlib.tri as mtri
steps = 90
x = np.linspace(10,100,steps)
# type this on any ews
lastlog | cut -d' ' -f1 | sed -e 's/$/@illinois.edu/g'
(def def)
(print print)
(println println)
()
/*------------------------get Twitter Ids on page ---------------------
| Find twitter IDs of people on page(intended for blocking multiple
users) bookmarklet inspired by @mariotaku 's wtb
| Author: Hong Lin <plantvsbird@gmail.com>
License: MIT
| See comments below for usage thx.
@plantvsbirds
plantvsbirds / joyvm-surge-config.conf
Created January 14, 2016 01:57
A Surge.app config for joyvm.com APN service
[General]
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, localhost, *.local
bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12
dns-server = 8.8.8.8, 8.8.4.4
loglevel = notify
[Proxy]
Proxy = http,proxy1.joyvm.info,34567
[Rule]
#include "pitches.h"
const int LMAX = 230;
const int RMAX = 255;
const int L = 11;
const int R = 10;
int sensorValue = 0;
int Trig_pin = 9;
int Echo_pin = A2;
bool lock = false;
@plantvsbirds
plantvsbirds / index.html
Created January 27, 2015 12:49
Stellar.js - iOS Demo // source http://jsbin.com/pevuzu
<!doctype html>
<html>
<head>
<title>Stellar.js - iOS Demo</title>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width,maximum-scale=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<style type="text/css">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
/*