Skip to content

Instantly share code, notes, and snippets.

View extremeheat's full-sized avatar
🔶

extremeheat

🔶
View GitHub Profile
@extremeheat
extremeheat / calc.js
Created June 28, 2021 07:04
node tkinter calculator
import { python } from 'JSPyBridge'
const tk = await python('tkinter')
let expression = ''
let equation
async function press(num) {
if (num === '=') {
try {
console.info('Evaluating:', expression)
import { py, python, PyClass } from "JSPyBridge"
const tf = await python('tensorflow')
class KerasCallback extends PyClass {
constructor() {
super(tf.keras.callbacks.Callback())
}
on_epoch_end(epoch, logs) {
if (logs.loss < 0.4) {
@extremeheat
extremeheat / mineflayer.ipynb
Created July 18, 2021 08:02
mineflayer.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@extremeheat
extremeheat / mineflayer.ipynb
Created July 18, 2021 08:47
mineflayer.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
var addBinary = function(a, b) {
let binaryStringA = a.split('').reverse()
let binaryStringB = b.split('').reverse()
let valA = 0n
for (let i = 0n; i < binaryStringA.length; i++) {
if (binaryStringA[i] == 1) valA += 2n ** i
}
let valB = 0n
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<uses-permission android:name="android.permission.INTERNET" />
<application
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"