Skip to content

Instantly share code, notes, and snippets.

@vladimir-e
vladimir-e / webpack.config.js
Created December 28, 2017 05:11
Basic webpack setup for phoenix project
const path = require('path');
const ExtractTextPlugin = require("extract-text-webpack-plugin");
const CopyWebpackPlugin = require("copy-webpack-plugin");
module.exports = {
entry: ["./css/web.css", "./js/web.js"],
output: {
path: path.resolve(__dirname, "../priv/static"),
filename: "js/web.js"
},
@vladimir-e
vladimir-e / install.sh
Last active July 9, 2019 21:22
Elixir machine
https://medium.com/coletiv-stories/how-to-automate-your-elixir-projects-deployment-into-aws-9ecbbafb403d
# production server
sudo vim /etc/default/locale
LANG="en_US.UTF-8"
LANGUAGE="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb && sudo dpkg -i erlang-solutions_1.0_all.deb
sudo apt-get update
@vladimir-e
vladimir-e / machine.js
Created February 24, 2020 16:58
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@vladimir-e
vladimir-e / machine.js
Created March 31, 2020 16:19
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions