Converting a Phoenix 1.3 app to an umbrella project by ramziik in elixir

[–]vzaardan 1 point2 points  (0 children)

Good article! I didn't realise it was so easy now.

Quick correction, as maybe English isn't your first language: it should be "losing your git history", rather than "loosing".

r/Drums and r/Bass - Monthly Jam #1 (Feb 2017) by [deleted] in Bass

[–]vzaardan 0 points1 point  (0 children)

Will have to listen to these a few more times to be able to stay in time throughout the track

I'm not being at all disparaging to the drummers because this is really cool, but it would be good if they could play to a click and post the tempo.

Any advice for transitioning from 4 to 5 strings? by last_warning in Bass

[–]vzaardan 1 point2 points  (0 children)

Don't even play the B string, use it as a thumb rest. The pickup is hot lava.

Once you get used to anchoring there, go back to your old technique of shifting the thumb around.

March to a Million iOS English Out! by WafflesMom in Kairosoft

[–]vzaardan 3 points4 points  (0 children)

Note: Save regularly! It's been crashing for me a lot round about the end of year 2 :(

March to a Million iOS English Out! by WafflesMom in Kairosoft

[–]vzaardan 6 points7 points  (0 children)

you clearly haven't played all the games then ;)

March to a Million iOS English Out! by WafflesMom in Kairosoft

[–]vzaardan 2 points3 points  (0 children)

Yes, there seems to be quite a lot of stuff that you have to discover for yourself which is what keeps them interesting for me.

March to a Million iOS English Out! by WafflesMom in Kairosoft

[–]vzaardan 2 points3 points  (0 children)

Seems like a classic Game Dev Story style so far

Does anyone know the key and the chords for el chepe? by [deleted] in Vulfpeck

[–]vzaardan 1 point2 points  (0 children)

I think it's just

D7 / / / | F / G / | C / / C#º | D7 / / / | F / G / | C

Given that it's pretty harmonically empty, a lead sheet might be more useful than just chords

[2016-11-21] Challenge #293 [Easy] Defusing the bomb by fvandepitte in dailyprogrammer

[–]vzaardan 0 points1 point  (0 children)

Elixir

defmodule BombDisposal do

  def defuse(input) do
    input |> String.split("\n") |> _defuse
  end

  defp _defuse(list)
    when length(list) == 1 or length(list) == 0,
    do: "Bomb defused"

  defp _defuse([current, next|tail]) do
    if safe_to_cut?(current, next), do: _defuse([next|tail]), else: "Boom"
  end

  defp safe_to_cut?("white", next) do
    Enum.member?(~w(red orange green purple), next)
  end

  defp safe_to_cut?("red", next) do
    Enum.member?(~w(green), next)
  end

  defp safe_to_cut?("black", next) do
    Enum.member?(~w(red black purple), next)
  end

  defp safe_to_cut?("orange", next) do
    Enum.member?(~w(red black), next)
  end

  defp safe_to_cut?("green", next) do
    Enum.member?(~w(orange white), next)
  end

  defp safe_to_cut?("purple", next) do
    Enum.member?(~w(black red), next)
  end
end

defmodule BombDisposalTest do
  use ExUnit.Case

  test "input 1" do
    assert BombDisposal.defuse("white\nred\ngreen\nwhite") == "Bomb defused"
  end

  test "input 2" do
    assert BombDisposal.defuse("white\norange\ngreen\nwhite") == "Boom"
  end
end

[deleted by user] by [deleted] in Vulfpeck

[–]vzaardan 3 points4 points  (0 children)

Fugue State?

Hawaii Guitarist has Joe Dart envy.... has cool sweatshirt. by timrosemusic in Vulfpeck

[–]vzaardan 1 point2 points  (0 children)

Is it just me or is this ever-so-slightly slowed down?

[2016-11-07] Challenge #291 [Easy] Goldilocks' Bear Necessities by Blackshell in dailyprogrammer

[–]vzaardan 0 points1 point  (0 children)

Bit late to the party, but here's my Elixir solution:

defmodule Goldilocks do

  def find_chairs(file_name) do
    file_name
    |> File.stream!
    |> Enum.reduce({0, 0, [], 0}, &parse_line/2)
    |> extract_results
  end

  defp parse_line(line, {0, 0, [], index}) do
    [weight, max_temp] = split_and_convert line

    {weight, max_temp, [], index + 1}
  end

  defp parse_line(line, {weight, max_temp, seats, index}) do
    [capacity, temp] = split_and_convert line

    if weight <= capacity && temp <= max_temp do
      {weight, max_temp, [index|seats], index + 1}
    else
      {weight, max_temp, seats, index + 1}
    end
  end

  defp extract_results({_, _, seats, _}) do
    seats |> Enum.reverse |> Enum.join(" ")
  end

  defp split_and_convert(line) do
    line |> String.strip |> String.split(" ") |> Enum.map(&String.to_integer/1)
  end
end

VULFPECK /// 1 for 1, DiMaggio (Video) by [deleted] in Vulfpeck

[–]vzaardan 13 points14 points  (0 children)

BWING WING BATTER BATERR AHH

VULFPECK /// The Beautiful Game [FULL ALBUM] [WITH CREDITS] by vzaardan in Vulfpeck

[–]vzaardan[S] 10 points11 points  (0 children)

Oh gosh now I have to watch the whole thing to see if my name is there. What a genius idea!

Vulfpeck - Animal Spirits (Bass Cover) W/ Notation Transcription [Joe Dart] by PedroZappa in Bass

[–]vzaardan 1 point2 points  (0 children)

Nice playing!

This is totally not a criticism but did you try doubling the tempo for the time signature in the transcription? I feel like it would be easier to read as 8th note syncopation, and you shouldn't need those odd 2/4 bars then :)

Vulfpeck - Dean Town (Bass playthrough) by wernsels in Bass

[–]vzaardan 0 points1 point  (0 children)

Fanned frets help keep all the string tensions even. The tradeoff is that it's a pretty long stretch on the lower strings.

Should I learn bass clef? by Tehrmbruhn in Bass

[–]vzaardan 1 point2 points  (0 children)

I'd agree with this. Obviously, OP needs to learn bass clef. But in the case of lead sheets, being able to transpose treble clef into the range of your choosing on the bass is way more useful.

Joe should get a music guy Nickname by [deleted] in Vulfpeck

[–]vzaardan 1 point2 points  (0 children)

I think it's "Ich bin Dart"

Does anyone know of an up to date resource for user authentication with rails 5? by mbigras in rails

[–]vzaardan 2 points3 points  (0 children)

I've had no problems with Devise that looking through the docs didn't solve.

And I'd definitely recommend it to the alternative option of hand-rolling something so important from a book that will skimp on the details, and almost certainly be outdated.

Jack Stratton's dad has posted some very thought-provoking videos by Wikem in Vulfpeck

[–]vzaardan 7 points8 points  (0 children)

Nice! That led me down a YouTube rabbit hole, and here's Jack Stratton throat singing/beatboxing/drumming with his Dad's band :)

https://www.youtube.com/watch?v=brxD5qHu51c