Instantly share code, notes, and snippets.

View export github issues to json
#!/usr/bin/python
import requests
import json
username = ''
password = ''
projectname = ''
url = 'https://api.github.com/repos/%s/%s/issues' % (username, projectname)
View gmail.py
#!/usr/bin/python
#
# https://yuji.wordpress.com/2011/06/22/python-imaplib-imap-example-with-gmail
#
# To access gmail emails you must setup two factor authentication and then
# create an application specific password to the email bypassing the
# two factor authentication.
import imaplib
import email
View i2c
#include "mbed.h"
I2CSlave slave(PA_9,PA_10); //configuring pins p27, p28 as I2Cslave
Serial pc (USBTX,USBRX);
void split(float); //function to split 4 bcurrentte data
void write_to_master(char); //function to write data to master
void FUNC_I2C_SLAVE_MAIN();
DigitalOut myled(LED1);
View gist:d8ac006759e122feb1c9fd212d979ec6
[
"/ip4/10.189.102.241/tcp/9096/ipfs/Qmdo7ML44MUmqHCqBsAZsv1WKMCQh3kjcktGA3ewHjWjC6",
"/ip4/10.189.102.255/tcp/9096/ipfs/QmUPavTLbQqw89HsUPWRMuFs6SS54FGcSKLAmFF9hs6EZC",
"/ip4/10.189.103.0/tcp/9096/ipfs/QmR2qzY2jknHDPG4pngt3fdYrCfWay2w9iXAr6GmZNUBfq",
"/ip4/10.189.103.10/tcp/9096/ipfs/QmaKqVtAdqCA5FEZu4XiZmBMcEAsjXBAj7fQii4LFd8fMT"
]