This is now an actual repo:
var express = require('express') | |
, mapRouter = require('./express-mapRouter') | |
, app = express.createServer() | |
, routesDir = __dirname + '/routes'; | |
// 'GET /' : 'root:index' はこれと同じ | |
// var root = require('./routes/root'); | |
// app.get('/', root.index); | |
var routesMap = { | |
'GET /' : 'root:index' |
# | |
# See also: http://almosteffortless.com/2008/12/11/easy-upload-via-url-with-paperclip/ | |
# | |
# Allow "uploads via url" with Rails and Paperclip | |
# | |
# http://www.thoughtbot.com/projects/paperclip | |
# http://github.com/thoughtbot/paperclip/tree/master | |
# http://groups.google.com/group/paperclip-plugin/browse_thread/thread/456401eb93135095 | |
# | |
# This example is designed to work with a "Photo" model that has an "Image" attachment |
/* Exercise: Loops and Functions #43 */ | |
package main | |
import ( | |
"fmt" | |
"math" | |
) | |
func Sqrt(x float64) float64 { | |
z := float64(2.) |
An ongoing project to catalogue all of these sneaky, hidden, bleeding edge selectors as I prepare my JSConf EU 2012 talk.
Everything is broken up by tag, but within each the selectors aren't particularly ordered.
I have not tested/verified all of these. Have I missed some or got it wrong? Let me know. - A
A friendly reminder that you may need to set this property on your target/selected element to get the styling results you want:
-webkit-appearance:none;
This article has been given a more permanent home on my blog. Also, since it was first written, the development of the Promises/A+ specification has made the original emphasis on Promises/A seem somewhat outdated.
Promises are a software abstraction that makes working with asynchronous operations much more pleasant. In the most basic definition, your code will move from continuation-passing style:
getTweetsFor("domenic", function (err, results) {
// the rest of your code goes here.
# lib/tasks/deploy.rake | |
namespace :deploy do | |
desc 'Deploy to staging environment' | |
task :staging do | |
exec 'mina deploy -f config/deploy/staging.rb' | |
end | |
end |
I'm having trouble understanding the benefit of require.js. Can you help me out? I imagine other developers have a similar interest.
From Require.js - Why AMD:
The AMD format comes from wanting a module format that was better than today's "write a bunch of script tags with implicit dependencies that you have to manually order"
I don't quite understand why this methodology is so bad. The difficult part is that you have to manually order dependencies. But the benefit is that you don't have an additional layer of abstraction.
#SOURCE https://gist.github.com/orzccc/3104030 | |
ja: | |
devise: | |
confirmations: | |
confirmed: 'アカウントを登録しました。' | |
# confirmed: 'Your account was successfully confirmed. You are now signed in.' | |
send_instructions: '登録方法を数分以内にメールでご連絡します。' | |
# send_instructions: 'You will receive an email with instructions about how to confirm your account in a few minutes.' | |
send_paranoid_instructions: 'もしあなたのEメールアドレスが見つかった場合、本人確認についてのメールが数分以内に送られます。' |