Skip to content

Instantly share code, notes, and snippets.

@enriquefynn
enriquefynn / cookie
Created February 13, 2015 17:23
cookie
@enriquefynn
enriquefynn / client.cpp
Created February 18, 2016 20:34
client.cpp
#include <iostream>
#include <thrift/protocol/TBinaryProtocol.h>
#include <thrift/transport/TSocket.h>
#include <thrift/transport/TTransportUtils.h>
#include "./gen-cpp/ex.h"
using namespace std;
using namespace apache::thrift;
@enriquefynn
enriquefynn / server.cpp
Created February 18, 2016 20:34
server.cpp
#include <thrift/concurrency/ThreadManager.h>
#include <thrift/concurrency/PlatformThreadFactory.h>
#include <thrift/protocol/TBinaryProtocol.h>
#include <thrift/server/TSimpleServer.h>
#include <thrift/server/TThreadPoolServer.h>
#include <thrift/server/TThreadedServer.h>
#include <thrift/transport/TServerSocket.h>
#include <thrift/transport/TSocket.h>
#include <thrift/transport/TTransportUtils.h>
#include <thrift/TToString.h>
@enriquefynn
enriquefynn / example.thrift
Created February 18, 2016 20:37
protocol
namespace cpp example
union type_ex
{
1:string STRING,
2:i64 INT64,
3:double DOUBLE
}
service ex
/you/have/to/check/what/makeplist/gives/you
bin/bench
bin/eth
bin/ethkey
bin/ethminer
bin/ethrpctest
bin/ethvm
bin/lllc
bin/rlp
bin/solc

Keybase proof

I hereby claim:

  • I am enriquefynn on github.
  • I am efynn (https://keybase.io/efynn) on keybase.
  • I have a public key whose fingerprint is C819 530F 771A 6978 FFC3 B092 50A2 3814 D8B3 FC8E

To claim this, I am signing this object:

#include <iostream>
#include <cstdlib>
#include <cmath>
using namespace std;
int main() {
long long n, x, v[1000000];
unsigned long long cnt = 0;
cin >> n >> x;
for (int i = 0; i < n; ++i)
{
"API": {
"HTTPHeaders": null
},
"Addresses": {
"API": "/ip4/127.0.0.1/tcp/5001",
"Announce": null,
"Gateway": "/ip4/127.0.0.1/tcp/8080",
"NoAnnounce": null,
"Swarm": [
@enriquefynn
enriquefynn / skype-4.3.0.37.patch
Created August 5, 2014 23:40
patch -p1 < skype-4.3.0.37.patch
diff --git a/net-im/skype4/Makefile b/net-im/skype4/Makefile
index b6f468a..67d88d2 100644
--- a/net-im/skype4/Makefile
+++ b/net-im/skype4/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD: head/net-im/skype/Makefile 327756 2013-09-20 22:13:34Z bapt $
PORTNAME= skype
-PORTVERSION= 4.2.0.13
+PORTVERSION= 4.3.0.37
const fs = require('fs');
const solc = require('solc')
const Web3 = require('web3');
const web3 = new Web3();
web3.setProvider(new web3.providers.HttpProvider('http://localhost:8545'));
const address = web3.eth.accounts[0];
const code = fs.readFileSync('Voting.sol').toString()