NOTE: This post now lives (and kept up to date) on my blog: http://hakunin.com/rails3-load-paths
Do nothing. All files in this dir are eager loaded in production and lazy loaded in development by default.
FROM ubuntu:16.04 | |
RUN apt-get update | |
RUN apt-get install -y git wget curl build-essential | |
RUN wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb && dpkg -i erlang-solutions_1.0_all.deb | |
RUN apt-get update | |
RUN apt-get install erlang -y | |
RUN apt-get install -y elixir | |
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - |
;; please install web-mode | |
;; in your .emacs.d/init.el | |
(add-to-list 'auto-mode-alist '(".*/react/.*\\.js[x]?\\'" . web-mode)) | |
(setq web-mode-content-types-alist | |
'(("jsx" . "/.*/react/.*\\.js[x]?\\'"))) |
defmodule Absinthe.Ecto do | |
import Absinthe.Resolution.Helpers | |
@moduledoc """ | |
Provides some helper functions for easy batching of ecto assocations | |
These functions all make use of the batch plugin found in Absinthe, they're | |
merely just some helpful ways to use this plugin in the context of simple ecto | |
associations. |
package cn.glassx.ngk.app; | |
import android.app.Activity; | |
import android.os.Bundle; | |
import android.view.Menu; | |
import android.view.View; | |
import android.widget.TextView; | |
import com.google.android.glass.widget.CardScrollView; | |
import java.util.ArrayList; |
NOTE: This post now lives (and kept up to date) on my blog: http://hakunin.com/rails3-load-paths
Do nothing. All files in this dir are eager loaded in production and lazy loaded in development by default.
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:0.6.+' | |
} | |
} | |
apply plugin: 'android' |
var config = require('./config.json') | |
var environment = process.env.NODE_ENV || 'development' | |
var databaseConfig = config[environment] | |
var Sequelize = require('sequelize') | |
var sequelize = new Sequelize(databaseConfig.database, | |
databaseConfig.username, databaseConfig.password, { | |
host: databaseConfig.host, | |
dialect: databaseConfig.dialect, |
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:0.6.+' | |
} | |
} | |
apply plugin: 'android' |
# coding: utf-8 | |
gsub_file "Gemfile", /https:/, "http:" | |
gem 'devise' | |
gem "cancan", "~> 1.6.10" | |
gem "mongoid", git: "https://github.com/mongoid/mongoid.git", ref: "85e146637503522939b3a6b942c84d1bbc55c00a" | |
gem 'carrierwave', '0.6.2' | |
gem 'mini_magick','3.3', require: false |
require 'mina/bundler' | |
require 'mina/rails' | |
require 'mina/git' | |
require 'mina/rvm' # for rvm support. (http://rvm.io) | |
set :domain, 'xxx.xxx.xxx' | |
set :deploy_to, '/home/xxxx/xxxx' | |
set :repository, 'git@xxxx' | |
set :branch, 'master' | |
set :shared_paths, ['config/database.yml', 'log'] |