#Phoenix 1.1.x to 1.2.0 Upgrade Instructions
To generate new projects as 1.2.0, install the new mix archive:
mix archive.install https://github.com/phoenixframework/archives/raw/master/phoenix_new.ez
| -module(hoge). | |
| -export([gen_external_fun/0, gen_local_fun/0, gen_anonymouns_fun/0]). | |
| -export([hello/0]). | |
| gen_external_fun() -> % 公開関数への参照を返す | |
| fun hoge:hello/0. % これだけが完全修飾形式での参照 (= 複数回のコードローディングを跨いでも安全) | |
| gen_local_fun() -> % ローカル関数への参照を返す | |
| fun hello/0. |
| # To show hot code uploading, we first need to build a simple phoenix project so we can see it happen in real time. | |
| # Start by making a new phoenix project | |
| $ mix phoenix.new hotcode | |
| # Go into the directory | |
| $ cd hotcode | |
| # Add exrm dependency to mix.exs file | |
| {:exrm, "~> 1.0.3"} |
Custom recipe to get macOS 10.12 Sierra running from scratch, setup applications and developer environment. This is very similar (and currently mostly the same) as my 10.11 El Capitan setup recipe and 10.10 Yosemite setup recipe. I am currently tweaking this for 10.12 Sierra and expect to refine this gist over the next few weeks.
I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. I generally reinstall each computer from scratch every 6 months, and I do not perform upgrades between releases.
This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.
You are encouraged to fork this and modify it to your heart's content to match your o
| package com.github.kmizu.nub; | |
| import java.util.*; | |
| public class JavaScriptGenerator implements AstNode.ExpressionVisitor<Object> { | |
| private Set<String> functions = new HashSet<>(); | |
| private StringBuilder stringBuilder = new StringBuilder(); |