Skip to content

Instantly share code, notes, and snippets.

Greg Slepak taoeffect

Block or report user

Report or block taoeffect

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
@simondlr
simondlr / gist:8fb127c40177bc4d87cb
Last active Aug 29, 2015
Optionally mapping names to OpenBazaar GUIDs using Namecoin & DNSChain.
View gist:8fb127c40177bc4d87cb

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 Nov 10, 2010
Neural Network DSL
View neural-net.clj
(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
The one-size-fits-all key to Grunt.js happiness
View grunt.md

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 Jul 12, 2015
GP mobile responsive features without mobile navigation
View gist:1442471cf3e3651d1725
/* 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%;
View gist:1330308
#---------------------------------------------------------------------
# General user
#---------------------------------------------------------------------
myid=`id -u`
myd=`date "+%Y-%m-%d-%H-%M"`
#-------------------------
# Defaults write
#-------------------------
View "Instantly" Understand U.S. Monetary Policy.md

"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).
View coinbase-slockup.md

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

@Wack0
Wack0 / gist:17c56b77a90073be81d3
Last active Mar 6, 2018
It's not just superfish that's the problem.
View gist:17c56b77a90073be81d3
Superfish uses an SDK from Komodia to do SSL MITM. That's probably known by now.
Superfish isn't the only product to use that sdk. there's others too.
Each product that uses the Komodia SDK to MITM, has its OWN CA cert and private
key pair. Seems a lot of people think they all use the superfish cert. That is
NOT the case.
First thing I checked was komodia's own parental control software,
Keep My Family Secure. (mentioned on komodia's own website).
@Chouser
Chouser / externs_for_cljs.clj
Created Jun 17, 2013
Generate an externs.js file for arbitrary JS libraries for use in advanced Google Closure compilation, based on the ClojureScript code that uses the libraries.
View externs_for_cljs.clj
(ns n01se.externs-for-cljs
(:require [clojure.java.io :as io]
[cljs.compiler :as comp]
[cljs.analyzer :as ana]))
(defn read-file [file]
(let [eof (Object.)]
(with-open [stream (clojure.lang.LineNumberingPushbackReader. (io/reader file))]
(vec (take-while #(not= % eof)
(repeatedly #(read stream false eof)))))))
@ethers
ethers / call-then-sendtx-pattern.js
Last active Jun 28, 2018
call-then-sendtx pattern for Ethereum Dapps
View call-then-sendtx-pattern.js
/*
In Ethereum, a contract can be written so that it returns a value for eth_call.
A Dapp can then check for success or error value of eth_call, before calling eth_sendTransaction,
to take advantage of eth_call effectively being a "preview" of the code flow that the transaction
will take. In traditional client-server, clients can't ask servers beforehand what's going to
happen when the client makes a call; with Dapps contracts can be written so that clients can ask
for a "preview" of what is going to happen, before any funds/ethers are actually utilized
(eth_call does not cost any ethers).
Note: it is possible that in between eth_call and when eth_sendTransaction is actually mined,
You can’t perform that action at this time.