Skip to content

Instantly share code, notes, and snippets.

View AmazingDreams's full-sized avatar

Dennis Ruhe AmazingDreams

View GitHub Profile
@AmazingDreams
AmazingDreams / install-bfgminer.sh
Last active July 5, 2023 01:49
Installing BFGMiner Raspberry Pi
sudo apt-get install git \
build-essential autoconf automake libtool pkg-config libcurl4-gnutls-dev \
libjansson-dev uthash-dev libncursesw5-dev libudev-dev libusb-1.0-0-dev \
libevent-dev libmicrohttpd-dev hidapi
mkdir ~/build
cd ~/build
git clone --depth=1 https://github.com/luke-jr/bfgminer.git
@AmazingDreams
AmazingDreams / uploader.js
Created January 16, 2015 16:53
HTML5 uploader
$(document).ready(function() {
$(".js-uploader").each(function() {
var $form = $(this.form);
var $display = $($(this).attr('data-filedisplay'));
var targetURL = $(this).attr('data-targeturl');
var template = $($(this).attr('data-template')).html();
$(this).on('change', function() {
var files = this.files;
<?php
define('LIFE', '+');
define('VOID', ' ');
define('MAX_X', $argv[1]);
define('MAX_Y', $argv[2]);
$world = genWorld(MAX_X, MAX_Y);