Skip to content

Instantly share code, notes, and snippets.

View brendano's full-sized avatar

Brendan O'Connor brendano

View GitHub Profile
[ABW] ARUBAN_
[ABW] ARUBA_
[AFG] AFEGANISTAO_
[AFG] AFFGHANISTAN_
[AFG] AFGAHANISTAN_
[AFG] AFGANHISTAN_
[AFG] AFGANISTAN_
[AFG] AFGHANASTAN_
[AFG] AFGHANESTAN_
[AFG] AFGHANISTAN_
@brendano
brendano / FastRandom.java
Last active February 10, 2018 15:41
An RNG class that's faster and hopefully better than java.util.Random.
package util;
import java.io.Serializable;
import java.lang.management.ManagementFactory;
import java.nio.ByteBuffer;
import java.util.*;
/**
* An RNG class that's faster and hopefully better than java.util.Random.
*
2008-10-17T00:54:02 @berryboop ya somos dos -__-
2008-12-19T09:26:28 ...*RONF*...*RONF*... -__-
2009-02-03T23:49:13 GAH. Why are they so grainy? Sorry. They're not actually grainy like that. -__-
2009-07-05T15:50:26 Y r all twiggas da same!...smh...I rather b single forever.-__-
2009-08-21T09:31:47 kunyuk kan adv nya ga ilang2 -__-
2009-09-18T12:56:15 tweets 1,234 :) tapi sama yang ini jadi 1,235 -__-
2009-09-19T15:47:01 Gw instal d bb, ngehang -__- RT @eriRH: Bener kata @khaldaaa Opera Mini 5 keren hihi
2009-09-20T20:14:14 bleh, time to start history. -__- SHE GIVES US A PROJECT AND DOESN'T EVEN TEACH US. Oh you're a great teacher Mrs. Lamm. SUPER smart.
2009-10-07T01:35:03 Internets back!!! laptop died while converting videos tho... -__-
2009-10-11T15:03:12 Siap teh dode aku kan new comers twitter hahaha -__- katro yah RT @dedenisaa8 : @selasell hey kamuuu !!! follow balik aku yaaaaa
2008-12-19T09:26:28 ...*RONF*...*RONF*... -__-
2009-07-05T15:50:26 Y r all twiggas da same!...smh...I rather b single forever.-__-
2009-07-09T14:09:25 @jslnathania hahahahahahaha sabar jes -__-
2009-08-21T09:31:47 kunyuk kan adv nya ga ilang2 -__-
2009-09-20T20:14:14 bleh, time to start history. -__- SHE GIVES US A PROJECT AND DOESN'T EVEN TEACH US. Oh you're a great teacher Mrs. Lamm. SUPER smart.
2009-10-08T06:33:34 YAY i fell off my horse today -__-: YAY i fell off my horse today -__-
2009-10-14T00:18:51 @DameBugatti O ok me too then. -__-
2009-10-25T02:47:04 doing dasher's howewrk -__-
2009-11-01T05:54:51 Facebook gw sepi sekali haha -__-
2009-11-03T02:01:28 i swear.. @MyloElmijo hooked me up wit a TIGH ass beat. i cant wait to go in on it. my voice is fxcked up though.. -__-
2010-01-01T06:52:59 @_DolceVendetta Dont call me a nigga -__-. You GAY. You .. GAY YOU .. .. ...GAYY!
2010-01-02T07:02:39 @diahayu_adiati cek ke TKP gitu maksud ane -__- seru gan berasa nonton dipidi tp sub nya inggris
2010-01-06T08:21:56 @eivanprabowo emang firlie suaranya serek basah ya ? hmm kalo elo apa yang mau dikangenin ya .. ga ada deh kayanya -__-
2010-01-07T08:12:46 yah masih sejam lagi masa -__-"
2010-01-12T05:00:03 RT @Speed_Demonn: blah, midterm tomarrow. -__- this is so gonna effect my grade. oh weeellll.
2010-01-13T20:52:38 @rambeeezy he did the look again -__- ugh.aaha
2010-01-14T10:29:22 pasti lupa kalo puasa #sotoyberlebih RT @mirantipl: Gue hampir lupa lagi barusan -__-
2010-01-19T13:01:32 Tuh orang tadi gue senyumin , trus senyum balik tp dia nyadar gak yaa kalo itu gue ?? -__-
2010-01-22T21:37:25 Aduh sakitperut-__-"
2010-01-23T22:08:05 @ImAlreadyHere lol -__-
> msa_info[1:50,]
lat lon pop name rank
1 40.71427 -74.00597 19069796 New York, NY-NJ-PA 1
2 34.05223 -118.24368 12874797 Los Angeles, CA 2
3 41.85003 -87.65005 9580567 Chicago, IL-IN-WI 3
4 32.78306 -96.80667 6447615 Dallas, TX 4
5 39.95233 -75.16379 5968252 Philadelphia, PA-NJ-DE-MD 5
6 29.76328 -95.36327 5867489 Houston, TX 6
7 25.77427 -80.19366 5547051 Miami, FL 7
8 38.89511 -77.03637 5476241 Washington, DC-VA-MD-WV 8
> arrange(msa_info[1:50,],name)
lat lon pop name rank
1 33.74900 -84.38798 5475213 Atlanta, GA 9
2 30.26715 -97.74306 1705075 Austin, TX 35
3 39.29038 -76.61219 2690886 Baltimore, MD 20
4 33.52066 -86.80249 1131070 Birmingham, AL 47
5 42.35843 -71.05977 4588680 Boston, MA-NH 10
6 42.88645 -78.87837 1123804 Buffalo, NY 50
7 35.22709 -80.84313 1745524 Charlotte, NC-SC 33
8 41.85003 -87.65005 9580567 Chicago, IL-IN-WI 3
all D 0.474
out P 0.698
of P 0.970
wood ^ 0.633
facts N 0.906
u O 0.997
can V 1.000
build V 1.000
a D 0.998
all D 0.474
out P 0.698
of P 0.970
wood ^ 0.633
facts N 0.906
u O 0.997
can V 1.000
build V 1.000
a D 0.998
all D 0.323
out P 0.578
of P 0.955
wood ^ 0.584
facts N 0.912
u O 0.998
can V 0.999
build V 1.000
a D 0.998