- Click Plus
- New Repository
- IR/
REPO_NAME
PROJECT_DESCRIPTION
- Do not initialize with anything (easier to add after)
- Star your repo
- Pull your repo down locally and
cd
to it
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require('path') | |
module.exports = function override(config, env) { | |
config.module.rules.push({ | |
test: /\.wasm$/i, | |
type: 'javascript/auto', | |
use: [{ loader: 'file-loader' }] | |
}) | |
return config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<link href="https://fonts.googleapis.com/css?family=Open+Sans&display=swap" rel="stylesheet"> | |
<style> | |
.cert, .cert * { | |
font-family: 'Open Sans', sans-serif; | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; |
Here's a simple gist of my Code Combat solutions. May it be useful to anyone who is teaching, playing, or learning Javascript.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import board | |
import neopixel | |
# Mouse stuff | |
import usb_hid | |
from adafruit_hid.mouse import Mouse | |
mouse = Mouse(usb_hid.devices) | |
# Annoying config | |
jump_distance = 75 # jump 75 pixels | |
delay_time = 60 # every 60 seconds |
Red-Green-Refactoring with Ruby Warrior
I'm placing all my solutions in this Gist. Unfortunately, I cannot monkeypatch or mix commands for better refactoring. It's the nature of the game that I must maintain control of the Player object only.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generate your Android production bundle (just code no assets) | |
$ yarn react-native bundle --platform android --dev false --entry-file index.js --bundle-output ./index.android.bundle | |
# Generate your iOS production bundle (just code no assets) | |
$ yarn react-native bundle --platform ios --dev false --entry-file index.js --bundle-output ./index.ios.bundle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<AILabPhoto | |
// Provide TFJS Model and info | |
modelInfo={{ | |
model: myModel, | |
objectDetection: true, | |
labels: ['dog', 'cat'], | |
threshold: 0.4, | |
max: 20, | |
IOU: 0.5 | |
}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// TensorFlow required | |
import * as tf from '@tensorflow/tfjs' | |
import { setWasmPath } from '@tensorflow/tfjs-backend-wasm' | |
// Default path without setWasmPath is /static/js/tfjs-backend-wasm.wasm | |
setWasmPath('/tfjs-backend-wasm.wasm') | |
// We can now force a WASM backend and print it for proof! | |
tf.setBackend('wasm').then(console.log('The Backend is', tf.getBackend())) |
NewerOlder