Skip to content

Instantly share code, notes, and snippets.

@henrik
henrik / README.markdown
Created June 26, 2012 07:30
This is how we test that all translation keys match up between locales, in Rails.

This is how we test that all translation keys match up between locales.

Stuff that only goes in one locale (such as an admin section) or that can't be translated yet (if you use external translators) can simply go in files that don't match the path "config/locales/??.yml", like "config/locales/wip.fo.yml".

task("pre:compile", function(event,logger) {
var wrench = require("wrench"),
fs = require("fs"),
jade = require("jade"),
view_root = event.dir.views,
path = require("path"),
coffee = require("coffee-script");
event.alloyConfig.xml = [];
event.alloyConfig.coffee = [];
@polidog
polidog / alloy.jmk(CoffeeScript+jade+stylus)
Last active December 14, 2015 21:39
alloyでCoffessScriptとjadeとstylusを使う為のjmkファイルですよ^^ [追記] event.alloyConfig.deploytypeがdevelopmentの時は基本的にコンパイルしたjs,tss,xmlを消さないように修正
task("pre:compile", function(event,logger) {
var wrench = require("wrench"),
fs = require("fs"),
jade = require("jade"),
path = require("path"),
coffee = require("coffee-script"),
stylus = require("stylus");
event.alloyConfig.coffee = [];
event.alloyConfig.jade = [];
@hakobe
hakobe / backbone_sample.html
Last active December 15, 2015 04:59
3種類の方式のクライアントサイドMVCをつかった疑似TODOアプリ実装
<!DOCTYPE html>
<html>
<meta charset="UTF-8">
<head>
<style>
body {
margin : 0;
padding : 0;
background-color: #eee;
font-size: 25px;