Skip to content

Instantly share code, notes, and snippets.

View b1nary's full-sized avatar

Roman Pramberger b1nary

View GitHub Profile
@b1nary
b1nary / bot.rb
Created February 21, 2014 14:24
#Anycoin Bot
#!/usr/bin/env ruby
require 'socket'
require 'timeout'
require 'json'
require 'open-uri'
def try
begin
Timeout::timeout(10) {
@b1nary
b1nary / Altcoin Watcher.md
Last active May 6, 2023 23:16
Altcoin watcher is a Cryptocoin watcher written in Ruby utilizing the Cryptsy API

Altcoin Watcher (Cryptsy)

Version 0.1.2

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

I created this options friendly because i think others might need it too. Show me your support with a little tip!

  • Cryptsy Trading key: 26b13a60f5cd3aa78e4c29328fb9980bef963e9e
<h3>Variablen</h3>
<ul>
<li><code>%ATHOME</code>true when connected to Heim-Wifi</li>
<li><code>%ATWORK</code>true when connected to Work-Wifi</li>
<li><code>%ATKNOWN</code>is true if we are at a known Wifi place</li>
<li><code>%TOGGLENET</code>Toggles the Network all 14 minutes if true</li>
<li><code>%WORKDAY</code>true if i have to work</li>
</ul>
<h3>My Tasks</h3>
@b1nary
b1nary / convert.rb
Created August 6, 2013 21:02
Creates text walls which appear as images when select with CSS ::selection
#!/usr/bin/env ruby
# idea from: http://fichtre.net/yop.html
# script by: Roman Pramberger (setamagiga@gmail.com)
require 'open-uri'
require 'RMagick'
text = ""
500.times do |i|
text += "SELECT ME - "
@b1nary
b1nary / links.md
Last active December 20, 2015 08:49
1001 Links (linklist for article on b1nary.ch)
@b1nary
b1nary / _.md
Last active December 18, 2015 14:28
Wrapper around the Peerbet.org API a bitcoin raffle trading plattform.

Peerbet.org API wrapper (Ruby gem)

Wrapper around the Peerbet.org API a bitcoin raffle trading plattform.

  • Depencies: json, [net/http, uri]
  • All functions as of 17.06.2013 with all parameters
@b1nary
b1nary / jquery.scrollabe.js
Last active December 15, 2015 23:59
Scrollabe (jQuery anchor scroller for click & onload)
/*
* (sexy) anchor scrolling for clicks and page loads
* Original author: Roman Pramberger @talkb1nary
*
* Licensed under the WTFPL license
*
* Example usage:
* $('body, html').scrollabe({ speed: 2000, listenLink: null })
*
* Tested & working on:
@b1nary
b1nary / _.md
Last active December 11, 2015 00:59
Colorfully testing RGB Leds with ws2801 chips
@b1nary
b1nary / examples.py
Created January 11, 2013 22:59
Playing with my raspberry & some adafruit RGB Pixels
#!/usr/bin/python
# Color control for http://www.adafruit.com/blog/2011/07/18/updated-product-12mm-diffused-digital-rgb-led-pixels-strand-of-25/
# based on this gist: https://gist.github.com/3900703
# based on Adafruits examples
import RPi.GPIO as GPIO, time, math
# Configurable values
stripLength = 25