Skip to content

Instantly share code, notes, and snippets.

Avatar
🍀
working

Niji nijikokun

🍀
working
  • Product Manager
  • San Diego, California
View GitHub Profile
@nijikokun
nijikokun / RMMZ_DataManager_Store.js
Created May 27, 2022 13:57
How to extend the RPG Maker MZ DataManager to store custom stuff for your plugin.
View RMMZ_DataManager_Store.js
//===========================================================================
// Extend DataManager to persist specific changes
//===========================================================================
const RMMZ_DataManager_makeSaveContents = DataManager.makeSaveContents;
const RMMZ_DataManager_extractSaveContents = DataManager.extractSaveContents;
const RMMZ_DataManager_onLoad = DataManager.onLoad;
DataManager.makeSaveContents = function() {
const contents = RMMZ_DataManager_makeSaveContents.call(this);
@nijikokun
nijikokun / example.md
Created May 12, 2020 00:30
Better Errors w/ Advanced Option
View example.md

Error Pulling Repository

401 Unauthorized

See More
HTTPError: 401 Unauthorized
at Function.discover (/some/path/to/file.js:7:32)
@nijikokun
nijikokun / kong-admin.oas.yaml
Created December 12, 2019 18:09
Kong Admin API OpenAPI Spec
View kong-admin.oas.yaml
openapi: 3.0.0
info:
version: '1.3'
title: Kong Admin API
license:
name: Apache 2.0
description: ''
contact:
name: Kong
servers:
@nijikokun
nijikokun / cla.md
Created November 7, 2018 00:02
Kong Contributor License Agreement
View cla.md

Kong Contributor License Agreement

Thank you for your interest in making a Contribution to a project of Kong Inc., a USA company with notice address at [251 Post St, 2nd Floor San Francisco, CA, 94108, USA] (“Kong” or “we”). In order to clarify the intellectual property license granted with Contributions from you, Kong must have an Individual Contributor License Agreement (“ICLA”) on file that has been signed by you, a developer of software or other technology (either an individual or an entity), indicating agreement to the license terms below. By electronically signing below, you are consenting to transact electronically and are entering into a binding contract, and you accept and agree to the following terms and conditions for your Contributions submitted Kong.

BEFORE SIGNING AND/OR CLICKING A BUTTON TO E-SIGN OR ACCEPT, CAREFULLY READ THE TERMS AND CONDITIONS OF THIS AGREEMENT AND ANY TERMS OF USE PROVIDED THROUGH THE SIGNING PROCESS.

If you are not authorized as set forth above, do not complete the

View fix-laravel.sh
sudo chmod -R guo+w storage
sudo chmod -R guo+w bootstrap/cache
View upgrade-to-php7.2.sh
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install -yqq php7.2 php7.2-common
sudo apt-get install -yqq php7.2-dom php7.2-cli php7.2-fpm php7.2-curl php7.2-gd php7.2-mysql php7.2-mbstring zip unzip
sudo service apache2 stop
sudo service nginx start
@nijikokun
nijikokun / karabiner-elements.fn-wasd-to-arrow-keys.json
Last active January 12, 2023 05:34
FN+WASD -> Arrow Keys (Simple key caps_lock to fn)
View karabiner-elements.fn-wasd-to-arrow-keys.json
{
"description": "caps_lock + w,a,s,d to arrow_keys",
"manipulators": [
{
"from": {
"key_code": "w",
"modifiers": {
"mandatory": [
"fn"
],
@nijikokun
nijikokun / TreeNode.js
Created July 6, 2017 08:24
Javascript TreeNode implementation
View TreeNode.js
export default class TreeNode {
constructor (value, canHaveChildren) {
this.canHaveChildren = canHaveChildren != null ? canHaveChildren : true
this.value = value
this.parent = null
this.children = []
}
isAncestor (node) {
if (node == null) {
@nijikokun
nijikokun / about.md
Last active March 15, 2017 00:20
XHR Promisified
View about.md

Fetch (xhr promisified)

Lightweight implementation of fetch api

Usage

import fetch from './fetch'
View keybase.md

Keybase proof

I hereby claim:

  • I am nijikokun on github.
  • I am nijikokun (https://keybase.io/nijikokun) on keybase.
  • I have a public key ASCN-6Z1Pj0Sf1qT1UObCD2O0PBGWGwS_O63onOGS4F7nQo

To claim this, I am signing this object: