This Javascript will calculate a unique color for any English word typed into it. Currently other alphabets are not supported. Punctuation and white space are ignored.
A Pen by Matt Nicolaysen on CodePen.
This Javascript will calculate a unique color for any English word typed into it. Currently other alphabets are not supported. Punctuation and white space are ignored.
A Pen by Matt Nicolaysen on CodePen.
Convert word to initial form.
http://text-processing.com/docs/stem.html
curl -d "text=gaming" http://text-processing.com/api/stem/
{"text": "game"}
/** | |
* If IDs are generated more than 1 millisecond apart, they are 100% unique. | |
* @url https://stackoverflow.com/a/44078785 | |
* @returns String | |
*/ | |
function uniqid() { | |
return Date.now().toString(36) + Math.random().toString(36).substring(2); | |
} |
<svg id="code128"></svg> | |
<script src="https://cdn.jsdelivr.net/jsbarcode/3.3.16/barcodes/JsBarcode.code128.min.js"></script> |
// -------------------------------------- | |
// i2c_scanner | |
// | |
// Version 1 | |
// This program (or code that looks like it) | |
// can be found in many places. | |
// For example on the Arduino.cc forum. | |
// The original author is not know. | |
// Version 2, Juni 2012, Using Arduino 1.0.1 |
<?php | |
// php cli.php /update | |
require __DIR__ . '/vendor/autoload.php'; | |
if (PHP_SAPI == 'cli') { | |
$argv = $GLOBALS['argv']; | |
array_shift($argv); |
//source: http://electronics.stackexchange.com/q/59615 | |
int AC_LOAD = 3; // Output to Opto Triac pin | |
int dimming = 128; // Dimming level (0-128) 0 = ON, 128 = OFF | |
void setup() | |
{ | |
pinMode(AC_LOAD, OUTPUT); // Set the AC Load as output | |
attachInterrupt(0, zero_crosss_int, RISING); // Choose the zero cross interrupt # from the table above | |
} |
import { ApolloServer, gql } from "apollo-server-micro"; | |
import { makeExecutableSchema } from "graphql-tools"; | |
import { User } from "../../utils/db"; | |
const typeDefs = gql` | |
type User { | |
id: ID! | |
name: String! | |
email: String! | |
} |