Skip to content

Instantly share code, notes, and snippets.

View gutenye's full-sized avatar
:octocat:
Guten tag!

Guten gutenye

:octocat:
Guten tag!
View GitHub Profile
@gutenye
gutenye / gist:1300152
Created October 20, 2011 01:12
disable suite and test in RSpec
# put this in spec_helper.rb
module Kernel
private
def xdescribe(*args, &blk)
describe *args do
pending "xxxxxxxxx"
end
end
@gutenye
gutenye / download-progress.rb
Created December 31, 2011 04:47 — forked from Burgestrand/download-progress.rb
Ruby HTTP file download with progress measurement
require 'net/http'
def download(url)
Thread.new do
thread = Thread.current
thread[:body] = []
thread[:done] = 0
url = URI(url)
Net::HTTP.new(url.host, url.port).get2(url.path) do |res|
version: "2"
services:
app:
image: jeshan/bitcore-node
environment:
- NETWORK=testnet
#network_mode: host
volumes:
- './data:/root/bitcoin-node/data'
@gutenye
gutenye / graphql-thinky.js
Last active October 19, 2016 03:02
graphql-thinky.js
require('babel-polyfill')
const GraphQLThinky = require('graphql-thinky').default
const Thinky = require('thinky')
const Fixtures = require('rethinkdb-fixtures')
const { graphql } = require('graphql')
const { makeExecutableSchema } = require('graphql-tools')
global.pd = console.log.bind(console)
// Thinky //{{{1
const DB = 'test'
/**
* Footprints Configuration
* (config.footprints)
*
* Footprints are routes that are auto-generated from your model and controller
* definitions in api/controllers and api/models.
*
* @see http://trailsjs.io/doc/config/footprints
*/
module.exports = {
import java.net.*;
import java.io.*;
public class Hello {
public static void main(String[] args) {
HttpURLConnection connection = null;
String data = "{\"jsonrpc\": \"1.0\", \"method\": \"getaccountaddress\", \"params\": [\"a\"] }";
String username = "rpc";
String password = "rpc123";
try {
<?xml version='1.0' encoding='utf-8'?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
#!/usr/bin/env node
//
//
// Does not use ES6 Spread operator or any external dependency.
// flatten an array of arbitrarily nested arrays into a flat array.
//
// USAGE
//

Keybase proof

I hereby claim:

  • I am gutenye on github.
  • I am gutenye (https://keybase.io/gutenye) on keybase.
  • I have a public key whose fingerprint is 192B 7750 A6D1 437C DE18 EC14 BDE2 D897 FD33 7D66

To claim this, I am signing this object:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by libtorrent configure 0.13.3, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --prefix=/usr --disable-dependency-tracking --disable-debug CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro CXXFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fno-strict-aliasing -Wno-conversion-null -std=c++11 PKG_CONFIG_PATH=:/opt/qt/lib/pkgconfig --no-create --no-recursion
## --------- ##
## Platform. ##