This is the content from the original Phaser cheatsheet, the site of which went down. I'm editing outdated information as I come across it.
All config is optional, but width, height and scene is recommended to add.
var config = {
pragma solidity ^0.8.0; | |
pragma experimental ABIEncoderV2; | |
contract SavingsAccount { | |
struct Member{ | |
uint id; | |
string name; | |
uint balance; | |
} | |
mapping (uint => Member) public members; | |
event savingsEvent(uint indexed _memberId); |
// JSON API --- https://hexdailystats.com/fulldata | |
// JSON API --- https://hexdailystats.com/livedata | |
// https://codeakk.medium.com/hex-development-data-a1b1822446fa | |
// https://togosh.medium.com/hex-developer-guide-3b018a943a55 | |
// NOTE: New rows of historical full data usually get added into database about 20 minutes after 00:00:00 UTC every day | |
// NOTE: Live data updates every 1 minute | |
// TEST: Copy and run code with online javascript compiler --- https://jsfiddle.net/ |
#!/usr/bin/env bash | |
echo 'Adding Dell repository...' | |
# https://www.dell.com/community/XPS/XPS-13-9300-Does-fingerprint-reader-work-on-linux/td-p/7514958 | |
sudo sh -c 'cat > /etc/apt/sources.list.d/focal-dell.list << EOF | |
deb http://dell.archive.canonical.com/updates/ focal-dell public | |
# deb-src http://dell.archive.canonical.com/updates/ focal-dell public | |
deb http://dell.archive.canonical.com/updates/ focal-oem public | |
# deb-src http://dell.archive.canonical.com/updates/ focal-oem public |
I recently got myself a Yubikey and wanted to set up the Yubico Authenticator with all the OTPs I had in Google Authenticator. Unfortunately Yubico Authenticator doesn't support scanning the QR-code that the Google Authenticator generates when you export the OTP-keys, and it seemed like quite the daunting task to log in to every service to generate new OTP-keys. So I decided to have a look at the contents of the QR code, to see if I could import the keys into Yubico Authenticator in one go. Luckily I found a blog post by Alex Bakker that describes the data format.
Unfortunately, but likely for the best, the security policy of Google Authenticator won't allow you to take a screenshot of
// ==UserScript== | |
// @name Tinder Deblur | |
// @namespace Violentmonkey Scripts | |
// @match https://tinder.com/* | |
// @grant none | |
// @version 1.4 | |
// @author Tajnymag | |
// @downloadURL https://raw.githubusercontent.com/tajnymag/tinder-deblur/main/tinder.user.js | |
// @description Simple script using the official Tinder API to get clean photos of the users who liked you | |
// ==/UserScript== |
import React, { useEffect, useRef } from 'react'; | |
/** | |
* Use setInterval with Hooks in a declarative way. | |
* | |
* @see https://stackoverflow.com/a/59274004/3723993 | |
* @see https://overreacted.io/making-setinterval-declarative-with-react-hooks/ | |
*/ | |
export function useInterval( | |
callback: React.EffectCallback, |
function makeSoup() { | |
const pot = boilPot(); | |
chopCarrots(); | |
chopOnions(); | |
await pot; | |
addCarrots(); | |
await letPotKeepBoiling(5); | |
addOnions(); | |
await letPotKeepBoiling(10); | |
console.log("Your vegetable soup is ready!"); |
const MyComponent = props => { | |
const innerFunction = useCallback(() => { | |
// do something! | |
}); | |
useEffect(() => { | |
innerFunction(); | |
// The effect calls innerFunction, hence it should declare it as a dependency | |
// Otherwise, if something about innerFunction changes (e.g. the data it uses), the effect would run the outdated version of innerFunction | |
}, [innerFunction]); |