I hereby claim:
- I am sargonas on github.
- I am thesargonas (https://keybase.io/thesargonas) on keybase.
- I have a public key whose fingerprint is A58B DBC5 5428 604F 543C D39B 4855 E81B 9503 4196
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#CircuitPython code for a Trinket M0 with mini NeoPixel lights and a single button to control | |
#the lighting inside a set of infinity-mirror cat ears, powered by a small LiPoly battery. | |
from digitalio import DigitalInOut, Direction, Pull | |
import board | |
import time | |
import neopixel | |
pixelPin = board.D1 #set NeoPixel output pin | |
pixelNumber = 20 #set number of NeoPixels | |
strip = neopixel.NeoPixel(pixelPin, pixelNumber, brightness=0.5, auto_write=False) |
pragma solidity ^0.4.8; | |
contract Token { | |
event Transfer(address indexed from, address indexed to, uint256 value); | |
function transfer(address _to, uint256 _value); | |
function balanceOf(address) returns (uint256); | |
} | |
contract owned { | |
address public owner; |
///////////////////////// | |
//Section 1: Coin Value// | |
///////////////////////// | |
//////////////////////////////////////////////////////////////////////////////////////////////// | |
//coin market value lookup (works for all coins, just pass a single coin symbol as a parameter) | |
function getCoinPriceBySymbol(symbol) { | |
var url = 'https://api.coinmarketcap.com/v1/ticker/'; | |
var response = UrlFetchApp.fetch(url); | |
var json = JSON.parse(response.getContentText()); |