Skip to content

Instantly share code, notes, and snippets.

View nombiezinja's full-sized avatar

Ti Zhang nombiezinja

  • Vancouver
View GitHub Profile
// See http://ppanyukov.github.io/2017/02/01/golang-with-vsts-repos.html
package main
import (
"strings"
"fmt"
"os"
"log"
"net/http"
@nombiezinja
nombiezinja / golang-linked-list.go
Created July 11, 2018 19:00 — forked from maksadbek/golang-linked-list.go
golang linked list implementation
package main
import "fmt"
type Node struct {
prev *Node
next *Node
key interface{}
}
@nombiezinja
nombiezinja / rspec_model_testing_template.rb
Created March 30, 2018 18:58 — forked from PWSdelta/rspec_model_testing_template.rb
Rails Rspec model testing skeleton & cheat sheet using rspec-rails, shoulda-matchers, shoulda-callbacks, and factory_girl_rails. Pretty much a brain dump of examples of what you can (should?) test in a model. Pick & choose what you like, and please let me know if there are any errors or new/changed features out there. Reddit comment thread: http…
# This is a skeleton for testing models including examples of validations, callbacks,
# scopes, instance & class methods, associations, and more.
# Pick and choose what you want, as all models don't NEED to be tested at this depth.
#
# I'm always eager to hear new tips & suggestions as I'm still new to testing,
# so if you have any, please share!
#
# @kyletcarlson
#
# This skeleton also assumes you're using the following gems:
#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin master
<!DOCTYPE HTML>
<html>
<head>
<style>
body {
margin: 0px;
padding: 0px;
}
</style>
</head>
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶
@nombiezinja
nombiezinja / README.md
Created June 4, 2017 05:02 — forked from hofmannsven/README.md
My simply Git Cheatsheet
/**
*
* @param {array} target
* @param {function} cb: (oldAcc, item, index) -> newAcc
* @param {*} seed
*/
function reduce(target, cb, seed){
var runningAggregate = seed;
target.forEach(function(item, index){