Following instructions from the excellent https://www.rinkeby.io/
A full node lets you access all state. There is a light node (state-on-demand) and wallet-only (no state) instructions as well,
mkdir ~/vim | |
cd ~/vim | |
# Staically linked vim version compiled from https://github.com/ericpruitt/static-vim | |
# Compiled on Jul 20 2017 | |
curl 'https://s3.amazonaws.com/bengoa/vim-static.tar.gz' | tar -xz | |
export VIMRUNTIME="$HOME/vim/runtime" | |
export PATH="$HOME/vim:$PATH" | |
cd - |
#!/bin/bash | |
if [[ "$1" != "" ]]; then | |
S3BUCKETNAME="$1" | |
else | |
echo ERROR: Failed to supply S3 bucket name | |
exit 1 | |
fi | |
aws s3 sync build s3://$S3BUCKETNAME --delete --cache-control max-age=31536000,public |
Following instructions from the excellent https://www.rinkeby.io/
A full node lets you access all state. There is a light node (state-on-demand) and wallet-only (no state) instructions as well,
# Disallow everything. | |
User-agent: * | |
Disallow: / | |
# Certain social media sites are whitelisted to allow crawlers to access page markup when links to /images are shared. | |
User-agent: Twitterbot | |
Allow: /images | |
User-agent: facebookexternalhit | |
Allow: /images |
from image_match.goldberg import ImageSignature | |
import glob | |
BASE_DIR='/Users/maros.hluska/Dropbox' | |
BASE_IMAGE='./crop.png' | |
gis = ImageSignature() | |
def filenames(extension): | |
return glob.iglob(BASE_DIR + '/**/*.' + extension, recursive=True) |
#!/bin/sh | |
# See https://github.com/xiaohan2012/twitter-sent-dnn | |
if [ "${#}" -eq 0 ]; then | |
echo "Usage: ${0} message" | |
exit 1 | |
fi | |
html=$(curl 'https://twitter-sentiment-cnn.herokuapp.com/' \ |
require 'dotenv' | |
require 'tinderbot' | |
require 'sentimental' | |
Dotenv.load! | |
class Bot | |
MAX_DAYS_SINCE_REPLY = 5 | |
MAX_DAYS_SINCE_MESSAGE = 2 | |
MAX_DISTANCE_MI = 100 |
var async = require('async'); | |
var AWS = require('aws-sdk'); | |
AWS.config.update({region:'us-east-1'}); | |
var request = require('request'); | |
var s3 = new AWS.S3({ apiVersion: '2006-03-01' }); | |
var sns = new AWS.SNS(); | |
var new_upload_arn = "arn:aws:sns:us-east-1:346805855669:vuedating_new_presenece"; | |
//Lambda entry point |
# O(n), n = total number of bits | |
def count_bits1(num): | |
count = 0 | |
while num > 0: | |
if num % 2 == 1: | |
count += 1 | |
num //= 2 | |
return count |
require "open-uri" | |
require "net/http" | |
Error = Class.new(StandardError) | |
DOWNLOAD_ERRORS = [ | |
SocketError, | |
OpenURI::HTTPError, | |
RuntimeError, | |
URI::InvalidURIError, |