Skip to content

Instantly share code, notes, and snippets.

View davidtweaver's full-sized avatar

David Weaver davidtweaver

View GitHub Profile
import string
print string.letters
print string.lowercase
sentence1 = "Uijt jt b Dbftbs djqifs. Opx vtf b gsfrvfodz bobmztjt up efdpef uif xfmm-lopxo gjstu qbsbhsbqi, boe mppl gps b tfdsfu nfttbhf bu uif foe"
sentence2 = "Ts tg d swjsu jvtkhwgdmme dfovbpmhnlhn, suds d gtvlmh cdv tv qbgghggtbv ba d lbbn abwsjvh cjgs ih tv pdvs ba d ptah. Ubphkhw mtssmh ovbpv suh ahhmtvlg bw kthpg ba gjfu d cdv cde ih bv utg atwgs hvshwtvl d vhtluibjwubbn, sutg swjsu tg gb phmm atrhn tv suh ctvng ba suh gjwwbjvntvl adctmthg, suds uh tg fbvgtnhwhn dg suh wtlusajm qwbqhwse ba gbch bvh bw bsuhw ba suhtw ndjlushwg. Jgh suh ntltsg ba qt sb gutas suh mhsshwg tv suh vhrs chggdlh abwpdwng.".lower()
sentence3 = "qgamznyhntzjzlvauxjzqgfhfxebjzrm"
@davidtweaver
davidtweaver / Numbers to Roman Numerals
Created June 10, 2013 19:36
Numbers to Roman Numerals
import unittest
KNOWN_VALUES = [
(1, 'I'),
(5, 'V'),
(10,'X'),
(50,'L'),
(100,'C'),
(500,'D'),
(1000,'M'),
/////// Mocking dynamoDB
const mockDynamoDbPut = jest.fn();
class DocumentClient {
put = mockDynamoDbPut;
}
jest.mock('aws-sdk', () => ({
DynamoDB: {