I hereby claim:
- I am johnpc on github.
- I am johncorser (https://keybase.io/johncorser) on keybase.
- I have a public key ASCgRRcmi9jc4HSfYHspPxNENCMnbgdSE6ZczSYuLIRWlwo
To claim this, I am signing this object:
import {useState} from "react"; | |
window.shouldStopCode = false; | |
function App() { | |
// move(); move(); | |
const [workingCode, setWorkingCode] = useState(""); | |
function sleep(ms) { | |
return new Promise((resolve) => setTimeout(resolve, ms)); | |
} |
import {useEffect, useState} from "react"; | |
function sleep(ms) { | |
return new Promise((resolve) => setTimeout(resolve, ms)); | |
} | |
const move = async () => { | |
console.log(`Moving at ${Date.now()}`); | |
await sleep(1000); | |
}; |
#!/usr/bin/env python3 | |
### This snippet is a fork of https://github.com/bitcoin/bitcoin/blob/master/test/functional/example_test.py | |
### It has been modified for an exercise provided by https://learning.chaincode.com | |
### Modifications begin on line 223 | |
# Copyright (c) 2017-2020 The Bitcoin Core developers | |
# Distributed under the MIT software license, see the accompanying | |
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | |
"""An example functional test |
{"lastUpload":"2022-04-13T20:06:35.358Z","extensionVersion":"v3.4.3"} |
use AppleScript version "2.5" -- runs on 10.11 (El Capitan) and later | |
use scripting additions | |
set csv_filepath to (path to desktop as text) & "pm_export.csv" | |
set invokedBy to "" | |
tell application "System Events" | |
set invokedBy to get the name of the current application | |
end tell |
tell application "Safari" | |
activate | |
end tell | |
tell application "System Events" to tell application process "Safari" | |
set frontmost to true | |
keystroke "," using {command down} | |
set tb to toolbar 1 of window 1 | |
set buttonName to (name of button 4 of tb as string) | |
click button 4 of tb | |
set theResult to display dialog "Please unlock " & buttonName & " and press Continue when unlocked" buttons {"Cancel", "Continue"} default button "Continue" |
// Reproduce with the following steps: | |
// 1. npx create-react-app antd-bug | |
// 2. cd antd-bug | |
// 3. npm install antd && yarn add antd | |
// 4. copy this code into into src/index.js | |
// 5. npm start | |
// Navigate to localhost:3000 | |
// Use the search box to search for "option". Use backspace and re-type. You will see lines get duplicated. | |
// Screen capture video available here: https://www.youtube.com/watch?v=bc9fT4T87ek | |
// Gif version available here: https://jpc.io/r/antd-bug.gif |
package main | |
import ( | |
"fmt" | |
"net/http" | |
"time" | |
) | |
func main() { | |
links := []string{ |
I hereby claim:
To claim this, I am signing this object:
package org.apache.cordova.plugin; | |
import org.apache.cordova.api.CordovaPlugin; | |
import org.apache.cordova.api.PluginResult; | |
import org.json.JSONArray; | |
import org.json.JSONException; | |
import org.json.JSONObject; | |
import android.location.LocationManager; | |