Skip to content

Instantly share code, notes, and snippets.

@roscopecoltran
roscopecoltran / gist:e1bfed8171df62b53541b885a531409e
Created September 1, 2018 07:18 — forked from entaroadun/gist:1653794
Recommendation and Ratings Public Data Sets For Machine Learning

Movies Recommendation:

Music Recommendation:

@roscopecoltran
roscopecoltran / handler.go
Created September 2, 2018 14:41 — forked from wreulicke/handler.go
AWS Lambdaでリポジトリの内容を書き換えるサンプル
package main
import (
"encoding/base64"
"encoding/json"
"fmt"
"io/ioutil"
"os"
"time"
@roscopecoltran
roscopecoltran / angular_cheat_sheet.md
Created September 15, 2018 07:30
Angular-Cheat-Sheet

Angular.js basic concepts cheat sheet

What is the Scope ?

  • An execution context for expressions
  • An object which is a reference to the application model
  • It binds the view to the controller
  • Instanciated by the $rootScope
  • Scopes are arranged in hierarchical structure which mimic the DOM structure of the application
  • Scopes can watch expressions and propagate events.
  • It has the methods: $on, $emit, $broadcast, $apply, $applyAsync, $digest, $destroy,
@roscopecoltran
roscopecoltran / main.go
Created October 14, 2018 02:17 — forked from egonelbre/main.go
Vecty bugs
package main
import (
"encoding/hex"
"fmt"
"math/rand"
"github.com/gopherjs/vecty"
"github.com/gopherjs/vecty/elem"
"github.com/gopherjs/vecty/event"
@roscopecoltran
roscopecoltran / vgoget.sh
Created October 23, 2018 19:16 — forked from rogpeppe/vgoget.sh
go get binary@version
#!/bin/sh
# This command installs binaries at specified versions
# into $GOBIN, $GOPATH/bin or $HOME/bin.
# It assumes Go 1.11.
if [ $# = 0 ]; then
usage: vgoget cmdpackage[@version]... >&2
exit 2
fi
d=`mktemp -d`
cd "$d"
@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
package main
import (
"bufio"
"fmt"
"go/ast"
"go/build"
"go/importer"
"go/parser"
"go/token"
@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 (
"fmt"
"go/ast"
"go/importer"
"go/parser"
"go/token"
"go/types"
"log"
package main
import (
"fmt"
"go/ast"
"go/parser"
"go/token"
"log"
)