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]
/*------------------------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.
(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)