Skip to content

Instantly share code, notes, and snippets.

View MagnificentPako's full-sized avatar

Paul MagnificentPako

  • Germany
View GitHub Profile
use "json"
use "net"
use "debug"
use "files"
use "net/ssl"
class TestWSNotify is WebsocketNotify
let _env: Env
var _identified: Bool = false
use "json"
use "net"
use "time"
use "debug"
use "files"
use "net/ssl"
class TestWSNotify is WebsocketNotify
let _env: Env
use "json"
use "net"
use "time"
use "debug"
use "files"
use "pony-ws"
use "net/ssl"
class _DiscordWSNotify is WebsocketNotify
fun ref received(conn: TCPConnection ref, data: Array[U8] iso): Bool =>
if(not _connected) then
_connected = true //"swallows" the first response, which is supposed to be
//a HTTP Upgrade response
else
_writing = false
let rb: Reader = Reader
rb.append(consume data)
var final: Bool = true
var opcode: Opcode = OPCLOSE
use "net"
use "buffered"
use "encode/base64"
use "debug"
class WebsocketHandler is TCPConnectionNotify
let _host: String
let _target: String
var _connected: Bool = false
use "json"
use "net"
use "time"
use "debug"
use "files"
use "pony-ws"
use "net/ssl"
class _DiscordWSNotify is WebsocketNotify
let _parent: DiscordWS
module Yuno
class Chain
START_TOKEN = "__start__"
END_TOKEN = "__end__"
def initialize(hash={} of String => Hash(String,Int32))
@data = hash
end

Keybase proof

I hereby claim:

  • I am magnificentpako on github.
  • I am h4x0rz (https://keybase.io/h4x0rz) on keybase.
  • I have a public key ASAhbDvfdSwtDZ2fPGdlHDIDS8ALOdQwNapUW-EUDE5BdQo

To claim this, I am signing this object:

@MagnificentPako
MagnificentPako / multiple-rows.css
Last active August 21, 2017 17:52
Some Discord hackery
.guilds-wrapper {
-webkit-transition: 200ms;
-moz-transition: 200ms;
-o-transition: 200ms;
-ms-transition: 200ms;
transition: 200ms;
width: 20px !important;
}
.guilds-wrapper:hover {
-webkit-transition: 200ms;
.guilds-wrapper {
-webkit-transition: 200ms;
-moz-transition: 200ms;
-o-transition: 200ms;
-ms-transition: 200ms;
transition: 200ms;
width: 20px !important;
}
.guilds-wrapper:hover {
-webkit-transition: 200ms;