Skip to content

Instantly share code, notes, and snippets.

View lakefox's full-sized avatar
🦊

LakeFox lakefox

🦊
View GitHub Profile
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<style>
body {
background-color: #151929;
margin: 0;
padding: 0;
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<script src="./js/state.js"></script>
</head>
<body>
<main>
<h1>To-Do</h1>
@lakefox
lakefox / smmry.js
Created June 8, 2023 23:40
Paraphrasing Text without Machine Learning in JavaScript: full tutorial @ decode.sh
function smmry(text) {
var doc = [];
var stoplist = [
"",
"a",
"about",
"above",
"above",
"across",
"after",
function recorder(canvas, audioTrack = false) {
this.chunks = [];
this.recorder = null;
this.url = "";
// The nested try blocks will be simplified when Chrome 47 moves to Stable
this.start = () => {
this.stream = canvas.captureStream(); // frames per second
if (audioTrack) {
this.stream.addTrack(audioTrack);
(() => {
let script = document.createElement("script");
script.onload = () => {
let sheets = document.querySelectorAll("table[spreadsheet]");
for (let a = 0; a < sheets.length; a++) {
const sheet = sheets[a];
let contents = JSON.parse(sheet.getAttribute("data"));
let cells = parseInt(sheet.getAttribute("cells"));
let rows = parseInt(sheet.getAttribute("rows"));
let head = document.createElement("thead");
@lakefox
lakefox / spinner.js
Created October 4, 2020 21:36
Free article spinner/paraphraser also available on runkit as a free api.
// Usage
// Base URL: https://spinner-sjorekjz6lgl.runkit.sh/
// Rate set as a number between 0-1 and is the rate of replaced words
// Text is the text to be spun
//
// Example URL:
// `https://spinner-sjorekjz6lgl.runkit.sh/?rate=0.5&text=${encodeURLComponent(whatever text you want)}`
const synonyms = require("synonyms");
@lakefox
lakefox / spinner.js
Created October 4, 2020 21:33
Free article spinner/paraphraser also available on runkit as a free api.
const synonyms = require("synonyms");
const WordPOS = require('wordpos'),
wordpos = new WordPOS();
var cors = require('cors');
var express = require("@runkit/runkit/express-endpoint/1.0.0");
var app = express(exports);
app.use(cors());
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>GitTexts</title>
</head>
<body>
<form class="" action="javascript:submit()" method="post">
<input type="text" id="feed" placeholder="https://github.com/lakefox.private.atom?token=AdjUvjXjhfyck_AcGGbqOf-XZt5W262pks65g2rbwA==">
<input type="tel" id ="number" placeholder="660 351 5674">