Skip to content

Instantly share code, notes, and snippets.

View oknoorap's full-sized avatar
🐢
Working on faaast.design

Ribhararnus Pracutian oknoorap

🐢
Working on faaast.design
View GitHub Profile
@oknoorap
oknoorap / ml5.mjs
Last active December 6, 2022 14:16
DQN Agent Time-Series in Javascript
import ml5 from 'ml5';
import { TimeSeries, DataView } from 'pondjs';
import { DQN } from 'rl-js-dqn';
const data = await fetchTimeSeriesData();
const timeseries = new TimeSeries({
name: 'timeseries',
columns: ['time', 'value'],
points: data.map(d => [d.timestamp, d.value])
});
@oknoorap
oknoorap / api.json
Last active March 4, 2022 01:08
Test Data
{
"data": [
{
"id": "65a70f55-636b-43dd-ad4d-713ce0e2440a",
"text": "Qui esse dolores non ipsum libero non quos incidunt.",
"description": "Question without image, accept single answer without image",
"answers": [
{
"id": "60f4443a-fcde-436d-aa74-6bee1b49070c",
"text": "Et necessitatibus repudiandae rem molestias suscipit est quasi quas.",
@oknoorap
oknoorap / machine.js
Last active January 19, 2021 09:21
Generated by XState Viz: https://xstate.js.org/viz
const pawn = Machine({
id: 'pawn',
context: {
notation: 'p'
}
});
// const pieces = [pawn];
const setupBoard = async (context, event) => {
/'{> /\_____/\
____) (____ / o o \
//'--; ;--'\\ ( == ^ == )
///////\_/\\\\\\\ ) (
m m https://paypal.me/oknoorap
Like as usual, so many PHP devotees mad when people making
fun of their religion. 🥵 Why PHP people always immature.
https://t.co/3Mm7BXx1Ys
@oknoorap
oknoorap / verify.txt
Created November 7, 2017 01:12
Blockstack verify
Verifying my Blockstack ID is secured with the address 16nb8L334gsV7t1cWLcvKBQeeZjeypBdjo https://explorer.blockstack.org/address/16nb8L334gsV7t1cWLcvKBQeeZjeypBdjo
@oknoorap
oknoorap / test.md
Last active August 30, 2017 04:11
WordPress 4.8.1 Unknown SSL protocol error in connection to api.helpscout.net:443
$customer = array(
  'type' => 'customer',
  'email' => $customer_email
);

$fields = array(
	'mailbox' => array( 'id' => $mailbox_id ),
	'customer' => $customer,
	'subject' => $subject,
@oknoorap
oknoorap / keybase.md
Created February 9, 2017 08:46
keybase.md

Keybase proof

I hereby claim:

  • I am oknoorap on github.
  • I am oknoorap (https://keybase.io/oknoorap) on keybase.
  • I have a public key whose fingerprint is DF01 A8A6 2ECB 380A 3011 48E8 54C9 3EAF 81A1 D026

To claim this, I am signing this object:

@oknoorap
oknoorap / admin-redirect.php
Created September 7, 2016 02:14 — forked from kharissulistiyo/admin-redirect.php
Admin Page Redirection After WordPress Theme Activated
/**
* WordPress snippet
* Admin page redirection
* Put this inside theme setup function
*/
global $pagenow;
if ( is_admin() && 'themes.php' == $pagenow && isset( $_GET['activated'] ) ) {