Skip to content

Instantly share code, notes, and snippets.

View kt3k's full-sized avatar

Yoshiya Hinosawa kt3k

View GitHub Profile
@kt3k
kt3k / kjv.json
Created October 26, 2013 03:50
a plan of KJV.json
{
"title": "King James Version (1769)",
"id": "KJV",
"books": [
{
"title": "THE FIRST BOOK OF MOSES CALLED GENESIS",
"id": "Gen",
"chapters": [
{
"title": "Chapter 1.",
@kt3k
kt3k / test.csv
Created October 26, 2013 06:57
test
id key valu
1 2 3
4 5 6
@kt3k
kt3k / gist:8178597
Last active January 1, 2016 17:39
DDD building blocks
Entity
Value Object
Aggregate
Repository
Factory
Service
Specification
@kt3k
kt3k / BankAccount.java
Last active March 20, 2017 02:47
BankAccount DCI example in Java
package org.kt3k.bankaccount;
public class BankAccount {
private String id;
private Integer balance;
public BankAccount(String id, Integer balance) {
this.id = id;
this.balance = balance;
@kt3k
kt3k / straw-ios-howto.md
Last active August 29, 2015 14:07
How to create straw-ios service (WIP)

Objective-C implementation

  • Create "Cocoa Touch Static Library" Project using Xcode
  • git init
  • vi .gitignore ; xcuserdata
  • make scheme shared
  • remove redundant code, for example, auto-generated comments
  • Go to the created directory, and then write Podfile, and then pod install
    • vi Podfile ; pod install
  • Add Pods/Pods.xcconfig to test target (in Xcode)
  • initial commit!
@kt3k
kt3k / dice.js
Last active August 29, 2015 14:08
random functions
var dice = function (n) {
return Math.floor(Math.random() * n);
};
var coinToss = function () { return dice(2); };
var sample = function (array) { return arguments[dice(arguments.length)]; };
palette set for LD proj
@kt3k
kt3k / paletteSet.json
Last active August 29, 2015 14:08
Example palette set
{
"author": "kt3k",
"description": "An example color palette.",
"palette": [
{
"name": "grey",
"description": "basic colors",
"colors": [
"#111111",
"#333333",
Color palette of raspberry pi logo
Color palette for material design, from http://www.google.com/design/spec/material-design/introduction.html