Skip to content

Instantly share code, notes, and snippets.

View events.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Page Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<h1>Listen to events</h1>
View dask-abi.json
[
{
"inputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
View s3.js
var when = require('when');
var AWS = require('aws-sdk');
var _ = require('lodash');
var s3;
var bucket = null;
function getImage(url) {
return when.promise(function(resolve, reject) {
if(!bucket) {
View kovan_ethaddr
0x00828b24A523C3De6735fdb24440c1c0387BC075
View query.html
<select class="js-stationFrom"></select>
<select class="js-stationTo"></select>
<script>
</script>
View SublimeSettings.json
{
"bold_folder_labels": true,
"caret_extra_width": 1,
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
"default_encoding": "UTF-8",
"detect_indentation": false,
"draw_minimap_border": true,
"draw_white_space": "all",
"font_options": "subpixel_antialias",
"highlight_line": true,
View lambda-image-resizer.js
exports.handler = function(event, context) {
// We'd get this from the Lambda event in reality
var sampleInput = {
from: 1,
to: 39,
bucketName: 'test-bucket',
imageSizes: [{
width: 600,
height: 400,
description: 'A medium thumbnail',
View lambda-image-dispatcher.js
exports.handler = function(event, context) {
var sampleInput = {
totalPhotos: 496,
imagesPerLambda: 100,
bucketName: 'sample-bucket',
imageSizes: [{
width: 600,
height: 400,
description: 'A medium thumbnail',
View tns-fish.md

Because Fish has different env variable syntax, we have to run it in bash

/bin/bash -c "tns platform add android"

tns livesync ios --emulator --watch