Skip to content

Instantly share code, notes, and snippets.

View tukan's full-sized avatar

Timothy N. Tsvetkov tukan

  • Vilnius, Lithuania
View GitHub Profile
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCsVn0UQilturwnTyTyKKFur8Vyhf2n3sONmsfS3lLch0lkNMtg+eZ+A6WJWWIGDIdC1XL8KxfB7KAt4uPY5lL1CS9dMaRqGKodsBFO8AvFD4nLy9KzhdET0x3CatE903q3pLG0r8kfzECf99KJCRzXrgfnMfJDGHVYsSEuI8s7jPu4bfE8QXTJOki/0hON1Xule0JD456LFXeWI/wz0G4gOeAL9BTFcaPz953Aw3JVooM/7oM5h2J7sE7HWOIX14qAOSVSNaMGGJ7A+tNo1MbnysYNIemC468dHuPlh01qEFI02bSpaYuuaFybvfCzni75Lt4iNxCxakaUg2QCZF7L tukan@sheldon.local
module.exports = SessionProvider = () ->
currentUser = null
$get: ($log, $rootScope, $location, $state, $injector, localStorageService) ->
authService = $injector.get('jwtAuthService')
# Default login starting logic.
loginStart = (next, nextParams) ->
$log.debug "SessionProvider: redirecting to /login"
obj = Object.new
100_000.times do |i|
obj.respond_to?("sym#{i}".to_sym)
end
GC.start
puts"symbol : #{Symbol.all_symbols.size}"
[{"pattern": "r", "tags": ["preflop"], "actions": {"C": {"student_percent": 8.6, "coach_percent": 12.790000000000001, "student_hands": 2350, "coach_hands": 4868}, "R": {"student_percent": 11.68, "coach_percent": 11.23, "student_hands": 3193, "coach_hands": 4275}, "F": {"student_percent": 79.72, "coach_percent": 75.98, "student_hands": 21790, "coach_hands": 28922}}, "diff": 227026.44999999984}, {"pattern": "", "tags": ["preflop"], "actions": {"X": {"student_percent": 0.01, "student_hands": 3}, "C": {"student_percent": 0.06999999999999999, "coach_percent": 0.01, "student_hands": 30, "coach_hands": 9}, "R": {"student_percent": 26.35, "coach_percent": 26.25, "student_hands": 10649, "coach_hands": 15936}, "F": {"student_percent": 73.57000000000001, "coach_percent": 73.74000000000001, "student_hands": 29736, "coach_hands": 44774}}, "diff": 124843.98500000004}, {"pattern": "rc", "tags": ["preflop", "heads-up", "single-raised"], "actions": {"C": {"student_percent": 12.82, "coach_percent": 22.720000000000002, "student
@tukan
tukan / gist:8067384
Last active January 1, 2016 00:38
session
{
"bb": 2.0,
"committed_eur": 140.571633,
"committed_usd": 183.0,
"created_at": "2013-08-08 20:03:22.916840",
"ended_at": "2013-06-26 16:55:49",
"game_server": "PokerStars",
"game_type": "omaha",
"id": 1273,
"started_at": "2013-06-26 16:11:08",
{
"status":"done",
"user_id":4,
"user_hands_uploaded_at":null,
"coach_id":3,
"recommendations":{
"facing_3bet_after_open_raise":[
{
"column_name":"AA",
"user_original_hands_count":32,
{
"status":"done",
"user_id":1,
"user_hands_uploaded_at":null,
"coach_id":2,
"recommendations":{
"facing_3bet_after_open_raise":[
{
"column_name":"AA",
"user_original_hands_count":32,
{
"status":"done",
"user_id":1,
"user_hands_uploaded_at":null,
"coach_id":2,
"recommendations":[
{
"user_original_hands_count":18,
"user_id":1,
"coach_original_hands_count":70,
{
"status": "init",
"user_id": 4,
"user_hands_uploaded_at": null,
"coach_id": 3,
"recommendations": [],
"ranges_calculated": 18,
"user_hands_count": 20059,
"ranges_to_calculate": 18
}
{
"buckets_count":10,
"status":"done",
"user_id":2,
"created_at":"2013-12-08 01:00:50.540000",
"updated_at":"2013-12-08 01:01:47.394000",
"player":null,
"upload_hands_item_id":"52a32f6ace34de6ad64767eb",
"situation":"facing_unopened",
"position":null,