- https://styled-components.com/
function foo(stringParts, ...props) { console.log(JSON.stringify(stringParts, null, 2)); console.log(JSON.stringify(props, null, 2)); }
fooa ${“b”} c ${“d”}
| defmodule RandomTest do | |
| use ExUnit.Case | |
| test "randomness may be seeded" do | |
| seed = :rand.export_seed() | |
| list = Enum.to_list(1..10_000) | |
| values = | |
| for _ <- 1..10_000 do | |
| Enum.random(list) |
function foo(stringParts, ...props) {
console.log(JSON.stringify(stringParts, null, 2));
console.log(JSON.stringify(props, null, 2));
}
fooa ${“b”} c ${“d”}
Where to host projects
Talking early career; landing the first job
"I have an endpoint that returns a JSON collection of 'exercises'. How can I display it as a web page?"
| .ipynb_checkpoints/ | |
| node_modules/ |
| defmodule Power do | |
| use Bitwise | |
| def find(i) when i > 0 do | |
| find(i, 1) | |
| end | |
| def find(i, p) when p < i do | |
| find(i, p <<< 2) | |
| end |
| module ServiceOne | |
| def helper_one | |
| puts "one" | |
| end | |
| end | |
| module ServiceTwo | |
| def helper_two | |
| puts "two" | |
| end |
| diff --git a/lib/money/money/arithmetic.rb b/lib/money/money/arithmetic.rb | |
| index 38bc94e..19d6b79 100644 | |
| --- a/lib/money/money/arithmetic.rb | |
| +++ b/lib/money/money/arithmetic.rb | |
| @@ -125,10 +125,10 @@ class Money | |
| [:+, :-].each do |op| | |
| define_method(op) do |other| | |
| unless other.is_a?(Money) | |
| - if other.zero? | |
| + if other && other.zero? |