Phoenix 1.5 requires Elixir >= 1.7. Be sure your existing version is up to date by running elixir -v on the command line.
$ mix archive.uninstall phx_new
$ mix archive.install hex phx_new 1.5.0Example:
zsh-5.7.1-1-x86_64.pkg.tar.xz
| body { | |
| text-align: justify; | |
| } | |
| code, pre { | |
| font-family: "Hack", monospace; | |
| } | |
| h1, h2, h3, h4, h5, h6 { | |
| text-align: left; |
| #!/usr/bin/env bash | |
| # https://docs.docker.com/install/linux/docker-ce/ubuntu/ | |
| sudo apt-get install apt-transport-https ca-certificates curl software-properties-common | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
| sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable" | |
| sudo apt-get update | |
| sudo apt-get install docker-ce | |
| # https://docs.docker.com/compose/install/ |
| //server/controllers/_ticket-control.js | |
| 'use strict'; | |
| const Tickets = require('../models/tickets'); | |
| //=================== | |
| // Create Tickets Route | |
| //=================== | |
| exports.createTicket = function(req, res, next) { |
| brew install caskroom/cask/brew-cask | |
| brew cask install atom | |
| apm install linter # Base linter | |
| apm install linter-ruby | |
| apm install linter-scss-lint | |
| apm install linter-coffeelint | |
| apm install linter-rubocop | |
| apm install linter-haml |
| require 'net/http' | |
| require 'json' | |
| require 'uri' | |
| @token = '' | |
| def list_files | |
| ts_to = (Time.now - 30 * 24 * 60 * 60).to_i # 30 days ago | |
| params = { | |
| token: @token, |
First, Create a folder inside of lib called seeds
Put your CSV file example.csv into the lib/seeds folder. In the example below, the file is called real_estate_transactions.csv
Make sure you've created a resource with the appropriate columns to match your seed data. The names don't have to match up.
| import UIKit | |
| class UIStoryboardSegueFromRight: UIStoryboardSegue { | |
| override func perform() | |
| { | |
| let src = self.sourceViewController as UIViewController | |
| let dst = self.destinationViewController as UIViewController | |
| src.view.superview?.insertSubview(dst.view, aboveSubview: src.view) |
| extension NSURL { | |
| func getKeyVals() -> Dictionary<String, String>? { | |
| var results = [String:String]() | |
| var keyValues = self.query?.componentsSeparatedByString("&") | |
| if keyValues?.count > 0 { | |
| for pair in keyValues! { | |
| let kv = pair.componentsSeparatedByString("=") | |
| if kv.count > 1 { | |
| results.updateValue(kv[1], forKey: kv[0]) | |
| } |