Skip to content

Instantly share code, notes, and snippets.

chp shredding

Block or report user

Report or block shredding

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

To claim this, I am signing this object:

View xrpvanity.js
const ripple = require('ripple-keypairs')
const elitistPart = 'chp'
while (true) {
const seed = ripple.generateSeed()
const keypair = ripple.deriveKeypair(seed)
const address = ripple.deriveAddress(keypair.publicKey)
if (address.startsWith('r' + elitistPart)) {
View models.py
class Lead(models.Model):
# basic lead gen stuff goes here
class Step(Default):
lead = models.ForeignKey(Lead)
active = models.BooleanField(default=False)
comment = models.TextField(blank=True)
def save(self, force_insert=False, force_update=False, using=None, update_fields=None):
View sample.py
from threading import Thread
import time
def foo():
while True:
time.sleep(1)
print('foo')
thread = Thread(target=foo)
thread.start()
View api.py
def connect_to_stream(self, callback):
self.order_book = GDAXOrderBook(api=self, callback=callback, product_id=self.currency_pair)
self.order_book.start()
return self
class GDAXOrderBook(gdax_api.OrderBook):
def __init__(self, api, callback, *args, **kwargs):
super().__init__(*args, **kwargs)
self.api = api
View sample.py
# coding=utf-8
import logging
from django.core.management import BaseCommand
from backend.engine.tasks import get_strategies, get_strategy_by_currency_pair
log = logging.getLogger('notifications')
VERSION = '1.4.2'
View mandrill.py
import mandrill
API_KEY = 'your_api_key'
def send_mail(template_name, email_to, context):
mandrill_client = mandrill.Mandrill(API_KEY)
message = {
'to': [],
'global_merge_vars': []
}
View gist:646cd854ca1d380488f2d6834ced464b
import os
import sys
import json
import time
import requests
from flask import Flask, request
prior_payload = {}
View gto_rock_paper_and_scissors.py
import matplotlib.pyplot as plt
def gto_strategy():
return random.choice(Selection.OPTIONS)
gto_wins = 0
def rock_is_the_thing_strategy():
return 'rock'
rock_wins = 0
View rock_paper_scissor_selection.py
class Selection():
OPTIONS = ('paper', 'scissor', 'rock')
def __init__(self, selection):
if selection not in self.OPTIONS:
raise ValueError('selection must be one of {}.'.format(', '.join(self.OPTIONS)))
self.selection = selection
You can’t perform that action at this time.