I hereby claim:
- I am copperwall on github.
- I am copperwall (https://keybase.io/copperwall) on keybase.
- I have a public key whose fingerprint is D9D3 A770 60F5 5B9F 3FC3 51AD 4472 ED0D 37EB 7B51
To claim this, I am signing this object:
#! /usr/bin/env python3 | |
import time | |
import urllib.request | |
import json | |
author = 'pg' | |
num_posts = 0 | |
base_url = 'https://hacker-news.firebaseio.com/v0/item/' | |
for itemid in range(1, 100): |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env bash | |
SHA="Enter hash given by freedns.afraid.org" | |
BASE_URL="http://freedns.afraid.org/api/?action=getdyndns&v=2&sha=$SHA" | |
MY_DOMAIN="enter the domain this machine should have point to it" | |
MY_IP=`dig -4 @resolver1.opendns.com -t a myip.opendns.com +short` | |
RES=`curl -s $BASE_URL` | |
for LINE in $RES; do |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env bash | |
set -e | |
if [ "$#" -ne 1 ]; then | |
echo "Usage: soundcloud.sh <url>" | |
exit 1 | |
fi | |
RESOLVE_URL="http://api.soundcloud.com/resolve" | |
CLIENT_ID="" |
#!/bin/sh | |
# Get this from the slack account page where you created the webhook. | |
WEBHOOK_URL="" | |
# Set the name of the channel that you set up the webhook to message you in. | |
CHANNEL="#copperbot" | |
# Set the name of the user that you set up the webhook under. | |
USER="copperbot" | |
# If the first argument is "notify", then mention the whole channel. |
const simpleSchema = new Schema({ | |
nodes: { | |
doc: {content: "paragraph+"}, | |
paragraph: { | |
content: "inline<_>*", | |
group: "block", | |
parseDOM: [{tag: "p"}], | |
toDOM() { return ["p", 0] } | |
}, | |
text: { |
{ | |
"type": "doc", | |
"content": [ | |
{ | |
"type": "paragraph", | |
"content": [ | |
{ | |
"type": "text", | |
"marks": [ | |
{ "type": "em" }, |
let serializer = pm.wikitext.serializer | |
// Grab the JSON document from the current editor. | |
let doc = view.editor.state.doc.toJSON() | |
// Pass the JSON document to the editor and assign output to wikitext. | |
let wikitext = serializer.serialize(doc) |
<?php | |
/** | |
* cons for PHP | |
*/ | |
// constructs a pair | |
function cons($a, $b) { | |
return function($m) use ($a, $b) { | |
if ($m == 0) { |