Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View piisalie's full-sized avatar
computering

Paul Dawson piisalie

computering
View GitHub Profile
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("")

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:

fn increment_mut(p: &mut Vec<int>) {
for num in p.mut_iter() {
*num = *num + 1
}
}
fn main() {
let place = "World";
let greeting = "Hello";
let message = greeting.to_string() + " " + place;
println!("{}", message)
@piisalie
piisalie / 01-elixir-deployment-outline.md
Last active April 17, 2020 00:21
Elixir Deployment #1

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