Skip to content

Instantly share code, notes, and snippets.

View nijikokun's full-sized avatar
🍀
working

Niji nijikokun

🍀
working
  • Product Manager
  • San Diego, California
View GitHub Profile
@barneycarroll
barneycarroll / onkey.js
Created March 28, 2015 17:42
onkeypress : onKey( 'enter', save ), etc
var onKey = (function(){
var keymap = {
'enter' : 13,
'space' : 31,
'tab' : 9,
'esc' : 27,
'left' : 37,
'up' : 38,
'right' : 39,
'down' : 40
@barneycarroll
barneycarroll / multi.js
Last active March 23, 2016 23:43
Execute multiple functions where one is expected. Useful for event handling.
function multi(){
var handlers = Array.prototype.filter.call( arguments, function( x ){
return x instanceof Function
} )
return function handle(){
for( var i = 0; i < handlers.length; i++ )
handlers[ i ].apply( this, arguments )
}
}
@nijikokun
nijikokun / about.md
Last active June 25, 2020 13:57
Revival minimal github pages theme (original by @orderedlist)

Revival Minimal Theme for Github Pages

I was tired of the unreadable minimal theme by @orderedlist so I overhauled the font sizing and typography to generate this beautiful modern style for forward thinking open source projects to use.

If you've ever used Gitbook, you'll be familiar with my modern / crisp styling and attention to detail.

Preview

Install

@nijikokun
nijikokun / about.md
Last active April 5, 2017 13:31
Credit Card Validation & Credit Card Type Check & Credit Card Cleaner & Credit Card Security Code Validator. Framework Agnostic.

credit-card.js

Allows you to easily validate, clean, check type of card based on number, and verify the security code. It's small, has the fastest luhn implementation, works for all major cards without complex expressions, framework agnostic, and doesn't cost your company a small fortune to use like other libraries.

Easily hook it up to any framework, any code, easy to port.

Usage

Type

@nijikokun
nijikokun / about.md
Last active June 2, 2016 20:22
A small, basic, generic game framework / game with no potential being made for fun using weird javascript techniques. Also, I made my own commenting style based on KSS.

GOD.js

Game oriented development framework.

Usage

var entity = god.entity({
  name: "Nijikokun"
}).implement("health").implement("movement");
@nijikokun
nijikokun / Common.java.php
Created August 9, 2011 03:51
php.java - Objects ported to PHP for many reasons...
<?php
/**
* Commonly needed functions for some Java -> PHP things to function properly.
*
* @author Nijikokun <nijikokun@shortmail.com>
* @copyright AOL <http://aol.nexua.org>
* @package Common
* @version 1.0.1
* @since p.j1
*/
@nijikokun
nijikokun / rtd.rb
Created July 24, 2011 05:57
Roll the dice for Minecraft RubyBukkit, TF2 style. [VERSION 0.13] (Toxic coming soon...)
# Boring information.
# Its made by @Nijikokun <nijikokun@shortmail.com>
# Copyright (2011)
# AOL License <http://aol.nexua.org>
Plugin.is {
name "Roll The Dice"
main "RTD"
version "0.1"
author "Nijikokun"
commands :rtd => {
@nijikokun
nijikokun / css-notes.css
Created July 23, 2011 02:30
CSS & CSS3 Notes, Constantly Used, Very helpful.
/*
* CSS & CSS3 Notepad
*
* These were made for my personal usage, as I constantly use them.
* I have decided to open-source the file.
*
* Some is very useful, other things may be re-dundant.
*
* Once again, these are simply my css notes.
*
@nijikokun
nijikokun / Testers.java
Created November 2, 2010 00:12
Default Java Plugin for hMod w/ All functions / listeners.
import java.util.logging.Logger;
/**
*
* @author Nijiko
*/
public class Testers extends Plugin {
private Listener l = new Listener(this);
protected static final Logger log = Logger.getLogger("Minecraft");
private String name = "MyPlugin";