Skip to content

Instantly share code, notes, and snippets.

View b1nary's full-sized avatar

Roman Pramberger b1nary

View GitHub Profile
<?php
// Force errors
error_reporting(E_ALL);
ini_set('display_errors', 1);
// create curl resource
$ch = curl_init();
// set url
curl_setopt($ch, CURLOPT_URL, "https://poloniex.com/public?command=returnTicker");
require 'json'
require 'uri'
require 'net/http'
require 'net/https'
##
# Poloniex Ruby API interface
#
# Documentation text is pretty much 1:1 from the official API documentation
# https://www.poloniex.com/support/api
@b1nary
b1nary / Altcoin Watcher.md
Created October 10, 2015 17:15
Altcoin watcher is a Cryptocoin watcher written in Ruby new utilizing the Poloniex API

Altcoin Watcher (Poloniex)

Version 0.1.3

This script allows you to keep an process running which shows you current prices for the Altcoins you like. Also it shows % and revenue in BTC or $ if configured. Feel free to use or modify the script. If you make some nice changes i would be happy if you send them back to me too.

Made with love

Show me your support with a little tip!

  • BTC: 12pPFub19Vc3JygNzo8KoJcpu4GHqqUKfR
@b1nary
b1nary / enterpreneur-quotes.json
Created July 14, 2015 22:20
325 Enterpreneur Quotes as JSON
[
{
"text":"The only people who never fail are those who never try.",
"from":"Ilka Chase"
},
{
"text":"Failure is just another way to learn how to do something right.",
"from":"Marian Wright Edelman"
},
{
@b1nary
b1nary / lulz.js
Created June 24, 2015 08:35
Add some hidden games and jokes to your website
$(function(){
function rotate(degrees){
$('html').css({
'-webkit-transform':'rotate(-' + degrees + 'deg)',
'-moz-transform':'rotate(-' + degrees + 'deg)',
'-ms-transform':'rotate(-' + degrees + 'deg)',
'-o-transform':'rotate(-' + degrees + 'deg)',
'transform':'rotate(-' + degrees + 'deg)',
'-webkit-transition':'2s',
@b1nary
b1nary / generate_meme.json
Last active August 29, 2015 14:14
API results maymay.in
{
"id": "3m",
"meme": "Doge",
"top_text": "much api",
"bottom_text": "",
"url": "http://maymay.in:3000/doge/much_api.jpg",
"short_url": "http://maymay.in:3000/s/3m.jpg",
"view_url": "http://maymay.in:3000/view/3m",
"creator": "anyanon",
"status": "new"
module DiceLib
class Dice
attr_accessor :hold, :current, :last
def initialize sides = 6
@dice = (0 .. (sides-1)).to_a
@hold = false
@current = @last = rand(@dice.length)
end
@b1nary
b1nary / onion-gen.js
Last active August 29, 2015 14:08 — forked from ttaubert/onion-gen.js
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
/*
* thirty-two
* https://github.com/chrisumbel/thirty-two
*
@b1nary
b1nary / AllTheTLDs.md
Created July 8, 2014 22:06
[All the TLDs] A complete list of TLDs in the root domain zone. (updated 2014-07-09)

All the TLDs

This list contains all the TLDs based on the official list from the ICAN and a backup from ORSN.

It simply compiles the available lists.

require 'rubygems'
require 'net/http'
require 'net/https'
require 'socksify'
require 'open-uri'
TCPSocket::socks_server = "127.0.0.1"
TCPSocket::socks_port = 9050
url = "coinano.com"