Skip to content

Instantly share code, notes, and snippets.

View rozeappletree's full-sized avatar
🐊
Dedicated to the fool & the foolish.

Asapanna Rakesh rozeappletree

🐊
Dedicated to the fool & the foolish.
View GitHub Profile
@rozeappletree
rozeappletree / index.js
Last active January 23, 2020 16:39
Main function starts from line `190` to `226`.
// ----------------------------------------------------------------------------------------
// ---------------------------[ Helpers start ]---------------------------------------------
// ----------------------------------------------------------------------------------------
/**
* USAGE: `img = capture(i.toString())` where `i` is INT
* Captures a frame from the webcam and normalizes it between -1 and 1.
* Returns a batched image (1-element batch) of shape [1, w, h, c].
*/
async function getImage(imgId) {
local t = {employees=
{employee= {
{
id= "1",
firstName= "Tom",
lastName= "Cruise",
["photo"]= "https=//jsonformatter.org/img/tom-cruise.jpg"
},
{
id= "2",
▄████ ██░ ██ ▒█████ ██████ ▄▄▄█████▓ ███▄ █ ▄▄▄ ▄▄▄█████▓ ██▓ ▒█████ ███▄ █
██▒ ▀█▒▓██░ ██▒▒██▒ ██▒▒██ ▒ ▓ ██▒ ▓▒ ██ ▀█ █ ▒████▄ ▓ ██▒ ▓▒▓██▒▒██▒ ██▒ ██ ▀█ █
▒██░▄▄▄░▒██▀▀██░▒██░ ██▒░ ▓██▄ ▒ ▓██░ ▒░ ▓██ ▀█ ██▒▒██ ▀█▄ ▒ ▓██░ ▒░▒██▒▒██░ ██▒▓██ ▀█ ██▒
░▓█ ██▓░▓█ ░██ ▒██ ██░ ▒ ██▒░ ▓██▓ ░ ▓██▒ ▐▌██▒░██▄▄▄▄██░ ▓██▓ ░ ░██░▒██ ██░▓██▒ ▐▌██▒
░▒▓███▀▒░▓█▒░██▓░ ████▓▒░▒██████▒▒ ▒██▒ ░ ▒██░ ▓██░ ▓█ ▓██▒ ▒██▒ ░ ░██░░ ████▓▒░▒██░ ▓██░
░▒ ▒ ▒ ░░▒░▒░ ▒░▒░▒░ ▒ ▒▓▒ ▒ ░ ▒ ░░ ░ ▒░ ▒ ▒ ▒▒ ▓▒█░ ▒ ░░ ░▓ ░ ▒░▒░▒░ ░ ▒░ ▒ ▒
░ ░ ▒ ░▒░ ░ ░ ▒ ▒░ ░ ░▒ ░ ░ ░ ░ ░░ ░ ▒░ ▒ ▒▒ ░ ░ ▒ ░ ░ ▒ ▒░ ░ ░░ ░ ▒░
░ ░ ░ ░ ░░ ░░ ░ ░ ▒ ░ ░ ░ ░ ░ ░ ░ ░ ▒ ░ ▒ ░░ ░ ░ ▒ ░ ░ ░
░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░
@rozeappletree
rozeappletree / __init__.py
Last active November 15, 2021 23:44
FASTAPI Boilerplate
# empty
@rozeappletree
rozeappletree / sample-csv.csv
Created June 27, 2020 17:04
for kladane's algorithm demo
time-interval (in any units) loss/profit (in any units)
1-Jan-2020 -400
5-Jan-2020 600
10-Jan-2020 -500
15-Jan-2020 300
20-Jan-2020 100
25-Jan-2020 500
30-Jan-2020 -700
5-Feb-2020 -900
@rozeappletree
rozeappletree / IndexDB.js
Created July 2, 2020 10:21
Boilerplate
// Load IndexedDB
window.indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB;
window.tx = window.IDBTransaction || window.webkitIDBTransaction || window.msIDBTransaction;
window.IDBKeyRange = window.IDBKeyRange || window.webkitIDBKeyRange || window.msIDBKeyRange
if (!window.indexedDB) {
window.alert("Your browser doesn't support a stable version of IndexedDB.")
}
// Operations
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Radix Sort</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r118/three.js"></script>
<style>
html { margin: 0; }
@rozeappletree
rozeappletree / pyspark-tag-classifier.ipynb
Created July 7, 2020 02:03
pyspark-tag-classifier.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
The cleanest way to achieve this would be to symlink the binary in the /usr/local/bin directory (which is included in PATH by default). You might need to create this directory if it doesn't exist yet. You can check to see if these directories are already in your PATH by opening Terminal.app and typing:
echo $PATH
This will generate a colon delimited listing of all directories in your PATH.
If the directories /usr/local or /usr/local/bin do not exist yet, execute the following:
sudo mkdir -p /usr/local/bin
Symlink the binary, replace (/Applications) with the path to phantomjs.app if it differs:
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<button onclick="openFullscreen();">Open Video in Fullscreen Mode</button>
<p><strong>Tip:</strong> Press the "Esc" key to exit full screen.</p>