Skip to content

Instantly share code, notes, and snippets.

View srinidhiprabandham's full-sized avatar

srinidhiprabandham

View GitHub Profile
Root privileges are required to start the server. Your system password may be requested...
Starting Nanobox :
Setting up custom docker network... :
Joining virtual network :
Preparing environment :
--------------------------------------------------------------------------------
+ HEADS UP:
+ This is the first build for this project and will take longer than usual.
$ cat boxfile.yml system
run.config:
# elixir runtime
engine: elixir
# we need nodejs in development
# ensure inotify exists for hot-code reloading
dev_packages:
- inotify-tools
@srinidhiprabandham
srinidhiprabandham / arabic_to_roman_converter.exs
Created May 26, 2017 09:07
This converts an Arabic number in the range 0 - 3,999 to a Roman Number
# Algorithm / Reference taken from http://www.blackwasp.co.uk/numbertoroman.aspx
#
defmodule ArabicToRomanConverter do
@moduledoc """
ArabicToRomanConverter converts a given Arabic number to a Roman Number. in the range 1 - 3999
EX:
$ elixir arabic_to_roman_converter.exs
"Enter the number to be converted to Roman: "
"5 in Roman is V"
"""
@srinidhiprabandham
srinidhiprabandham / board.png
Last active March 9, 2017 10:18
Action Cable concepts and demo
board.png

                                                     mmmmm                         m
                                                     #   "#  mmm    mmm    mmm   mm#mm
                                                     #mmmm" #"  #  "   #  #"  "    #
                                                     #   "m #""""  m"""#  #        #
                                                     #    " "#mm"  "mm"#  "#mm"    "mm

React is a JS framework that basically considers creating elements / Components and rendering them as and when need in an application.

React components use some thing called as state and props to handle data. > props ca