$ ssh <mydomain.com>
$ dokku apps:create
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import unittest | |
def compare_func(a, b): | |
return a == b | |
class TestCase(unittest.TestCase): | |
@classmethod | |
def setUpClass(cls): |
I have been struggling to start a new project with Phoenix 1.3 and the new vue-cli 3 for Vue.js. There are tons of example already but none of them suited my needs, because:
- I want to use the new Vue-cli to select the features that I want,
- I do NOT want to setup Webpack (I know, what a shame!). The new Vue-cli includes the new vue-cli-service, which uses an instance of webpack-dev-server, so you don't have to import it manually in your project.
- I do not want to use Brunch.
Assuming that you have Elixir and Phoenix 1.3 are both installed, let's build our new App.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
</head> | |
<body> | |
<script> | |
var test = function (str) { | |
with(Math) { // whatever | |
var scalar = parseFloat(str); | |
var unit = str.replace(/-?\d+(\.\d*)?/g, ""); |