Skip to content

Instantly share code, notes, and snippets.

{-# LANGUAGE FlexibleContexts, FlexibleInstances, GADTs, GeneralizedNewtypeDeriving, MultiParamTypeClasses,
OverloadedStrings, QuasiQuotes, TemplateHaskell, TypeFamilies, TypeSynonymInstances #-}
import ClassyPrelude (catchAnyDeep)
import Conduit
import Control.Applicative ((<$>))
import Control.Concurrent.STM.Lifted
import Control.Monad (forM_, forever, void)
import Control.Monad.Logger (runStderrLoggingT)
import Data.Aeson
import Data.Text (Text, pack)
@ahushh
ahushh / .emacs
Last active November 26, 2019 12:04
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(setq package-archives '(("ELPA" . "http://tromey.com/elpa/")
("gnu" . "http://elpa.gnu.org/packages/")
("melpa" . "http://melpa.milkbox.net/packages/")
;; ("marmalade" . "http://marmalade-repo.org/packages/")
))
@ahushh
ahushh / yoba.pl
Created December 17, 2014 11:28
yoba
use v5.16;
use File::Copy qw/move copy/;
my $f = 'yoba';
my $t = 'yoba2';
my @queue = ($f, $t);
while (@queue) {
my $from = shift @queue;
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"""""""""""""""""""" Plugins """"""""""""""""""""""""""""
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""
""""" Utility
" The NERD tree : A tree explorer plugin for navigating the filesystem
" http://www.vim.org/scripts/script.php?script_id=1658
"
" The NERD Commenter : A plugin that allows for easy commenting of code for many filetypes.
" http://www.vim.org/scripts/script.php?script_id=1218
"
@ahushh
ahushh / .vifmrc
Created April 26, 2015 10:11
vifm config
" vim: filetype=vifm :
" Sample configuration file for vifm (last updated: 27 Jun, 2013)
" You can edit this file by hand.
" The " character at the beginning of a line comments out the line.
" Blank lines are ignored.
" The basic format for each item is shown with an example.
" This is the actual command used to start vi. The default is vim.
" If you would like to use another vi clone such Elvis or Vile
" you will need to change this setting.
@ahushh
ahushh / config
Created April 26, 2015 10:13
ncmpcpp config
####################################################
## this is example configuration file, copy it to ##
## ~/.ncmpcpp/config and set up your preferences ##
####################################################
#
##### directories ######
##
## Directory for storing ncmpcpp related files.
## Changing it is useful if you want to store
## everything somewhere else and provide command
@ahushh
ahushh / bindings
Created April 26, 2015 10:13
ncmpcpp bindings
##########################################################
## this is example bindings configuration file, copy it ##
## to ~/.ncmpcpp/bindings and set up your preferences ##
##########################################################
##
##### General rules #####
##
## 1) Because each action has runtime checks whether it's
## ok to run it, a few actions can be bound to one key.
## Actions will be bound in order given in configuration
import {IActionStatus} from '../models/common'
export default function updateStatus(status: {[action: string]: IActionStatus},
field: string,
type: 'init' | 'success' | 'fail',
payload: any) {
switch (type) {
case 'init':
return {
...status,
@ahushh
ahushh / vscode.json
Created February 21, 2018 01:14
vscode
{
"workbench.colorTheme": "Solarized Dark",
"files.autoSave": "afterDelay",
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true
},
@ahushh
ahushh / .emacs
Created November 26, 2019 11:04
emacs config for typescript
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(setq package-archives '(("ELPA" . "http://tromey.com/elpa/")
("gnu" . "http://elpa.gnu.org/packages/")
("melpa" . "http://melpa.milkbox.net/packages/")
;; ("marmalade" . "http://marmalade-repo.org/packages/")
))