Skip to content

Instantly share code, notes, and snippets.


Jan Owiesniak JanOwiesniak

View GitHub Profile
View package-lock.json
"name": "MY_APP_NAME",
"version": "2.0.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"@babel/code-frame": {
"version": "7.0.0",
"resolved": "",
"integrity": "sha512-OfC2uemaknXr87bdLUkWog7nYuliM9Ij5HUcajsVcMCpQrcLmtxRbVFTIqmcSkSeYRBFBRxs2FiUqFJDLdiebA==",
View DefaultTrackableEventHandler.cs
// Enable and reset animator:
var animator = GetComponentsInChildren<Animator>(true);
 foreach (var component in animator)
 component.Play("campfire", -1, 0);
JanOwiesniak / trade_transfer_calculator.rb
Created Nov 5, 2015
3 different trade transfer calculator implementations
View trade_transfer_calculator.rb
# 1. Old very naive trade transfer calculation implementation
=> used in our current production system
module TransferMarket
module Services
class TradeTransferCalculator
def calculate(size)
size / 2
View ExpectTwice
require 'minitest/autorun'
class ExpectTwice
def initialize(mock)
@mock = mock
def call
p :called_with_FOO => @mock.execute('FOO')
View gist:1136705
G+ Photography Celebrities (10000+ followers)
Thomas Hawk
Trey Ratcliff