Skip to content

Instantly share code, notes, and snippets.

View rahulrkroy's full-sized avatar
🏠
Working from home

Rahul Kumar Roy rahulrkroy

🏠
Working from home
View GitHub Profile
# 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
@rahulrkroy
rahulrkroy / data_transfer_on_python_using_udp.py
Created March 25, 2018 09:08
we are doing UDP socket programming
#!/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
@rahulrkroy
rahulrkroy / day1.py
Created March 25, 2018 04:29
just basic supervised type ML with python3 on <linux
#!/usr/bin/python3
#supervised ML apple & orange
# assume smooth =0 and bumpy=1
from sklearn import tree
import os
smooth=0
bumpy=1