Skip to content

Instantly share code, notes, and snippets.

Working from home

Tom Brown herestomwiththeweather

Working from home
View GitHub Profile
View signin_with_apple.rb
require 'apple_id'
# NOTE: in debugging mode, you can see all HTTPS request & response in the log.
# AppleID.debug!
pem = <<-PEM
voxpelli / main.js
Last active Apr 19, 2022
A recursive Promise.all() that works on objects
View main.js
const zipObject = function (keys, values) {
const result = {};
keys.forEach((key, i) => {
result[key] = values[i];
return result;
chriseth /
Last active Oct 21, 2021
Async Solidity Contracts

Having seen @pirapira's sketch of Bamboo ( ), which proposed to add better control about the "smart contract program flow", even across calls, I thought that this should certainly be added to Solidity, and actually, it might even be possible now to a certain degree using inline assembly.

The problem is that with many functions in a contract, it is not always clear which can be called at which stage in the contract's lifetime. Certain smart contracts would be easier to understand if written as follows:

jmccartie /
Created May 3, 2016
Patch ImageMagick on Heroku

Patch ImageMagick on Heroku

  • Create a new file on your project: .magick/policy.xml
  • Add the following to its contents:
  <policy domain="coder" rights="none" pattern="EPHEMERAL" />
  <policy domain="coder" rights="none" pattern="URL" />
atcuno / gist:3425484ac5cce5298932
Last active Apr 30, 2022
HowTo: Privacy & Security Conscious Browsing
View gist:3425484ac5cce5298932

The purpose of this document is to make recommendations on how to browse in a privacy and security conscious manner. This information is compiled from a number of sources, which are referenced throughout the document, as well as my own experiences with the described technologies.

I welcome contributions and comments on the information contained. Please see the How to Contribute section for information on contributing your own knowledge.

Table of Contents