Skip to content

Instantly share code, notes, and snippets.

View aeruhxi's full-sized avatar

Pratik Chaudhary aeruhxi

View GitHub Profile

Keybase proof

I hereby claim:

  • I am abs-zero on github.
  • I am abszero (https://keybase.io/abszero) on keybase.
  • I have a public key whose fingerprint is 8736 BA12 56D7 822B 3BA2 E34F 7D4F 2530 8E26 8D17

To claim this, I am signing this object:

@aeruhxi
aeruhxi / .vimrc
Last active February 7, 2018 05:42
vimrc
call plug#begin('~/.vim/plugged')
Plug 'sbdchd/neoformat'
Plug 'godlygeek/tabular'
Plug 'neovimhaskell/haskell-vim'
" Plug 'parsonsmatt/intero-neovim'
Plug 'terryma/vim-multiple-cursors'
Plug 'jiangmiao/auto-pairs'
Plug 'alvan/vim-closetag'
Plug 'sbdchd/neoformat'
Plug 'neomake/neomake'
@aeruhxi
aeruhxi / snazzy-termite
Created August 30, 2017 06:03
snazzy colorscheme for termite
[colors]
foreground = #eff0eb
foreground_bold = #eff0eb
cursor = #c0b18b
#background = #282a36
background = rgba(40 ,42, 54, 0.85) # For transparency
# black
color0 = #282a36
import sys
from PyQt5.QtWidgets import QApplication, QMainWindow
from PyQt5.QtCore import Qt, QRect, QPoint, QEvent, QBuffer, QByteArray, QIODevice
from PyQt5.QtGui import QPalette, QPainter, QPixmap, QPen, QBrush, QColor, QClipboard
import signal
class ScreenshotWindow(QMainWindow):
def __init__(self):
@aeruhxi
aeruhxi / vscode-settings.json
Last active June 19, 2017 11:35
vscode settings
// Place your settings in this file to overwrite the default settings
{
"javascript.format.enable": false,
"window.menuBarVisibility": "toggle",
"search.exclude": {
"**/node_modules": true,
"**/.git": true,
"**/bin": true
},
"workbench.statusBar.visible": true,
@aeruhxi
aeruhxi / Main.hs
Created March 18, 2017 13:32
Hangman game
module Main where
import Control.Monad (forever)
import Data.Char (toLower)
import Data.Maybe (isJust)
import Data.List (intersperse, (\\))
import System.Exit (exitSuccess)
import System.Random (randomRIO)
type WordList = [String]
@aeruhxi
aeruhxi / genwrapper.js
Created September 12, 2016 18:52
generator wrapper
function runGenerator(g) {
var it = g(), ret;
(function iterate(val){
ret = it.next( val );
if (!ret.done) {
if ("then" in ret.value) {
ret.value.then( iterate );
}
else {