This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime | |
import pytz | |
import random | |
central_tz = pytz.timezone('America/Chicago') | |
raffle_datetime = datetime.datetime(2024, 3, 13, 18, 0, 0, 0, central_tz) | |
timestamp = int(raffle_datetime.timestamp()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime | |
import pytz | |
import random | |
central_tz = pytz.timezone('America/Chicago') | |
raffle_datetime = datetime.datetime(2024, 3, 13, 18, 0, 0, 0, central_tz) | |
timestamp = int(raffle_datetime.timestamp()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime | |
import pytz | |
import random | |
central_tz = pytz.timezone('America/Chicago') | |
raffle_datetime = datetime.datetime(2024, 2, 13, 18, 0, 0, 0, central_tz) | |
random.seed(raffle_datetime.timestamp()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import random | |
PEOPLE = [ | |
'abha', | |
'backpacker', | |
'Bora', | |
'BoxWallet', | |
'CalmDownDavid', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import signal | |
import pexpect | |
import pexpect.popen_spawn | |
def open_xpm_client(): | |
print('Opening xpm_client...') | |
xpm_client = pexpect.popen_spawn.PopenSpawn('xpmclient.exe') | |
print('xpm_client open!') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate reqwest; | |
extern crate select; | |
extern crate serde_json; | |
use select::document::Document; | |
use select::predicate::{Name, Class, Predicate}; | |
use serde_json::Value; | |
use std::fs::File; | |
use std::thread; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate reqwest; | |
extern crate select; | |
extern crate serde_json; | |
use select::document::Document; | |
use select::predicate::{Name, Class, Predicate}; | |
use serde_json::Value; | |
use std::fs::File; | |
fn address_used(address: &str) -> bool { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:jessie | |
RUN apt-get update | |
RUN apt-get install -y make | |
RUN apt-get install -y build-essential | |
RUN apt-get install -y libboost-all-dev | |
RUN apt-get install -y libssl-dev | |
RUN apt-get install -y libdb++-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:trusty | |
RUN apt-get update | |
RUN apt-get install -y software-properties-common | |
RUN apt-add-repository -y ppa:bitcoin/bitcoin | |
RUN apt-get update | |
RUN apt-get install -y autoconf \ | |
automake \ | |
bsdmainutils \ | |
build-essential \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Scales the video stream from an ogg video file | |
using Gst; | |
public class VideoScaler { | |
private MainLoop loop = new MainLoop (); | |
private Pipeline pipeline; | |
private bool bus_callback (Bus bus, Message message) { | |