Skip to content

Instantly share code, notes, and snippets.

View yuhangwang's full-sized avatar

StevenW yuhangwang

View GitHub Profile
@yuhangwang
yuhangwang / gist:b4e686ed1002a214baef
Created November 1, 2015 17:13 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@yuhangwang
yuhangwang / frp.md
Created March 25, 2016 03:29 — forked from ohanhi/frp.md
Learning FP the hard way: Experiences on the Elm language

Learning FP the hard way: Experiences on the Elm language

by Ossi Hanhinen, @ohanhi

with the support of Futurice 💚.

Licensed under CC BY 4.0.

Foreword

@yuhangwang
yuhangwang / introrx.md
Created June 10, 2016 19:17 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@yuhangwang
yuhangwang / haskell_interoperability.md
Created October 18, 2016 17:52 — forked from CMCDragonkai/haskell_interoperability.md
Haskell: Interoperability with other Languages

Haskell Interoperability

There's a number of possible ways to communicate between programms in different languages. There's of course IPC and RPC, but what about actual linking with binary code? Such a feature would allow using C as the portable interface between languages, call into the kernel directly, and also allow Haskell to use existing high quality scientific and numerical libraries. All of this without having the overhead of developing and maintaining a second running process.

@yuhangwang
yuhangwang / my_thoughts_on_msgpack.md
Created October 22, 2016 18:24 — forked from frsyuki/my_thoughts_on_msgpack.md
My thoughts on MessagePack

My thoughts on MessagePack

Hi. My name is Sadayuki "Sada" Furuhashi. I am the author of the MessagePack serialization format as well as its implementation in C/C++/Ruby.

Recently, MessagePack made it to the front page of Hacker News with this blog entry by Olaf, the creator of the Facebook game ZeroPilot. In the comment thread, there were several criticisms for the blog post as well as MessagePack itself, and I thought this was a good opportunity for me to address the questions and share my thoughts.

My high-level response to the comments

To the best of my understanding, roughly speaking, the criticisms fell into the following two categories.

@yuhangwang
yuhangwang / projection.hs
Created December 10, 2016 20:30 — forked from CMCDragonkai/projection.hs
Haskell: Tensor Dimensional Projection (like Numpy's Tuple Selection Objects)
-- with regards to: http://stackoverflow.com/questions/32630035/replicating-numpys-advanced-indexing-slicing-in-haskell
-- let's create some tensors:
-- 5 rows, 4 columns
two_d_matrix =
[
[
0
| _ <- [0..3]]
@yuhangwang
yuhangwang / gist:f5c167bb9cd58f9609ddf9758bc84fb3
Created January 24, 2017 00:14
Problem with conda activate not setting package path correctly
Issue: when using `souce activate my_env` the sys.path is still linked to the master environment.
Solution: unset `PYTHONPATH PYTHONROOT PYTHONHOME` environment variables. They might have override what `source activate` has done.
@yuhangwang
yuhangwang / README.md
Created January 25, 2017 22:40 — forked from DavidEGrayson/README.md
Getting started with midipix
@yuhangwang
yuhangwang / go_functional.go
Created May 12, 2017 14:49 — forked from jakecoffman/go_functional.go
Example of functional programming in Golang.
package main
import "fmt"
func main() {
sum := Sum(1, 2, 3, 4)
fmt.Println(sum)
}
type any interface{}
@yuhangwang
yuhangwang / go_packages_and_tools.md
Created May 21, 2017 15:06
Go packages and tools