Skip to content

Instantly share code, notes, and snippets.

View iohub's full-sized avatar
💭
I may be slow to respond.

iohub

💭
I may be slow to respond.
View GitHub Profile
import os
import sys
import difflib
def is_func_def(line=''):
return 'func ' in line
def func_param(line):
@iohub
iohub / iheader.go
Last active June 19, 2019 01:52 — forked from lambdae/Iheader.go
auto generate ycm c/c++ header CFLAGS
package main
import (
"bufio"
"container/list"
"flag"
"fmt"
"io/ioutil"
"os"
"os/exec"
@iohub
iohub / ghttp
Created April 13, 2018 15:23
ghttp
package main
import (
"flag"
"fmt"
"github.com/Jeffail/tunny"
"github.com/valyala/fasthttp"
"hash/fnv"
"io/ioutil"
"os"
@iohub
iohub / Afetch.go
Last active April 13, 2018 15:25 — forked from mattetti/gist:3798173
async fetching of urls using goroutines and channels
package main
import (
"fmt"
"net/http"
"time"
)
var urls = []string{
"http://pulsoconf.co/",