Skip to content

Instantly share code, notes, and snippets.

boto3==1.18
botocore==1.21.1
coloredlogs==14.0
datasets==1.4.1
docutils<0.16,>=0.14
emoji==0.5.4
docformatter==1.3.0
flake8-bugbear==19.8.0
flake8==3.7.8
iopath~=0.1.8
#!/usr/bin/env node
const _sodium = require('libsodium-wrappers');
(async() => {
if (process.argv.length <= 2){
console.log("Please enter a term to find, with an optional password, e.g. node vanity.js test [password]");
return;
}
var match = process.argv[2];
var ALPHABET = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'
for(var i = 0; i < match.length; i++){
This is a program that can answer questions about a given text.
Text:
/Page 1/
[An illustration of a standing bear]
My hat is gone. I want it back.
/Page 2/
[An illustration of a bear and a fox]
Have you seen my hat? *No, I haven't seen your hat.* OK. Thank you anyway.
/Page 3/
@Devetec
Devetec / code.js
Created April 30, 2017 20:55
A search engine for the years to come. version 0.1, not working, needs improvement
function clear() {
var elem = document.getElementsByTagName("div");
var elements = Array.prototype.slice.call(elem);
elements.forEach((element) => element.parentNode.removeChild(element));
}
//Here is the magic! \/
function results(form) {
var search = form.inputbox.value;
if (search === "domestic cat", "domestic cats", "cats", "cat") {
alert("You searched " + search + "." + " The domestic cat, also called Felis catus, is a small, typically furry, carnivorous mammal, with over 70 breeds, such as Maine Coon and Persian. They weigh about 9 to 10 pounds, though the heaviest was 50 pounds and the lightest at one pound. There are about 600 million of them in the world, excluding wild ones. They live for 12 to 18 years.");