Skip to content

Instantly share code, notes, and snippets.

View suhithr's full-sized avatar

Suhith Rajesh suhithr

View GitHub Profile
@suhithr
suhithr / python-basics.md
Last active October 20, 2016 14:28
List of simple resources to get up and running with the syntax of Python

Python Basics for Delta's Linux-Python Workshop 2016

We'd like you all to get acquainted with the basic syntax of Python so that you feel more comfortable in the workshop and we're able to build more cool stuff!!

Ideally you'd take a look at:

  • Variables and Types
  • Strings
  • Loops
  • Conditions
  • Functions
@suhithr
suhithr / 9gag-scraper.py
Last active October 30, 2016 19:04
A very simple 9gag scraper
# Code used for the Delta Workshop on Python and Linux 2016 at NIT, Trichy
import urllib
from time import sleep
import requests # http://docs.python-requests.org/en/master/
from bs4 import BeautifulSoup # https://www.crummy.com/software/BeautifulSoup/bs4/doc/
# Try printing out the variables at various stages to view the objects
# Better yet execute this in your Python interpreter to see all the action happening
#!/bin/bash
pactl load-module module-bluetooth-discover