Skip to content

Instantly share code, notes, and snippets.

752 0 container parent=-1, 255 [x=0, y=0, width=16391, height=16384, width-align=2, height-align=2, horz-align=0, vert-align=0, false]
752 2 container parent=752, 0 [x=0, y=0, width=16391, height=16384, width-align=2, height-align=2, horz-align=0, vert-align=0, false]
752 3 container parent=752, 0 [x=20, y=24, width=479, height=96, width-align=0, height-align=0, horz-align=0, vert-align=0, true]
752 6 container parent=752, 0 [x=5, y=5, width=506, height=130, width-align=0, height-align=0, horz-align=0, vert-align=0, true]
752 7 container parent=752, 0 [x=0, y=0, width=16391, height=16384, width-align=2, height-align=2, horz-align=0, vert-align=0, false]
752 8 container parent=752, 7 [x=6, y=7, width=12, height=12, width-align=1, height-align=1, horz-align=0, vert-align=0, false]
752 9 container parent=752, 7 [x=20, y=24, width=479, height=96, width-align=0, height-align=0, horz-align=0, vert-align=0, false]
752 10 container parent=752, 7 [x=0, y=0, width=15, height=18, width-align=1, height-align=1, h
def decode_base37(val)
chars = "_abcdefghijklmnopqrstuvwxyz0123456789"
if val <= 0 or val >= 0x5b5b57f8a98a5dd1
return nil
end
if val % 37 == 0
return nil
end
json.partial! 'groupcast/response', status: status, data: -> do
json.users { json.array! @users, partial: model_partial, as: :user }
end
json.partial! 'groupcast/response', status: status, data: -> do
json.partial! model_partial, user: @user
end
# Render out if the request was successful and the response status
json.success status == 200 ? true : false
json.status status
# Render out the data for the response by either wrapping a proc or just using the provided object
if data.is_a? Proc
json.data &Proc.new { data.call }
else
json.data data
end
{
"public_exp": [
"10001"
],
"private_exp": [
"6fa82e86e1a1343f553d96365e0ec24f94d9d498180ab95a233e6c6125db2",
"07117cdb5f445fdabbe6a74f5f7820962edc7349612b5fa94efbeebac25614",
"5434180a93a8c3594f4957e60f95ddd00b4ddf42b954da36bfbc7c26c821f8",
"cd2330680d98361fde74b837d39a04be9b8ac053678937a756c0e964cd261d",
"79514ee470f35844c1dfbe142dd38673d360a8039c921510e0e2d01cc5beba",
{EventEmitter} = require 'events'
OffsetBuffer = require 'offset-buffer'
Pipeline = require 'pipes-and-filters'
class Client extends EventEmitter
constructor: (@socket, buffsize=5000) ->
# Create the buffer
@buffer = new OffsetBuffer buffsize
# Create the input and output pipe
package org.nyphrex.ge.core;
import com.google.common.collect.Multimap;
import com.google.common.collect.TreeMultimap;
import java.util.*;
/**
* Created by eve on 7/2/2014
*/