This file contains 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
class CSVLibrary(object): | |
def read_csv_file(self, filename): | |
file = open(filename, 'r') | |
csvfile = csv.reader(file) | |
file.close | |
return [row for row in csvfile] |
This file contains 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/env runstack | |
-- stack --resolver lts-2.9 --install-ghc runghc --package turtle | |
{-# LANGUAGE OverloadedStrings #-} | |
import Turtle | |
main :: IO () | |
main = echo "Hello World!" |
This file contains 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
#!/bin/sh | |
# replace cmd1 for the command to execute | |
host=192.168.1.1 | |
port=23 | |
user=myuser | |
pass=mypass | |
cmd1='ifconfig wl0 down' | |
( echo open ${host} |
This file contains 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
curl -w '\nLookup:\t%{time_namelookup}\nConnect :\t%{time_connect}\nPreTrans:\t%{time_pretransfer}\nStartTeans:\t%{time_starttransfer}\n\nTotal time:\t%{time_total}\n' -o /dev/null -s http://yourdomain.com |