One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| package main | |
| import ( | |
| "encoding/json" | |
| "testing" | |
| ) | |
| type foo struct { | |
| ID string `json:"_id"` | |
| Index int `json:"index"` |
| This gist is a list of instructions that I used to program my ATTiny85s with Micronucleus. They worked for me, but your mileage may vary! I would highly recommend starting by looking at the SparkFun article linked at the bottom for schematics and more in-depth info. This gist is mostly just a copy/paste list. | |
| ## Required: | |
| - ATTiny85 | |
| - AVR programmer | |
| - 1 uF capacitor | |
| - Micronucleus FW: https://github.com/micronucleus/micronucleus/releases | |
| - avrdude: http://www.nongnu.org/avrdude/ | |
| ## Setup: |
| package main | |
| import ( | |
| "encoding/gob" | |
| "bytes" | |
| ) | |
| func GetBytes(key interface{}) ([]byte, error) { | |
| var buf bytes.Buffer | |
| enc := gob.NewEncoder(&buf) |
| pragma solidity ^0.4.19; | |
| /** | |
| * @title NonFungibleTokenLib | |
| * @author Ghilia Weldesselasie | |
| * SHAMELESS SELF-PLUG: https://github.com/ERC-ME/Whitepaper | |
| * | |
| * version 1.2.1 | |
| * Copyright (c) 2018 Ghilia Weldesselasie | |
| * The MIT License (MIT) |
| // Node v6.9.0 | |
| // | |
| // TEST FILE (cut down for simplicity) | |
| // To ensure Golang encrypted string can be decrypted in NodeJS. | |
| // | |
| let crypto; | |
| try { | |
| crypto = require('crypto'); |
| #! /bin/sh | |
| GOOS=linux go build -o $2 "$1" | |
| GOOS=linux go build -ldflags="-s -w" -o $2.-sw "$1" | |
| upx -f --brute -o $2.upx $2 | |
| upx -f --brute -o $2.-sw.upx $2.-sw | |
| GOOS=linux gotip build -o $2.tip "$1" | |
| GOOS=linux gotip build -ldflags="-s -w" -o $2.tip.-sw "$1" | |
| upx -f --brute -o $2.tip.upx $2.tip |
| # Customize BASH PS1 prompt to show current GIT repository and branch. | |
| # by Mike Stewart - http://MediaDoneRight.com | |
| # SETUP CONSTANTS | |
| # Bunch-o-predefined colors. Makes reading code easier than escape sequences. | |
| # I don't remember where I found this. o_O | |
| # Reset | |
| Color_Off="\[\033[0m\]" # Text Reset |
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
| # WAIT! Do consider that `wait` may not be needed. This article describes | |
| # that reasoning. Please read it and make informed decisions. | |
| # https://www.varvet.com/blog/why-wait_until-was-removed-from-capybara/ | |
| # Have you ever had to sleep() in Capybara-WebKit to wait for AJAX and/or CSS animations? | |
| describe 'Modal' do | |
| should 'display login errors' do | |
| visit root_path |