Skip to content

Instantly share code, notes, and snippets.

View jameshandsoame's full-sized avatar

jameshandsoame

View GitHub Profile
@jameshandsoame
jameshandsoame / IpinService.java
Created July 20, 2017 02:00 — forked from ygpark2/IpinService.java
Ipin 서비스 자바 클래스
package com.kdn.evcs.service;
import Kisinfo.Check.IPINClient;
import NiceID.Check.CPClient;
import com.kdn.evcs.common.BaseConstant;
import com.kdn.evcs.common.LogHelper;
import org.springframework.stereotype.Service;
import java.util.HashMap;
import java.util.Map;
@jameshandsoame
jameshandsoame / sinusoid3
Created July 20, 2017 02:00 — forked from StefanPetrick/sinusoid3
RGB Sinusoids
float speed = 0.3; // speed of the movement along the Lissajous curves
float size = 3; // amplitude of the curves
for (uint8_t y = 0; y < Height; y++) {
for (uint8_t x = 0; x < Width; x++) {
float cx = y + float(size * (sinf (float(speed * 0.003 * float(millis() ))) ) ) - 8; // the 8 centers the middle on a 16x16
float cy = x + float(size * (cosf (float(speed * 0.0022 * float(millis()))) ) ) - 8;
float v = 127 * (1 + sinf ( sqrtf ( ((cx * cx) + (cy * cy)) ) ));
uint8_t data = v;
@jameshandsoame
jameshandsoame / datatables.set_filter_debounce.js
Created July 20, 2017 02:00 — forked from dtjm/datatables.set_filter_debounce.js
Search filter debounce for Allan Jardine's DataTables plugin for jQuery. Requires Underscore.js
jQuery.fn.dataTableExt.oApi.fnSetFilterDebounce = function ( oSettings, iDelay ) {
/*
* Type: Plugin for DataTables (www.datatables.net) JQuery plugin.
* Name: dataTableExt.oApi.fnSetFilterDebounce
* Version: 0.01
* Description: Enables filtration debouncing which prevents filter from
* happening until keypresses have stopped for [iDelay] milliseconds.
* Uses code from Zygimantas' fnSetFilteringDelay
* Inputs: object:oSettings - dataTables settings object
@jameshandsoame
jameshandsoame / 0_reuse_code.js
Created July 20, 2017 02:00
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@jameshandsoame
jameshandsoame / wp-query-ref.php
Created July 20, 2017 01:59 — forked from luetkemj/wp-query-ref.php
WP: Query $args
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php
*/
$args = array(

Introduction to Higher-Order Functions

Lessons

Slides 1

Slides 2

Two Forms of Functions

@jameshandsoame
jameshandsoame / Makefile
Created July 20, 2017 01:59 — forked from hikobae/assets-json.go
Go: bindata で埋め込んだ JSON ファイルを読み出す
all: assets-json
assets-json:
go-bindata -o bindata.go assets
go build