Skip to content

Instantly share code, notes, and snippets.

View taoeffect's full-sized avatar

Greg Slepak taoeffect

View GitHub Profile
@simondlr
simondlr / gist:8fb127c40177bc4d87cb
Last active August 29, 2015 14:06
Optionally mapping names to OpenBazaar GUIDs using Namecoin & DNSChain.

User-friendly names that map to GUIDs have several benefits in the development of a web-of-trust for reputation based in commerce (as put forth by Dionysis: https://gist.github.com/dionyziz/e3b296861175e0ebea4b#pseudonymity). For example, to access specific stores, users send around their GUIDs (as can be seen here: http://www.reddit.com/r/BazaarMarkets/comments/2fjui8/selling_google_glass/). It's easier to remember reputable stores by their user-friendly names.

Here's a proposal to implement such a user-friendly system in OpenBazaar that is acceptably (debatable) decentralized using the Namecoin blockchain (http://namecoin.info/) & DNSChain (https://github.com/okTurtles/dnschain) model & server tools.

Namecoin + DNSChain + OpenBazaar GUIDs.

Namecoin

Namecoin is a decentralized key-value store using blockchain technology. It's been used to map decentralized domains (using .bit) & identities (using namespaces such id or u: https://github.com/opennamesystem/openspecs) amongst other uses. It is the m

@eschulte
eschulte / neural-net.clj
Created November 10, 2010 22:13
Neural Network DSL
(ns neural-net.core) ; Copyright Eric Schulte, GPL V3
(defprotocol Neural
"Protocol implemented by any element of a neural network."
(run [this x] "Evaluates the net")
(train [this x y d] "Trains the net returning the updated net and deltas")
(collect [this key] "Collect key from the network")
(inputs [this] "Number of inputs")
(outputs [this] "Number of outputs")
(check [this] "Ensure that the number of inputs matches the outputs"))
@Rich-Harris
Rich-Harris / grunt.md
Last active May 6, 2016 03:35
The one-size-fits-all key to Grunt.js happiness

This page: http://bit.ly/grunt-happy

One of the complaints people sometimes have about Grunt.js is that the configuration files can grow unwieldy when you have more than a couple of tasks. And you have to explicitly load each of those tasks.

Except that you don't. Here is the one-size-fits-all key to Grunt.js happiness.

1. Set up your project folder

@generatepress
generatepress / gist:1442471cf3e3651d1725
Created July 12, 2015 17:20
GP mobile responsive features without mobile navigation
/* Landscape tablet and below */
@media (max-width: 1024px) {
.inside-footer-widgets > div {
margin-bottom: 50px;
}
.active-footer-widgets-1 .footer-widget-1,
.active-footer-widgets-3 .footer-widget-3,
.active-footer-widgets-5 .footer-widget-5 {
width: 100%;

"Instantly" Understand U.S. Monetary Policy

Well, maybe. If any of this is confusing, see the Resources section at the bottom.

U.S. Economic Policy In A Nutshell

Quick terms (might differ a bit from other sources):

  • "T-bills"/"treasuries"/"bonds" (there are multiple types) = a promise (from the US government) to repay an amount of cash at a specific future date, with interest. These are not intended to be used as money to buy goods/services, but are a mechanism for "the fed" to manipulate interest rates, the amount of cash flowing through the economy, and the amount of cash that the government has to spend on things.
  • "Reserves" = cash (typically cash that a bank actually has).

Clarifying The "Free ETC" Coinbase Confusion

I do not work for Coinbase and do not in any way speak for or represent them. This post was hastily written and is probably full of typos!

This is my attempt to clarify the possibilities that might be going on, based on various Coinbase employee statements.

First, I should highlight that there has been a good amount of confusion created by the replay attacks going on between the "two" Ethereum chains. So much so that it seems to have confused just about everyone, including me, as to the details of what's going on with Coinbase's ETH/ETC (and other ETH/ETC).

I put "two" in quotes because at the moment it's more like there are "1.25 Ethereum chains" because of the replay attacks, which are causing almost every transaction to get mirrored on the other chain. Replay attacks are possible because Ethereum's hard fork did not take steps to make Ethereum transactions invalid on the original chain. Instead, all transactions are valid on both chains unless specia

@marcelofernandez
marcelofernandez / ieee-trigraph.csl
Created August 5, 2012 13:37 — forked from fbennett/ieee-trigraph.csl
IEEE CSL Style, with trigraph and uppercase citation label
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only">
<info>
<title>IEEE trigraph</title>
<id>http://www.zotero.org/styles/ieee-trigraph</id>
<link href="http://www.zotero.org/styles/ieee-trigraph" rel="self"/>
<author>
<name>Michael Berkowitz</name>
<email>mberkowi@gmu.edu</email>
</author>
lol1: &lol1
"lol"
lol2: &lol2
[*lol1,*lol1,*lol1,*lol1,*lol1,*lol1,*lol1,*lol1,*lol1,*lol1]
lol3: &lol3
[*lol2,*lol2,*lol2,*lol2,*lol2,*lol2,*lol2,*lol2,*lol2,*lol2]
lol4: &lol4
[*lol3,*lol3,*lol3,*lol3,*lol3,*lol3,*lol3,*lol3,*lol3,*lol3]
lol5: &lol5
[*lol4,*lol4,*lol4,*lol4,*lol4,*lol4,*lol4,*lol4,*lol4,*lol4]
@khovratovich
khovratovich / BranchSender.sol
Created July 21, 2016 08:34
Split contract by Mikhail Vladimirov
// Simple smart contract that allows anyone to send ether from one address to
// another in certain branch of the blockchain only. This contract is supposed
// to be used after hard forks to clearly separate "classic" ether from "new"
// ether.
contract BranchSender {
// Is set to true if and only if we are currently in the "right" branch of
// the blockchain, i.e. the branch this contract allows sending money in.
bool public isRightBranch;
// Instantiate the contract.
@iAladdin
iAladdin / wwdc-2014-extractor
Last active April 26, 2019 01:27
WWDC 2014 Sessions Video URL Extractor
//please execute this script on https://developer.apple.com/videos/wwdc/2014/
//inspect this page and run it on console
jQuery(".download a:contains('HD')").each(function(n){ console.log(jQuery(this).attr("href"))})
jQuery(".download a:contains('SD')").each(function(n){ console.log(jQuery(this).attr("href"))})
jQuery(".download a:contains('PDF')").each(function(n){ console.log(jQuery(this).attr("href"))})