Skip to content

Instantly share code, notes, and snippets.

@onionhoney
onionhoney / paradigm_x_3
Last active August 29, 2015 14:03
Paradigm X
// Problem: Given that 2011 is both a prime number and
// a sum of 11 consecutive prime numbers,
// find the immediate next number that satisfies both conditions.
#include <iostream>
#include <cstdio>
#define MAX_NUMBER 1000000
#define TARGET_NUMBER 2011
using namespace std;
int primeTable[MAX_NUMBER];
term_cd,instructor,uid,INSTR_func_cd,subj_area_cd,crs_catlg_no,sect_no,srs,type,crs_short_ttl,A+,A,A-,B+,B,B-,C+,C,C-,D+,D,D-,F,I,NR,P,NP,IP,S,U,L,DR,R,drp
161,"BROWN, K.H.",,,POL SCI,0040, 001,324121110,LEC,INTRO-AMERICN PLTCS,7,6,8,5,4,4,1,4,0,2,3,0,6,0,0,2,0,0,0,0,0,0,0,0
161,"ESDIN, J.",,,PHYSCI,0005, 001,387015930,LEC,HMN PHYS-DIET&EXRCS,3,24,3,6,4,2,1,0,1,0,0,0,2,0,0,4,1,0,0,0,0,0,0,0
161,"FALCE-ROBINSON, J.",,,SPAN,0003, 004,349010130,LEC,ELEMENTARY SPANISH,0,3,7,6,3,1,1,0,0,0,0,0,1,0,0,6,0,0,0,0,0,0,0,0
161,"FINK, R.W.",,,MUS HST,0008, 001,278024110,LEC,HIST-ELEC DNCE MUSC,12,2,0,2,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0
161,"GREENE, R.E.",,,MATH,0170A, 001,262660910,LEC,PROBABILITY THEORY,2,9,6,0,11,2,0,5,4,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0
161,"HIERONYMI, P.",,,PHILOS,0022, 001,312079910,LEC,INTRO-ETHICAL THRY,0,4,5,3,4,1,0,0,0,0,1,0,0,0,0,2,0,0,0,0,0,0,0,0
161,"HOLLAND, C.D.",,,FILM TV,0135A, 002,238510210,LAB,ADV SCRNWRTNG WKSHP,0,7,2,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
161,"JANSMA, K.",,,FRNCH,
This file has been truncated, but you can view the full file.
;;; # CMUdict -- Major Version: 0.07
;;;
;;; # $HeadURL$
;;; # $Date:: $:
;;; # $Id:: $:
;;; # $Rev:: $:
;;; # $Author:: $:
;;;
;;; #
;;; # ========================================================================
This file has been truncated, but you can view the full file.
THE 23135851162
OF 13151942776
AND 12997637966
TO 12136980858
A 9081174698
IN 8469404971
FOR 5933321709
IS 4705743816
ON 3750423199
THAT 3400031103
@onionhoney
onionhoney / expo.png
Last active December 5, 2018 21:24
TopGoaler QR
expo.png
We can't make this file beautiful and searchable because it's too large.
0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,28
We can't make this file beautiful and searchable because it's too large.
0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,28
We can't make this file beautiful and searchable because it's too large.
,group.id,mean,size,category_id,category.name,category.shortname,city_id,city,country,created,description,group_photo.base_url,group_photo.highres_link,group_photo.photo_id,group_photo.photo_link,group_photo.thumb_link,group_photo.type,join_mode,lat,link,lon,members,group_name,organizer.member_id,organizer.name,organizer.photo.base_url,organizer.photo.highres_link,organizer.photo.photo_id,organizer.photo.photo_link,organizer.photo.thumb_link,organizer.photo.type,rating,state,timezone,urlname,utc_offset,visibility,who
0,8458.0,18.272727272727273,22,26,pets/animals,pets-animals,10001,New York,US,2004-03-27 09:55:41,not_found,https://secure.meetupstatic.com,https://secure.meetupstatic.com/photos/event/5/7/5/8/highres_431422360.jpeg,431422360,https://secure.meetupstatic.com/photos/event/5/7/5/8/600_431422360.jpeg,https://secure.meetupstatic.com/photos/event/5/7/5/8/thumb_431422360.jpeg,event,open,40.73,https://www.meetup.com/Animals/,-73.989998,2930,NYC Animal Rights,1809940,Santos,https://secure.meetupstatic.com
import numpy as np
import pandas as pd
from pandas.errors import EmptyDataError
from collections import defaultdict
import random
import time
import datetime
import math
#!/usr/bin/env bash
: ${2?"Usage: $0 n_channel which_channel(0-indexed)"}
if [ -n "$(ps -ef | grep "[p]ython3 event\_crawler\.py group_1853")" ] ; then
echo "script already running, aborting install";
exit 1;
fi