Skip to content

Instantly share code, notes, and snippets.

@wesleyterry
wesleyterry / exercise1.js
Last active January 12, 2016 20:32
eloquent javascript exercises
for (i = "#"; i.length <= 8; i += "#"){
console.log(i);
};
@wesleyterry
wesleyterry / ListPartialStringMatches
Created December 19, 2013 20:14
Basically I had a large number of email addresses in a .txt file and needed find matches for a partial string match (@gmail.com for example) and put those into a new list to work with. This is the first time I've been able to use python for something really useful after I started to learn the language. Hopefully someone else can find a use for i…
# open a .txt file and turn it into a list with variable name mylist
# that can be easily worked with in python
f = open('list1.txt','r')
mylist = list(f)
# saving that list into a new variable without line breaks
updatedlist = [l.replace('\n','') for l in mylist]
@wesleyterry
wesleyterry / dabblet.css
Created April 25, 2012 19:46
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
#header {
background:#CCCCCC;
padding:7px;
margin:4px;
}