Skip to content

Instantly share code, notes, and snippets.

View mkozjak's full-sized avatar

Mario Kozjak mkozjak

View GitHub Profile
package main
import (
_ "code.google.com/p/gcfg"
"code.google.com/p/go.net/ipv4"
_ "encoding/json"
"fmt"
_ "io/ioutil"
"net"
_ "net/http"
brew install --HEAD neovim
==> Installing neovim from neovim/neovim
==> Cloning https://github.com/neovim/neovim.git
Cloning into '/Library/Caches/Homebrew/neovim--git'...
remote: Counting objects: 2040, done.
remote: Compressing objects: 100% (1894/1894), done.
remote: Total 2040 (delta 160), reused 1422 (delta 127), pack-reused 0
Receiving objects: 100% (2040/2040), 7.45 MiB | 902.00 KiB/s, done.
Resolving deltas: 100% (160/160), done.
Checking connectivity... done.
#include <QtCore>
#include <QTcpServer>
#include <QTcpSocket>
#include <QHostAddress>
#include "../../lib/external/http-parser/http_parser.h"
class Srv
{
public:
var bunyan = require('bunyan');
function InfoStream() {}
InfoStream.prototype.write = function(data) {
process.stdout.write("INFO: " + data)
}
function DebugStream() {}
"use strict"
const assertArgs = require("assert-args")
const nats = require("nats")
const url = require("url")
const handlers = require("./handlers")
const utils = require("../utils")
module.exports = class ServiceBus
"use strict"
const assertArgs = require("assert-args")
const nats = require("nats")
const url = require("url")
const handlers = require("./handlers")
const utils = require("../utils")
module.exports = class ServiceBus {
var ws = require("ws")
var c = new ws("ws://localhost:3333/rpc/1.0")
c.on("open", function() {
console.log("opened")
c.send(JSON.stringify({
jsonrpc: "2.0",
method: "authorize",
var C = require("rpc-wsc")
var c = new C("ws://localhost:8080/rpc/1.0")
c.on("open", function() {
c.call("funcme", "foo").then(function(result) {
console.log(result)
c.close()
})
})
"use strict"
var C = require("qaap-barge")
var co = require('co')
var c = new C("ws://localhost:8080/rpc/1.0")
c.on("open", function() {
co(function*() {
let r = null
@mkozjak
mkozjak / drop_encrypt.go
Created January 12, 2017 09:21 — forked from josephspurrier/drop_encrypt.go
Golang - Drag and Drop AES Encryption and Decryption
package main
import (
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"fmt"
"io"
"io/ioutil"
"os"