Skip to content

Instantly share code, notes, and snippets.

View Legionof7's full-sized avatar
🐕
Woof

JZ Legionof7

🐕
Woof
View GitHub Profile
@Legionof7
Legionof7 / ReplitGPTCodeCompletion.js
Created January 6, 2023 21:13
Arc Boost: Replit GPT Code Completion
// Debouncing function
function debounce(func, wait) {
let timeout;
return function(...args) {
clearTimeout(timeout);
timeout = setTimeout(() => func.apply(this, args), wait);
};
}
// Enter the hotkey to trigger the completion
// Select a depth-capable capture device.
guard let videoDevice = AVCaptureDevice.default(.builtInTrueDepthCamera,
for: .video, position: .unspecified)
else { fatalError("No dual camera.") }
guard let videoDeviceInput = try? AVCaptureDeviceInput(device: videoDevice),
self.captureSession.canAddInput(videoDeviceInput)
else { fatalError("Can't add video input.") }
self.captureSession.beginConfiguration()
self.captureSession.addInput(videoDeviceInput)
import fuzzy_extractor
Repl.it: Installing fresh packages
Repl.it: fuzzy_extractor
Collecting fuzzy_extractor
Using cached https://files.pythonhosted.org/packages/4a/56/5e2032668da1bfc72cf7fa268713c806bb5ff15dedec9b97d3e994529cc1/fuzzy_extractor-0.3-py2.py3-none-any.whl
Collecting fastpbkdf2 (from fuzzy_extractor)
Using cached https://files.pythonhosted.org/packages/7f/8e/70a4421826d967e3d68be32c2b913a283c7ffa65d897c83746dfd169febc/fastpbkdf2-0.2.tar.gz
import hashlib as hasher
import datetime as date
# Define what a Snakecoin block is
class Block:
def __init__(self, index, timestamp, data, previous_hash):
self.index = index
self.timestamp = timestamp
self.data = data
self.previous_hash = previous_hash
@Legionof7
Legionof7 / Keybase.md
Last active May 25, 2017 01:46
Keybase Verification

Keybase proof

I hereby claim:

  • I am legionof7 on github.
  • I am legion (https://keybase.io/legion) on keybase.
  • I have a public key whose fingerprint is BD9F E6FA 3816 DCFE 14DE 5A66 1589 EF00 F864 7626

To claim this, I am signing this object: