Skip to content

Instantly share code, notes, and snippets.

#include <iostream>
#define MAX 1000000-1
using namespace std;
int do_1(int c){
cout << "Case #" << c<<": ";
bool table[1000000];
long long data[101];
for (int i=0;i<=(MAX);i++) {
table[i] = true;
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
div#out > div {
background:url(http://121.40.175.118:12349/static/1051467570034ff27c1ce6db48cd9dba.jpg) no-repeat;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
/*
@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">
#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 / 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]
(def def)
(print print)
(println println)
()
# type this on any ews
lastlog | cut -d' ' -f1 | sed -e 's/$/@illinois.edu/g'
@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)
@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