Convert word to initial form.
http://text-processing.com/docs/stem.html
curl -d "text=gaming" http://text-processing.com/api/stem/
{"text": "game"}
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); | |
} |
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! | |
} |
// Usage | |
const cart = new Cart({ | |
priceTemplate: '{price} UAH', | |
completeOrder(order) { | |
return Promise.resolve({ success: true }); | |
}, | |
fetchTranslation(translation) { | |
return Promise.resolve({}); | |
}, |
<button type="button" id="share">Share</button> | |
<canvas id="myCanvas"></canvas> | |
<script> | |
var canvas = document.getElementById('myCanvas'), | |
ctx = canvas.getContext('2d'), | |
image = new Image(); | |
var file; |
<button> | |
Click | |
</button> |
// ==UserScript== | |
// @name Google Search Better Privacy | |
// @description Delete unnecessary params and add useful params on Google Search. | |
// @version 0.0.4 | |
// @include http://*.google.*/search* | |
// @include http://*.google.*/imgres* | |
// @include https://*.google.*/search* | |
// @include https://*.google.*/imgres* | |
// @exclude http://play.google.com/* | |
// @exclude http://mail.google.com/* |