This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> a <- 1 | |
> b <- 2 | |
> a = b = 3 | |
> a | |
[1] 3 | |
> b | |
[1] 3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> a <- c(1,2) | |
> b <- as.integer(a) | |
> is.numeric(a) | |
[1] TRUE | |
> is.numeric(b) | |
[1] TRUE | |
> is.double(b) | |
[1] FALSE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){l=document.location;rot13=function(str){return str.replace(/[a-zA-Z]/g,function(c){return String.fromCharCode((c<='Z'?90:122)>=(c=c.charCodeAt(0)+13)?c:c-26);});};url='https://vpn.nacs.uci.edu/+CSCO+'+'00'+rot13(l.protocol+'//'+l.host).replace(/[\s\S]/g,function(s){return parseInt(s.charCodeAt()).toString(16);})+'++'+l.pathname+l.search+l.hash;window.location.href=url;})() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
darkside:Desktop tim$ python uh2.py | |
outer | |
inner | |
inner | |
inner | |
outer | |
inner | |
inner | |
inner |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
restos.tab | |
# tab-separated values | |
# now we have the restaurant list in a table | |
# the table has, in tab-separated columns: | |
# 0: restaurant name | |
# 1: unit, street address | |
# 2: jurisdiction (not quite city) | |
# 3: date of last inspection (DD-Mon-YYYY) | |
# 4: Restaurant GUID |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
from BeautifulSoup import BeautifulStoneSoup | |
f = open('VCH Restaurant Data.kml', 'r') | |
buf = f.read() | |
f.close() | |
soup = BeautifulStoneSoup(buf) | |
for placemark in soup.findAll('placemark'): |
NewerOlder