Skip to content

Instantly share code, notes, and snippets.

@dskecse
Last active October 12, 2015 13:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dskecse/948558caf4d507250c3c to your computer and use it in GitHub Desktop.
Save dskecse/948558caf4d507250c3c to your computer and use it in GitHub Desktop.
:io.format "The number is ~.2f~n", [5.578]
# => "The number is 5.58"
System.get_env "RUBYOPT"
# => "-rauto_gem"
Path.extname "dave/test.exs"
# => ".exs"
System.cwd
# => "/home/dskecse/code/elixir/github.com/elixir-code"
# https://github.com/talentdeficit/exjsx (jsex in the past)
JSX.decode "{\"library\": \"jsx\", \"awesome\": true}"
# => {:ok, %{"awesome" => true, "library" => "jsx"}}
:os.cmd 'uname -ra'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment