Convert word to initial form.
http://text-processing.com/docs/stem.html
curl -d "text=gaming" http://text-processing.com/api/stem/
{"text": "game"}
| // YouTube API video uploader using JavaScript/Node.js | |
| // You can find the full visual guide at: https://www.youtube.com/watch?v=gncPwSEzq1s | |
| // You can find the brief written guide at: https://quanticdev.com/articles/automating-my-youtube-uploads-using-nodejs | |
| // | |
| // Upload code is adapted from: https://developers.google.com/youtube/v3/quickstart/nodejs | |
| const fs = require('fs'); | |
| const readline = require('readline'); | |
| const assert = require('assert') | |
| const {google} = require('googleapis'); |
| #include <BLEDevice.h> | |
| #include <BLEUtils.h> | |
| #include <BLEServer.h> | |
| #include "BLE2902.h" | |
| #include "BLEHIDDevice.h" | |
| #include "HIDTypes.h" | |
| #include "HIDKeyboardTypes.h" | |
| // See the following for generating UUIDs: | |
| // https://www.uuidgenerator.net/ |
| // This example code is in the Public Domain (or CC0 licensed, at your option.) | |
| // By Evandro Copercini - 2018 | |
| // | |
| // This example creates a bridge between Serial and Classical Bluetooth (SPP) | |
| // and also demonstrate that SerialBT have the same functionalities of a normal Serial | |
| // Note: Pairing is authenticated automatically by this device | |
| #include "BluetoothSerial.h" | |
| #include "esp_bt.h" |
| /* | |
| Video: https://www.youtube.com/watch?v=oCMOYS71NIU | |
| Based on Neil Kolban example for IDF: https://github.com/nkolban/esp32-snippets/blob/master/cpp_utils/tests/BLE%20Tests/SampleNotify.cpp | |
| Ported to Arduino ESP32 by Evandro Copercini | |
| Create a BLE server that, once we receive a connection, will send periodic notifications. | |
| The service advertises itself as: 6E400001-B5A3-F393-E0A9-E50E24DCCA9E | |
| Has a characteristic of: 6E400002-B5A3-F393-E0A9-E50E24DCCA9E - used for receiving data with "WRITE" | |
| Has a characteristic of: 6E400003-B5A3-F393-E0A9-E50E24DCCA9E - used to send data with "NOTIFY" |
| /** | |
| * truncate_html() | |
| * | |
| * Truncates a HTML string to a given length of _visisble_ (content) characters. | |
| * E.g. | |
| * "This is some <b>bold</b> text" has a visible/content length of 22 characters, | |
| * though the total string length is 29 characters. | |
| * This function allows you to limit the visible/content length whilst preserving any HTML formatting. | |
| * | |
| * @param string $html |
| <?php | |
| /* | |
| * Outputs a color (#000000) based Text input | |
| * | |
| * @param $text String of text | |
| * @param $min_brightness Integer between 0 and 100 | |
| * @param $spec Integer between 2-10, determines how unique each color will be | |
| */ | |
| function genColorCodeFromText($text,$min_brightness=100,$spec=10) |
| import crypto from 'crypto'; | |
| import querystring from 'querystring'; | |
| import path from 'path'; | |
| export function createCanonicalRequest( | |
| method, | |
| pathname, | |
| query, | |
| headers, | |
| payload, |
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); | |
| } |