Skip to content

Instantly share code, notes, and snippets.

View sleepingkingstudios's full-sized avatar
💭
🚀

Rob Smith sleepingkingstudios

💭
🚀
View GitHub Profile
class CommandParser
class OptionsParser
def initialize
@parsed = nil
@buffer = nil
@bname = nil
end # constructor
def parse tokens
self.buffer = ''
$LOAD_PATH.unshift './lib'
source_file = ARGV[0]
target_file = ARGV[1]
puts "Source: #{source_file}"
puts "Target: #{target_file}"
require 'fileutils'
ApplicationRecord.connection.execute(
<<~SQL
CREATE TEMPORARY TABLE IF NOT EXISTS gadgets
(
id bigint NOT NULL,
name varchar(64) NOT NULL
);
CREATE TEMPORARY SEQUENCE IF NOT EXISTS gadgets_id_seq
START WITH 1

Elixir Cheat Sheet

See the Official Guides.

Getting Started

Command Line

Start a REPL: iex