Skip to content

Instantly share code, notes, and snippets.

Avatar
computering

Paul Dawson piisalie

computering
View GitHub Profile
View 01-elixir-deployment-outline.md

Elixir Deployment Office Hours #1

We'll be using Google Meet for this first get together. I'll be driving but questions and discussions are highly encouraged.

https://meet.google.com/dzp-zhbb-ejn

Objective: have a repeatable process to deploy a Phoenix app to Digital Ocean

View rust_strings
fn main() {
let place = "World";
let greeting = "Hello";
let message = greeting.to_string() + " " + place;
println!("{}", message)
View increment_in_place.rs
fn increment_mut(p: &mut Vec<int>) {
for num in p.mut_iter() {
*num = *num + 1
}
}
View keybase.md

Keybase proof

I hereby claim:

  • I am piisalie on github.
  • I am pauldawson (https://keybase.io/pauldawson) on keybase.
  • I have a public key whose fingerprint is 8D08 AE02 E9C4 061A 7EF5 8CBD F2E2 3277 B158 A18C

To claim this, I am signing this object:

View gist:7112281
class Equation
def self.inject_operators(numbers, operators)
operators.permutation.to_a.uniq.map do |operator_set|
Equation.new *(numbers.zip(operator_set).flatten.compact)
end
end
def self.possible_numbers(*numbers)
s = numbers.join("")