Gemfile(or Gemfile.lock)の記述に従って依存gemをシステムにインストール.
$ bundle install
{ | |
/* | |
* UI関係 | |
*/ | |
// カラー&スキーマ | |
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", // カラー | |
"theme": "Soda Dark.sublime-theme", // スキーマ | |
// カーソルのスタイル ("smooth", "phase", "blink", "wide", "solid") | |
"caret_style": "smooth", |
スタートアップ企業 Silk が、Haskellを採用した理由。
http://engineering.silk.co/post/31920990633/why-we-use-haskell
As a newly started company, we have a lot of technical decisions to make. One of the important ones is the choice of a programming language. Since we’re building a web application, this goes for both the client (i.e. the web browser) and the server.
新しく始めた会社として、我々はたくさんの技術的決定を行わなければなりません。中でも重要なのは、プログラミング言語の選択です。我々はウェブアプリケーションを作っていたので、この選択がクライアント(Webブラウザなど)とサーバの両方で必要になります。
On the client, there wasn’t much discussion. Javascript is the only viable choice, unless you want to use Flash or similar plugin-based models. But on the server, we had more freedom. Popular choices for web applications are dynamically typed languages like Ruby, Python and PHP, and statically typed languages like Java and C#.
server { | |
listen 80; | |
root /var/www/yourdomain.com/public; | |
index index.html index.htm; | |
server_name yourdomain.com; | |
location / { | |
default_type "text/html"; |
package main | |
import ( | |
"flag" | |
"fmt" | |
"net/http" | |
"github.com/codegangsta/martini" | |
"github.com/garyburd/redigo/redis" | |
"github.com/martini-contrib/render" |
#Simple Authentication with Bcrypt
This tutorial is for adding authentication to a vanilla Ruby on Rails app using Bcrypt and has_secure_password.
The steps below are based on Ryan Bates's approach from Railscast #250 Authentication from Scratch (revised).
You can see the final source code here: repo. I began with a stock rails app using rails new gif_vault
##Steps
#!/bin/sh | |
# Environment list | |
# $GOOS $GOARCH | |
# darwin 386 | |
# darwin amd64 | |
# freebsd 386 | |
# freebsd amd64 | |
# freebsd arm | |
# linux 386 |
#!/bin/sh | |
# | |
# Orinally made by Lovell Fuller for sharp | |
# https://github.com/lovell/sharp | |
# | |
# Usage: | |
# curl -s https://gist.githubusercontent.com/h2non/89bb2f87c6499d0b25f1/raw/bf3d0743107f02f5db2b93c53f7f0e07a1c33112/libvips-installer.sh | sudo bash - | |
# |