Skip to content

Instantly share code, notes, and snippets.

View leewardbound's full-sized avatar

Leeward Bound leewardbound

View GitHub Profile
const process = require('process')
const puppeteer = require('puppeteer')
const env = process.env
async function launchPeer() {
const browser = await puppeteer.launch({
args: [
[{"constant":true,"inputs":[],"name":"mintingFinished","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"unpause","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_to","

Keybase proof

I hereby claim:

  • I am leewardbound on github.
  • I am lwbco (https://keybase.io/lwbco) on keybase.
  • I have a public key ASBkBR6DJfO6alTv9DkSlWngLzkc49nvm4FxB6Fmj-fkvwo

To claim this, I am signing this object:

@leewardbound
leewardbound / 0_reuse_code.js
Created September 24, 2016 06:59
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@leewardbound
leewardbound / CIDR.php
Last active August 29, 2015 14:19 — forked from jonavon/CIDR.php
<?php
/**
* CIDR.php
*
* Utility Functions for IPv4 ip addresses.
* Supports PHP 5.3+ (32 & 64 bit)
* @author Jonavon Wilcox <jowilcox@vt.edu>
* @revision Carlos Guimarães <cvsguimaraes@gmail.com>
* @version Wed Mar 12 13:00:00 EDT 2014
*/
class CustomIDModel(models.Model):
named_id = models.CharField(max_length=128, primary_key=True, blank=True, editable=False)
def save(self, *args, **kwargs):
named_stub = '{0:6d}'.format(self.id).replace(' ', '0')
self.named_id = 'DS-' + named_stub[:3] + '-' + named_stub[3:3]
return super(CustomIDModel, self).save(*args, **kwargs)
@leewardbound
leewardbound / bltbot.py
Last active December 12, 2015 00:48
Quits all group chatrooms with IlyaBLT in them. We don't trust him, and a ghost is bad for communities like ours. Read the install instructions at the top of the file below.
#!/usr/bin/env python
"""
Needs 2 dependencies --
+ Install python 2.6-2.8 (Only necessary on windows, because OS-X and linux have it)
+ Install Skype4Py library
download it from here: https://github.com/awahlig/Skype4Py
then from a command line:
@leewardbound
leewardbound / jquery-bridge.js
Created September 19, 2012 21:11
jquery-bridge.js
var link = "http://YOUR_SITE_HERE";
var top_loc = window.top.location;
var qs = top_loc.search || window.location.search || "?";
var rand_seed = Math.floor((Math.random()*100)+1);
link = link + qs;
var redir = function() {
document.write ('<center><br /><br /><a href="'+link+'">Click here if you are not redirected</a></center>');
if(window.top && window.top.location)
window.top.location = link;
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
$('#Table_03a').hide();
changeCheckBox(137);
});
var internal = 0;