This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package smartbatching | |
| import ( | |
| "errors" | |
| "sync" | |
| ) | |
| // T is a type Batcher works with. | |
| type T interface{} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // ViewController.m | |
| // CentrifugoObjectiveC | |
| // | |
| // Created by Alexander Emelin on 05/04/2017. | |
| // Copyright © 2017 Alexander Emelin. All rights reserved. | |
| // | |
| #import "Centrifuge/Centrifuge.objc.h" | |
| #import "ViewController.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| // Subscribe many clients, publish into channel, wait for all messages received. | |
| // Supposed to run for channel which only have `publish` option enabled. | |
| import ( | |
| //"encoding/json" | |
| "log" | |
| "strconv" | |
| "sync" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| import math | |
| import uuid | |
| import random | |
| import pprint | |
| def _get_random_game_score(): | |
| max_score = 5 | |
| score1 = score2 = None |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.example.fz.centrifugoandroid; | |
| import android.app.Activity; | |
| import android.content.Context; | |
| import android.widget.TextView; | |
| import centrifuge.Message; | |
| import centrifuge.MessageHandler; | |
| import centrifuge.Sub; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIKit | |
| import Centrifuge | |
| class MessageHandler : NSObject, CentrifugeMessageHandlerProtocol { | |
| var l: UILabel! | |
| func setLabel(l: UILabel!) { | |
| self.l = l | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package queue | |
| import ( | |
| "sync" | |
| ) | |
| type Item interface { | |
| Len() int | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "crypto/tls" | |
| "fmt" | |
| "net/http" | |
| "golang.org/x/crypto/acme/autocert" | |
| ) |