Skip to content

Instantly share code, notes, and snippets.

@jimjam88
jimjam88 / japanese-lorem.txt
Created October 6, 2015 23:21
Japanese Lorem Ipsum
ルビ ンツア ウェブア ふべからず セシビリテ, どら トモデル プロファイル とセマンティック めよう, 内准剛 んア を始めよう プロトコル プロファイル 展久 プロセスド 情報セット トとして使 ップに, クほ にによる ウェブコ クセシビリティ ツアク, ンツアクセシ ビスとレイティ クセシビリティ での にする どら セシビリ マイクロソフト のため, め「こを ウェブコ ウェブコンテン 健二仕 エム めよう での にによる ビリティ イドライン, セシビ のな イドライン アキテクチャ, のため プロトコル クリック」 どら アクセシビ マイクロソフト クセシビリティ シトを どら, セシビ ティのい セシビリ サイトをアクセシブ での
エム にによる キュメント 拡張可 ンツアクセシ ベルの仕と信 を始めてみよう セシビ 展久, 併団イ ルのアク プロトコル オサリングツ ネッ ィに への切りえ のイベント クセシビリティ 併団イ, のイベント コンテンツアクセ サイト作成のヒント クセス ィに, エム ップに アキテクチャ ルにするために ウェ 丸山亮仕 を始めてみよう ツアク, シン可な ブコンテ ユザエ よる, アク セシビリティ レイテリング ンタネット協会 にする トとして使 レイティングサ を始めてみよう イビ ップに, コンテン プロセスド への切りえ どら わった, をマ ブコンテ リア式会 インタラクション ンツア
イビ ウェブコ シビリティ シトを, んア 併団イ ウェブコ プロセスド とセマンティック ラベラ への切りえ ジェントのアクセシ ィに, クセス での ビリティ コンテン, 展久 拡張可 コンテン ガイドライン ク付け のな クアップ オブジェク ルにするために にによる ウェブコ ビリティにる 拡張可 展久, クほ およびそのマ リティガイドライン わった クセス にによる イドライン レイティングサ ンテ, クセス どら ンツアクセシ ボキャブラリ ングシステム, リア式会 クリック」 健二仕 ルビ 拡張可 での およびそのマ マイクロソフト, エム ク付け ビリティ トモデル テキストマ, 内准剛 んア め「こを 丸山亮仕
併団イ 寛会 を始めよう ボキャブラリ サイト作成のヒント, ロジ スタイル テキストマ テストスイト トワク, ンテ マルチメ アク
@jimjam88
jimjam88 / counties.php
Last active August 26, 2015 11:24 — forked from stevelacey/counties.php
UK Counties Array
<?php
$areas = [
'England' => [
'Avon',
'Bedfordshire',
'Berkshire',
'Buckinghamshire',
'Cambridgeshire',
'Cheshire',
@jimjam88
jimjam88 / Poisson.php
Last active July 2, 2017 16:33
Simple PHP Implementation of the Poisson Distribution concept
<?php
namespace Poisson;
class Poisson
{
/**
* Factorial function
*
* @param integer $number
@jimjam88
jimjam88 / php-configure.sh
Last active August 29, 2015 14:05
PHP Configure
brew install mysql libjpeg libpng gd mcrypt openssl;
./configure \
--prefix=/usr \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--sysconfdir=/private/etc \
--with-apxs2=/usr/sbin/apxs \
--enable-cli \
--with-config-file-path=/etc \
--with-libxml-dir=/usr \
@jimjam88
jimjam88 / .gitconfig
Created August 22, 2014 19:42
Git config
[user]
email =
name =
[alias]
ci = commit
st = status -sb
co = checkout
di = diff
dis = diff --staged
@jimjam88
jimjam88 / .hgrc
Created August 22, 2014 19:41
hgrc
[ui]
username =
verbose = True
[auth]
storm.prefix =
storm.username =
storm.password =
[color]
@jimjam88
jimjam88 / .hg-prompt.sh
Created August 22, 2014 19:39
Mercurial branch in command prompt
function hg_in_repo() {
hg branch 2> /dev/null | awk '{print "on "}'
}
function hg_dirty() {
hg status --no-color 2> /dev/null \
| awk '$1 == "?" { print "?" } $1 != "?" { print "!" }' \
| sort | uniq | head -c1
}
@jimjam88
jimjam88 / .vimrc
Created August 22, 2014 19:38
vimrc
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/vundle/
filetype plugin indent on " required!
"
" Brief help
" :BundleList - list configured bundles
" :BundleInstall(!) - install(update) bundles
@jimjam88
jimjam88 / convert-date.java
Created January 23, 2014 11:36
Java method to convert a date from one format to another
// Imports required
import java.text.SimpleDateFormat;
import java.text.ParseException;
/**
* Convert a date to a different format.
*
* @param currentFormat The current date format
* @param newFormat The new date format
* @param subject The date that's going to be converted
@jimjam88
jimjam88 / read-file.java
Created January 22, 2014 14:30
Read the contents of a file into a string
// Imports required
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
/**
* Read in a file.
*
* @param path The explicit path to the file to read
* @return The contents of the file as a string