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
| # Terminal Cheat Sheet | |
| pwd # print working directory | |
| ls # list files in directory | |
| cd # change directory | |
| ~ # home directory | |
| .. # up one directory | |
| - # previous working directory | |
| help # get help | |
| -h # get help |
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/python2 | |
| import socket,time,os,commands | |
| print "we are doing UDP socket programming" | |
| x= socket.socket(socket.AF_INET,socket.SOCK_DGRAM) | |
| # above line means we are using ipv4,on UDP protocol | |
| # belo lines only for receiver | |
| ''' | |
| x.bind(("10.10.5.236",7777)) #7777 is port no,first one is receivers ip |
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/python3 | |
| #supervised ML apple & orange | |
| # assume smooth =0 and bumpy=1 | |
| from sklearn import tree | |
| import os | |
| smooth=0 | |
| bumpy=1 |