Worked 2015-09-08 for Phoenix 1.0.1 on Dokku 0.3.25.
These instructions assume you've set up Dokku. If not, go find a tutorial for that part. My notes for setting it up on Digital Ocean.
Create a Dokku app:
// Copyright 2017, the Flutter project authors. Please see the AUTHORS file | |
// for details. All rights reserved. Use of this source code is governed by a | |
// BSD-style license that can be found in the LICENSE file. | |
import 'dart:async'; | |
import 'dart:collection'; | |
import 'package:cloud_firestore/cloud_firestore.dart'; | |
import 'package:flutter/foundation.dart'; | |
import 'package:flutter/material.dart'; |
import 'package:flutter/material.dart'; | |
// TODO: Continue investigating how to do scroll offset animation like this: | |
// https://dribbble.com/shots/2201752-Profile-Header-Interaction-Prototype | |
class CustomAppBar extends StatefulWidget { | |
final String title; | |
CustomAppBar({this.title}); |
package main | |
import ( | |
"fmt" | |
"time" | |
"github.com/gorilla/websocket" | |
) | |
module DOM | |
module NodeType | |
struct Text | |
property string | |
def initialize(@string : String) | |
end | |
end | |
struct Element |
############################################################################### | |
# Variables # | |
############################################################################### | |
variables: | |
DOKKU_HOST: 'host.com' | |
PROJECT_NAME: 'project_name' | |
############################################################################### | |
# Cache # | |
############################################################################### |
# Elixir is by far one of my Favorite programming languages so I decided to write this Flattener in Elixir. | |
# It may look similar to Ruby, but it most definitely is not Ruby. | |
defmodule Flattener do | |
def flatten([]), do: [] | |
# Takes the list head and adds the tail to the end of the list | |
# this gets repeated for each nested list inside the list and | |
# keeps adding the tail of each list to the end of the flattened list. | |
def flatten([h|t]), do: flatten(h) ++ flatten(t) | |
def flatten(h), do: [h] |
Worked 2015-09-08 for Phoenix 1.0.1 on Dokku 0.3.25.
These instructions assume you've set up Dokku. If not, go find a tutorial for that part. My notes for setting it up on Digital Ocean.
Create a Dokku app:
exports.config = { | |
files: { | |
javascripts: { | |
joinTo: 'app.js' | |
}, | |
stylesheets: { | |
joinTo: 'app.css' | |
}, | |
templates: { | |
joinTo: 'app.js' |
.dropdown { | |
background-imager: linear-gradient(50deg, #757575 0, #6f6f6f 20%, transparent 69%); | |
background-color:#999; | |
} |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |