function startGesture(gesture) { | |
console.log("start", gesture); | |
} | |
function doGesture(gesture) { | |
console.log("do", gesture); | |
} | |
function endGesture(g) { | |
console.log("end", gesture); | |
} |
https://doc.linkurious.com/ogma/latest/playground/index.html#H4sIAHG0VmMAA7SdXZNdt5We/0qHcyGqIlPEx94AGM1UHNuVXGTGU/HcpExftNiHZM80u1ndh5Ydlf571ulzcNQQXu71UKnMlEvkJvpt7LUXPh5gYeHHZ/vL7x+evfqz/eF6f7N79urZ9e3V7m8v3u8/3Dz75tmbu9v97nZvj7/7T7//4+/+7X//6x8uDv/0T69vvzv99+Liu/e7y6vHP9mfP+z2lxdv3l/eP+z2//j62af929/U188uvrV/P5W4ub79j4v93z/u7J/3u7/tv33z8GAl7nc39uBh//eb3cP73W5vj97f796en714LHb8hd+ef+N3399d/b3/7qvrv15cX9lPvLu//Pj+N4fKX17f7u7tx7771v6xl3t4c3/9cX/xcP/Gyh7f998P2t99e/yX0y85SdtvO76p2eOv17sf/rS/3Juhbj/d3Pz0zS/t9u8Pg9WuP3y8u99f/PHdh8uLt/d3Hy6++q+H1/90f3336eHbO3v81X95fXsq9VjrU7EX3z7+zfTubr96fWuKD/uLQ/mLf7y43f3wqPj8x0M9z2/56uKrX7z3V98cCtx93F/bj7+6eCx+cfH95Zv/eHd/9+n26nd3N3eHH/uHGKP9kouLn17f/vS1Vaj/wt3Vu93/+nSzs196+N0vTl/i8urqD6d/6XU4Cv3w/nq/O/7Wh/eXH3f26PL+/u6H46Mfrq/2719dmNo/XexevNvt//C3/f3uw/X+evfw/OsX97urT292z59fvnnzzcXt11bK/nTxny9uD0V/v3t3v9s9//rbePHNxcuvf1HPx3rpiv7L3dWxoofybz/dvjkYwyr84eOn/e6/7fY/7Ha3t7sHq8DRPkfBW/uphy5mv/6gYkVMopc4mOZpiYNBxhLf/yzey13evLu7v96///Dw4sm/Hm14cfylj5a6OMqf/nx1fb97s99dvbp4e3nzsDs9vb27/3B |
const clientWaitAsync = function (gl, sync, flags = 0, interval_ms = 10) { | |
return new Promise<void>(function (resolve, reject) { | |
const check = () => { | |
const res = gl.clientWaitSync(sync, flags, 0); | |
if (res === gl.WAIT_FAILED) { | |
reject(); | |
return; | |
} | |
if (res === gl.TIMEOUT_EXPIRED) { | |
setTimeout(check, interval_ms); |
We wanted to find out if we can generate movie screenplays or short story synopsises using artificial intelligence. The idea was to see if we can train it not only to follow the certain text style, but make it produce new ideas and deliver them in a structured way.
We have explored the artificial intelligence models for text generation. We have focused on the latest most recent and advanced models capable of producing and imitating natural language. The latest models are GPT-3 by OpenAI and GPT-J by EleutherAI. They are very heavy and complex models trained to predict and continue text based on their language model and the provided context. Both have billions of internal parameters and are able to produce about 500-1000 words based on the context that is passed in as a prompt or question, few parameters and the adjustments made by feeding them different datasets before using them. Both are based on the same scientific research but trained by different companies on different gig
type Id = string | number; | |
interface Node { | |
id: Id; | |
color: string; | |
radius: number; | |
x: number; | |
y: number; | |
strokeWidth?: number; | |
strokeColor?: string; |
export class Node<T>{ | |
data: T; | |
prev: Node<T> = null; | |
next: Node<T> = null; | |
constructor(data: T) { | |
this.data = data; | |
} | |
} |
const url = `https://maps.google.com`; | |
fetch(`https://is.gd/create.php?format=simple&url=${url}`) | |
.then(r => r.text()) | |
.then(r => console.log(r)); |
function intersection(...lists) { | |
const result = []; | |
const resultLUT = {}; | |
for(let i = 0; i < lists.length; i++) { | |
const currentList = lists[i]; | |
for(let y = 0; y < currentList.length; y++) { | |
const currentValue = currentList[y]; | |
if(!resultLUT[currentValue]) { | |
let existsInAll = true; |
import React, { useReducer, Reducer, createContext, ReactNode, Dispatch } from "react"; | |
type Action = <A>(dispatch: Dispatch<A>) => Function; | |
export default function <S, A extends Action>( | |
reducer: Reducer<S, A>, | |
actions: Record<string, A>, | |
initialState: S | |
) { | |
const Context = createContext<S>({} as S); |