I hereby claim:
- I am shobhit on github.
- I am shobhit (https://keybase.io/shobhit) on keybase.
- I have a public key ASCKYhA9dZyuhgAfNe63VAjf3JTiYsJ3CIC69soXskP3Jgo
To claim this, I am signing this object:
import networkx as nx | |
import matplotlib.pyplot as plt | |
import matplotlib.image as mpimg | |
img=mpimg.imread('/home/shobhit/Desktop/shobhit.jpg') | |
# draw graph without images | |
G =nx.Graph() | |
G.add_edge(0,1,image=img,size=0.1) | |
G.add_edge(1,2,image=img,size=0.05) | |
G.add_edge(2,3,image=img,size=0.02) | |
G.add_edge(3,4,image=img,size=0.075) |
''' quick example showing how to attach a pdf to multipart messages | |
and then send them from SES via boto | |
''' | |
from email.mime.text import MIMEText | |
from email.mime.application import MIMEApplication | |
from email.mime.multipart import MIMEMultipart | |
import boto |
from collections import namedtuple | |
from math import sqrt | |
import random | |
try: | |
import Image | |
except ImportError: | |
from PIL import Image | |
Point = namedtuple('Point', ('coords', 'n', 'ct')) | |
Cluster = namedtuple('Cluster', ('points', 'center', 'n')) |
# Load Json into a Python object | |
import urllib2 | |
import json | |
req = urllib2.Request("http://localhost/sensors/temperature.json") | |
opener = urllib2.build_opener() | |
f = opener.open(req) | |
json = json.loads(f.read()) | |
print json | |
print json['unit'] |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
<?xml version="1.0" encoding="utf-8"?> | |
<set xmlns:android="http://schemas.android.com/apk/res/android" | |
android:shareInterpolator="false"> | |
<translate | |
android:fromXDelta="0%" android:toXDelta="100%" | |
android:duration="350"/> | |
</set> |
I hereby claim:
To claim this, I am signing this object:
from collections import defaultdict, deque | |
class Graph(object): | |
def __init__(self): | |
self.nodes = set() | |
self.edges = defaultdict(list) | |
self.distances = {} | |
def add_node(self, value): |
{ | |
"basics": { | |
"name": "Shobhit Jain", | |
"label": "Full Stack Developer", | |
"email": "shobhitjain26@gmail.com", | |
"phone": "+91-8880145930", | |
"summary": "Started career from a small startup called mygola.com which got acquired by makemytrip.com. From chrome-extension to large scale apps i have worked on lots of technologies and interesting projects. I love to get challenged by difficult problems and try to get innovative solutions", | |
"location": { | |
"address": "B508, Manar Elegance", | |
"postalCode": "560102", |
#!/bin/bash | |
echo "Hi! lets change our mac address." | |
echo "Step 1: hold down option key, click wifi logo. Note the mac address" | |
echo "Step 2: click 'disconnect from network' " | |
echo "Step 3: note which ethernet adapter lines up with the mac address you just saw" | |
read -p 'Step 4: Which device lined up would you like to change? (hit return for en0) ' ether_adapter | |
if [ -z $ether_adapter ] | |
then |