Skip to content

Instantly share code, notes, and snippets.

aarti

Block or report user

Report or block aarti

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View generate_subsets.go
package main
import (
"fmt"
"math"
)
var cases = [][]int{
[]int{},
[]int{0},
View keybase.md

Keybase proof

I hereby claim:

  • I am aarti on github.
  • I am classyhacker (https://keybase.io/classyhacker) on keybase.
  • I have a public key ASA9QIugvV7d5iis7ydZRFQMekZyq0yRhd1WOOfd_mAAEgo

To claim this, I am signing this object:

View scrape amazon rankings
var casper = require('casper').create();
var all_links = [];
var top_kf8_picture_books_url = "http://www.amazon.com/Best-Sellers-Kindle-Store-Text-Pop-Up-Books/zgbs/digital-text/3381090011/#"
var index = 1;
function getLinks() {
var links = document.querySelectorAll('.zg_itemImageImmersion a');
return Array.prototype.map.call(links, function(e) {
return e.getAttribute('href').trim();
});
@aarti
aarti / main.go
Created Mar 21, 2018
handlerFuncs and handlers
View main.go
package main
import "fmt"
func main() {
y := registrar{}
y.handlerFuncRegistry = map[string]handlerFunc{
"TheFuncHandler": implementation,
}
z := myHandler{}
@aarti
aarti / 0_readme.md
Created Feb 17, 2018 — forked from andineck/0_readme.md
database messaging distributed kafka
View 0_readme.md

database, messaging, distributed system, kafka

View gist:f10155452d3e9b77dffc1f18bbc967ef
### Keybase proof
I hereby claim:
* I am aarti on github.
* I am classyhacker (https://keybase.io/classyhacker) on keybase.
* I have a public key ASChuFVa8_N6bGlY0RMQRv39ow1LgfBXqRTyxyDezT60fAo
To claim this, I am signing this object:
View .vimrc
set nocompatible " be iMproved, required
" #set backspace=indent,eol,start
filetype off " required
nnoremap <BS> X
set backspace=indent,eol,start
set nu
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
@aarti
aarti / tmuxinator-kafka
Created Mar 14, 2017
Start Kafka locally
View tmuxinator-kafka
# ~/.tmuxinator/kafka.yml
name: kafka
root: ~/dev/confluent/confluent-3.2.0
attach: false
windows:
- zookeeper: './bin/zookeeper-server-start ./etc/kafka/zookeeper.properties'
- server:
- sleep 3
- './bin/kafka-server-start ./etc/kafka/server.properties'
@aarti
aarti / make_gifs.go
Created Jan 6, 2017
Convert Gif's to PingPong Gif's
View make_gifs.go
package main
import (
"bytes"
"image"
"image/gif"
"io/ioutil"
"log"
"net/http"
"sort"
@aarti
aarti / web-crawler.go
Last active Dec 31, 2016
Golang Tour Exercise: parallelize a web crawler. This implementation is using an html parser to scan href's.
View web-crawler.go
package main
import (
"fmt"
"log"
"net/http"
"golang.org/x/net/html"
)
You can’t perform that action at this time.