This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ember.Handlebars.registerBoundHelper('formatDate', (date, format) -> | |
moment(date).format(format); | |
) | |
Ember.Handlebars.registerBoundHelper('formatNumber', (number, format) -> | |
numeral(number).format(format); | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Isolate = { | |
/** | |
@param {Class} type | |
@return {DS.Model} | |
*/ | |
createNew : function (type){ | |
var new_model = type._create({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#_plugins/erb_tag.rb | |
require 'erb' | |
require 'ostruct' | |
module Jekyll | |
module Tags | |
class ErbTag < Liquid::Block | |
def initialize(tag_name, markup, tokens) | |
super |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
class Sound50Table | |
HIRAGANA = "あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもや ゆ よらりるれろわ を ん" | |
KATAKANA = "アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤ ユ ヨラリルレロワ ヲ ン" | |
class << self | |
def make_table(strings) | |
strings.split(//u).each_slice(5).to_a.transpose.map(&:reverse) | |
end |