Skip to content

Instantly share code, notes, and snippets.

View fayimora's full-sized avatar
🕺

Fayi FB fayimora

🕺
  • London, England
View GitHub Profile
ack
akka
android-ndk
android-sdk
ansible
ant
apache-spark
archey
arm
arpack
ansicolors (1.0.2)
appnope (0.1.0)
awscli (1.7.39)
backports.ssl-match-hostname (3.4.0.2)
bcdoc (0.13.0)
beautifulsoup4 (4.3.2)
betamax (0.4.0)
binaryornot (0.3.0)
botocore (1.1.2)
Bottleneck (0.8.0)
@fayimora
fayimora / topic_keys.txt
Created February 2, 2014 13:11
200 topics
0 0.25 apple ll laptop cellular ihznb gvvsmt racing daysss cd scaszsyfe xlsb yilfer session thelitplatform amazing znyek vafbpphevt apparently commonwhtgirl
1 0.25 http sell kindle xy latest recent nigga bulbs gu bobbing ulhxfgmnqt sangs indicator objectivec xd laughing btgqo meh opener
2 0.25 iphone lot mom trust footyhumour fragranzeapps macrumors tag toknmbipp conception lawrence viber lmcykm sa zlatan iridient management sized kiss
3 0.25 iphone runtastic lightning cheers gizmodo finished mc buy pxrmi stable mlb iqvhz flipping introduce chaddoffcenter amg xmas hiilkdxffv chart
4 0.25 password imac launch determine coffee hair shut data lizaayyy gnmchwxx goin bulbbuddy special downloading horror wu edited exclaimed calibrating
5 0.25 rt apple deals fb mc xu db lfu truck fascinated net charlie embarrassing communications reliance mustfollow zg dvr xgbxbdz
6 0.25 free app heyyouapp business city travel redwood lmjyajp xl block pie gestures kbk lighting bon barely pd travelpedia africa
7 0.25 xxx iphon
@fayimora
fayimora / topic_keys.txt
Created February 2, 2014 15:37
400 topics
0 0.125 back phone android zg arc wetnwx rqlkw contextapp owned hashtag pointless selfies bounce playin attack nvda booya luck reference
1 0.125 http zagg axabbfzh justcruit carriage qs db awxam nowadays tipsljjulv randomly fully nice teaching talk
2 0.125 ipod breach oufr nav trancefamily dj pre compatible betting ksyra cl urheberrecht secure mobile chromecast dark podcasts giveaway amp
3 0.125 post cell hkmzwsyiqk hardrive tbh developed slapp didn fail smx imac angeles
4 0.125 boast dressed att monica colorful wu tomswoon wonderful load gemmaannestyles rage mother vision ukgritbinsnet emaxcity retail works podcast students
5 0.125 http halloween hzjbvuea rich unplugs nicole sleeping kq instadaily sing ayyye bu
6 0.125 iphone long opens electronic ibi infoworld range shya digital jufexmqrk pedometer art casing move records game
7 0.125 iphone dad fav interesting purple wifi hash ltxpd ringtone htt eejit badge mmop smart fqtjxy mission bread fyvettee phone
8 0.125 number make unlocking cook https mili
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.*;
public class LongestCommonSequence {
private static Node<Character> buildGraph (String str) {
if (str.length() == 1) {
return new Node<Character>(str.charAt(0));
@fayimora
fayimora / turing_table.py
Last active August 29, 2015 13:56
Turing Machine/Program Simulation for ECS631 Assignment
import sys, argparse
args, res = None, None
def info(tape, n, config):
"""Do shananigans before any computation"""
if(args.verbose):
print("Config: %s" % config)
print("Cursor is at %d" % n)
print("Tape is ")
if(args.strings):
@fayimora
fayimora / _rocks.py
Last active August 29, 2015 13:56
Functional programming rocks
n,ans = input(),0
a = map(int,raw_input().split())
h = [(len(filter(lambda x:x <= i,a))+i)/(i+1) for i in range(101)]
print max(h)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>BruteHack</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- build:css(tmp/result) assets/app.min.css -->
from itertools import permutations
# s = 'abaacb'
# s = 'cbbaa'
s = raw_input()
while s != '#':
itr = iter(sorted(set(permutations(s))))
res = ()
found = False
abaacb
cbbaa
aaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaabcaaaaaaaaaaa
#