Skip to content

Instantly share code, notes, and snippets.

View acrymble's full-sized avatar

Adam Crymble acrymble

  • London
View GitHub Profile
@acrymble
acrymble / python-ngrams.py
Created September 22, 2011 12:14
Python get Ngrams
def getNGrams(wordlist, n):
ngrams = []
for i in range(len(wordlist)-(n-1)):
ngrams.append(wordlist[i:i+n])
return ngrams
@acrymble
acrymble / Frequency Pairs Results.txt
Created October 10, 2011 09:56
Frequency Pairs Results
(25, 'house')
(20, 'yes')
(20, 'prisoner')
(19, 'mr')
(17, 'man')
(15, 'akerman')
(14, 'mob')
(13, 'black')
(12, 'night')
(11, 'saw')
@acrymble
acrymble / OBO search url
Created October 10, 2011 10:14
OBO URL-long
http://www.oldbaileyonline.org/search.jsp?foo=bar&form=searchHomePage&_divs_fulltext=black&kwparse=and&start=0&count=0
@acrymble
acrymble / OBO search url split
Created October 10, 2011 10:21
OBO URL-split
http://www.oldbaileyonline.org/search.jsp
?foo=bar
&form=searchHomePage
&_divs_fulltext=black
&kwparse=and
&start=0
&count=0
@acrymble
acrymble / query string
Created October 10, 2011 10:33
query string
&variable=value
@acrymble
acrymble / OBO search URL long
Created October 10, 2011 11:05
OBO URL-very Long
http://www.oldbaileyonline.org/search.jsp?form=searchHomePage&_divs_fulltext=abc&kwparse=advanced&_persNames_surname=def&_persNames_given=ghi&_persNames_alias=gjl&_offences_offenceCategory_offenceSubcategory=breakingPeace&_verdicts_verdictCategory_verdictSubcategory=guilty%7Cinsane&_punishments_punishmentCategory_punishmentSubcategory=corporal%7Cpillory&_divs_div0Type_div1Type=sessionsPaper%7CtrialAccount&fromMonth=01&fromYear=1674&toMonth=12&toYear=1913&ref=&submit.x=0&submit.y=0
@acrymble
acrymble / OBO URL long-split
Created October 10, 2011 11:08
OBO URL-very Long split
http://www.oldbaileyonline.org/search.jsp
?form=searchHomePage
&_divs_fulltext=abc
&kwparse=advanced
&_persNames_surname=def
&_persNames_given=ghi
&_persNames_alias=gjl
&_offences_offenceCategory_offenceSubcategory=breakingPeace
&_verdicts_verdictCategory_verdictSubcategory=guilty%7Cinsane
&_punishments_punishmentCategory_punishmentSubcategory=corporal%7Cpillory
@acrymble
acrymble / URL unsplit
Created October 10, 2011 12:06
OBO URL-very Long
http://www.oldbaileyonline.org/search.jsp?foo=bar&form=searchHomePage&_divs_fulltext=mulatto*+negro*&kwparse=advanced&_divs_div0Type_div1Type=sessionsPaper%7CtrialAccount&fromYear=1700&fromMonth=00&toYear=1750&toMonth=99&start=0&count=0
@acrymble
acrymble / URL split
Created October 10, 2011 12:08
URL split
http://www.oldbaileyonline.org/search.jsp
?foo=bar
&form=searchHomePage
&_divs_fulltext=mulatto*+negro*
&kwparse=advanced
&_divs_div0Type_div1Type=sessionsPaper%7CtrialAccount
&fromYear=1700
&fromMonth=00
&toYear=1750
&toMonth=99
@acrymble
acrymble / OBO advanced search query
Created October 10, 2011 13:13
OBO advanced search query
+"the black" -"black gelding" -"black mare" -"black horse" -"black silk" -"black cloth" -"black cotton"