Skip to content

Instantly share code, notes, and snippets.

View notpratheek's full-sized avatar
🙃

Pratheek notpratheek

🙃
  • /dev/null
  • 02:42 (UTC +05:30)
View GitHub Profile
@notpratheek
notpratheek / i3.conf
Created July 14, 2017 04:12 — forked from diyan/i3.conf
i3 tiling window manager configuration
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout somewhen, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
@notpratheek
notpratheek / Parsing HTML in Python
Created June 15, 2017 01:03 — forked from Gunio/Parsing HTML in Python
Parsing HTML in Python with LXML
import requests
import lxml
from lxml import html
r = requests.get('http://gun.io')
tree = lxml.html.fromstring(r.content)
elements = tree.get_element_by_id('frontsubtext')
for el in elements:
print el.text_content()
@notpratheek
notpratheek / jedi-diff-oneline.txt
Last active April 14, 2017 06:38
So, the is the git diff of davidhalter/jedi between v0.9.0 (plugin works) and v0.10.0 (pulgin fails)
Ok, so git is currently pointing to
commit 5427b02712828b2875d35b5ee1c8b5e58f820537
Merge: aa2dfa9 3cc97f4
Author: Dave Halter <[email protected]>
Date: Wed Apr 5 20:00:16 2017 +0200
Merge branch 'dev'
Verifying that +pratheek is my blockchain ID. https://onename.com/pratheek
@notpratheek
notpratheek / batt.sh
Last active August 29, 2015 13:57
The No-Nonsense battery indicator for tmux (that mostly works !)
#
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
# Version 2, March 2014
#
# Copyright (C) 2014 Pratheek (contact me via github)
#
# Everyone is permitted to copy and distribute verbatim or modified
# copies of this license document, and changing it is allowed as long
# as the name is changed.
#
@notpratheek
notpratheek / github_zen.sh
Created December 8, 2013 07:03
Prints out zen quotes pushed out by api.github.com
#!/usr/bin/env sh
# Prints out Zen quotes, pushed out by https://api.github.com
#
# **NOTE**: there is a limit to the number of requests that
# can be made. (I think it's a max of 40 unauthenticated requests)
# after that, its prints out a message tell you've exceeded rate limit.
#
# License: WTFPL
#
@notpratheek
notpratheek / sol-changelog.md
Created September 26, 2013 15:06
Vim-Sol's Changelog

Project: vim-sol

  • Thu Sep 26 19:23:01 2013.

Ready for General use !

This is the Gvim push Terminal is the works ! :) Airline supported ! (pushed the supporting airline theme to vim-airline repo)

@notpratheek
notpratheek / changelog.md
Last active December 18, 2015 13:09
Vim-Luna's Changelog

Project: vim-luna

  • Sat Sep 7 17:30:00 2013.

    Added screenshot for startify plugin

  • Sat Sep 7 16:03:45 2013.

@notpratheek
notpratheek / tmuxing
Last active December 11, 2015 17:48
Tmux Battery Indicator
#!/usr/bin/env python
#-*- coding:utf-8 -*-
from __future__ import print_function
from subprocess import check_output
heart = '♥'
bolt = '⚡'
@notpratheek
notpratheek / server.js
Created November 23, 2012 17:23
Nodejs compatiable server
#!/usr/bin/env node
var util = require('util'),
http = require('http'),
fs = require('fs'),
url = require('url'),
events = require('events');
var DEFAULT_PORT = 8000;