I hereby claim:
- I am futurepaul on github.
- I am futurepaul (https://keybase.io/futurepaul) on keybase.
- I have a public key whose fingerprint is 2A20 458D 8270 EE78 2075 F488 6342 FAC3 3419 543C
To claim this, I am signing this object:
| let 🌍 = "🐶🐺🐱🐭🐹🐰🐸🐯🐨🐻🐷🐽🐮🐗🐵🐒🐴🐑🐘🐼🐧🐦🐤🐥🐣🐔🐍🐢🐛🐝🐜🐞🐌🐙🐚🐠🐟🐬🐳🐋🐄🐏🐀🐃🐅🐇🐉🐎🐐🐓🐕🐖🐁🐂🐲🐡🐊🐫🐪🐆🐈🐩" | |
| var 🚢: String[] = [] | |
| for 💕 in 🌍 { | |
| switch 💕 { | |
| case "🐑", "🐏", "🐐", "🐂": | |
| for 🛁 in 1...7 { | |
| 🚢.append(💕 + 💕) | |
| } |
| (def rps-rules {"rock" "scissors", | |
| "paper" "rock", | |
| "scissors" "paper"}) | |
| (defn rps-random [] | |
| (let [comp-choice (int (* (rand) 3))] | |
| ((into [] (keys rps-rules)) comp-choice))) | |
| (defn rps-winner [choice comp-choice] | |
| (if (= (rps-rules choice) comp-choice) |
I hereby claim:
To claim this, I am signing this object:
| #Step 1: Import the libraries we need | |
| import pygame.mixer | |
| import RPi.GPIO as GPIO | |
| import glob | |
| import random | |
| import time | |
| #Step 2: Fire up the sound mixer | |
| pygame.mixer.init() |
| Verifying my Blockstack ID is secured with the address 18mV3sRwd1kiR1YwvGBvrvxXj9fxqCVojG https://explorer.blockstack.org/address/18mV3sRwd1kiR1YwvGBvrvxXj9fxqCVojG |
| use bitcoin::blockdata::{opcodes, script}; | |
| use miniscript::{Descriptor, Miniscript, Policy}; | |
| use std::str::FromStr; | |
| use secp256k1; | |
| fn key_from_secret_key(sk: secp256k1::SecretKey, secp: &secp256k1::Secp256k1<secp256k1::All>) -> bitcoin::PublicKey { | |
| bitcoin::PublicKey { | |
| key: secp256k1::PublicKey::from_secret_key( |
SCENARIO 1: BUTTON WIDTH IS BASED ON LABEL WIDTH
I want the width of the button to be:
padding_left + label_width + padding_right
I want the height of the button to be:
padding_top + label_height + padding_bottom
I want the label centered horizontally and vertically
| import React, { useState, useRef } from "react"; | |
| function decimalToTime(seconds, duration) { | |
| let fmtTime = new Date(1000 * seconds).toISOString().substr(11, 8); | |
| if (duration >= 3600) { | |
| return fmtTime; | |
| } else { | |
| //remove the hours | |
| fmtTime = fmtTime.substring(3); |