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
#define BUF_SIZE | |
#define IP | |
#define PORT | |
int main(int argc, char* argv[]){ | |
structo addrinfo hints; | |
memset(&hints, 0, sizeof(struct addrinfo)); | |
hints.ai_family = AF_INET; //case for IPv4. Use AF_INET6 for IPv6 or AF_UNSPEC for either | |
hints.ai_socktype = SOCK_STREAM; | |
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
#define BUF_SIZE | |
#define PORT | |
#define MAX_CONNECTION_QUEUE | |
int main(int argc, char* argv[]){ | |
structo addrinfo hints; | |
memset(&hints, 0, sizeof(struct addrinfo)); | |
hints.ai_family = AF_INET; //case for IPv4. Use AF_INET6 for IPv6 or AF_UNSPEC for either | |
hints.ai_socktype = SOCK_STREAM; | |
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
/* NOTE: this code has been copied from | |
** https://www.phanderson.com/C/baseprnt.html with academic | |
** purposes. | |
*/ | |
/* Progam BASEPRNT.C | |
** | |
** Prompts for base 10 number and the base it is to be converted to. | |
** Prints number in specified base. | |
** |
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
state | latitude | longitude | |
---|---|---|---|
Alabama | 32.7794 | -86.8287 | |
Alaska | 64.0685 | -152.2782 | |
Arizona | 34.2744 | -111.6602 | |
Arkansas | 34.8938 | -92.4426 | |
California | 37.1841 | -119.4696 | |
Colorado | 38.9972 | -105.5478 | |
Connecticut | 41.6219 | -72.7273 | |
Delaware | 38.9896 | -75.5050 | |
District of Columbia | 38.9101 | -77.0147 |
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
# Example taken from https://kevinzakka.github.io/2016/07/13/k-nearest-neighbor/ | |
import numpy as np | |
from sklearn.cross_validation import train_test_split | |
# create design matrix X and target vector y | |
X = np.array(df.ix[:, 0:4]) # end index is exclusive | |
y = np.array(df['class']) # another way of indexing a pandas df | |
# split into train and test | |
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.33, random_state=42) |
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
Empty file for title purpose only. |
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
. |
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 22 columns, instead of 18. in line 2.
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
Book Title,Author,Edition,Product Type,Copyright Year,Copyright Holder,Print ISBN,Electronic ISBN,Language,Language Collection,eBook Package,English Package Name,German Package Name,Series Print ISSN,Series Electronic ISSN,Series Title,Volume Number,DOI URL,OpenURL,Subject Classification,Publisher,Imprint | |
Social Anxiety and Social Phobia in Youth,Christopher Kearney,2005,Graduate/advanced undergraduate textbook,2005,Springer-Verlag US,978-0-387-22591-3,978-0-387-22592-0,EN,English/International,11640,Behavioral Science,,,,Series in Anxiety and Related Disorders,,http://doi.org/10.1007/b99417,http://link.springer.com/openurl?genre=book&isbn=978-0-387-22592-0,Psychology; Clinical Psychology; Personality and Social Psychology; Community and Environmental Psychology,Springer US,Springer | |
Clinical Neuroanatomy,"John Mendoza, Anne Foundas",2008,Graduate/advanced undergraduate textbook,2008,Springer-Verlag New York,978-0-387-36600-5,978-0-387-36601-2,EN,English/International,11640,Behavioral Science,,,,,,http://doi.o |
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
for i in *.mp4; do ffmpeg -i "$i" -b:a 320k -vn "${i%.*}.mp3"; done |
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
# print all .cpp and .h files | |
for f in $(find src/ -name '*.cpp' -or -name '*.h') | |
do | |
echo "Processing $f..." | |
a2ps --line-numbers=1 "$f" -o "$f".ps | |
done | |
mkdir "print output" | |
#for f in src/*.ps |
OlderNewer