Skip to content

Instantly share code, notes, and snippets.

@roscopecoltran
roscopecoltran / clone-progress.go
Created November 16, 2018 00:12 — forked from tyru/clone-progress.go
go-git progress notification output
package main
import (
"bytes"
"encoding/binary"
"fmt"
"io/ioutil"
"net/http"
"os"
"strings"
package commitgraph
import (
"bytes"
"errors"
"io"
"math"
"time"
"gopkg.in/src-d/go-git.v4/plumbing"
package main
import (
"fmt"
"os"
"time"
"gopkg.in/src-d/go-git.v4"
"gopkg.in/src-d/go-git.v4/plumbing"
"gopkg.in/src-d/go-git.v4/plumbing/object"
@roscopecoltran
roscopecoltran / delegate.go
Created October 26, 2018 14:50 — forked from taichi/delegate.go
delegation code generator
package main
import (
"bytes"
"fmt"
"go/ast"
"go/build"
"go/format"
"go/parser"
"go/token"
@roscopecoltran
roscopecoltran / main.go
Created October 26, 2018 14:21 — forked from tenntenn/main.go
具象のerrorを返してるかチェックする
package main
import (
"fmt"
"go/ast"
"go/importer"
"go/parser"
"go/token"
"go/types"
"os"
package main
import (
"fmt"
"go/ast"
"go/parser"
"go/token"
"log"
)
package main
import (
"fmt"
"go/ast"
"go/importer"
"go/parser"
"go/token"
"go/types"
"log"
@roscopecoltran
roscopecoltran / demo2.go
Created October 26, 2018 14:17 — forked from tenntenn/demo2.go
Demo code in GolangUK 2017.
package main
import (
"fmt"
"go/ast"
"go/parser"
"go/token"
"log"
)
package main
import (
"bufio"
"fmt"
"go/ast"
"go/build"
"go/importer"
"go/parser"
"go/token"
@roscopecoltran
roscopecoltran / ft_wiki_preproc.py
Created October 25, 2018 20:03 — forked from bittlingmayer/ft_wiki_preproc.py
fastText pre-trained vectors preprocessing [moved to ftio.wiki.preproc - pip install ftio / https://github.com/SignalN/ftio]
# See https://github.com/facebookresearch/fastText/blob/master/get-wikimedia.sh
#
# From https://github.com/facebookresearch/fastText/issues/161:
#
# We now have a script called 'get-wikimedia.sh', that you can use to download and
# process a recent wikipedia dump of any language. This script applies the preprocessing
# we used to create the published word vectors.
#
# The parameters we used to build the word vectors are the default skip-gram settings,
# except with a dimensionality of 300 as indicated on the top of the list of word