## VSCode Setup
I use following extensions
1. Ruby
2. Ruby Solargraph
2. VTools
2. Rails Run Specs
3. Rails Go to Spec
4. Local History
5. GitLens
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Worker1 do | |
def start_link() do | |
Task.start_link(fn -> | |
Stream.repeatedly(fn -> :rand.uniform(1000) end) | |
|> Stream.each(&:timer.sleep/1) | |
|> Stream.each(fn _ -> IO.puts("worker 1") end) | |
|> Stream.run() | |
end) | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<head> | |
<title>Codesnippit NodeJS Twitter Tracker Client</title> | |
</head> | |
<body> | |
<ul></ul> | |
<script> | |
(function() { | |
var script = document.createElement("script"); | |
script.src = "http://code.jquery.com/jquery.min.js"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Simple Java program | |
public class Person { | |
private int age; | |
private boolean isFemale; | |
Person(int age, boolean isFemale) { | |
this.age = age; | |
this.isFemale = isFemale; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
function error { | |
>&2 echo $1 | |
exit 1 | |
} | |
# set defaults | |
ffmpegParams="-strict -2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
function error { | |
>&2 echo $1 | |
exit 1 | |
} | |
# set defaults | |
ffmpegParams="-strict -2" |
Steps
-
- sudo vi /etc/connman.conf
-
- Make sure you have following
[General]
PreferredTechnologies=wifi,ethernet
From Out of the Tar Pit:
The key problem with testing is that a test (of any kind) that uses one particular set of inputs tells you nothing at all about the behaviour of the system or component when it is given a different set of inputs. The huge number of different possible inputs usually rules out the possibility of testing them all, hence the unavoidable concern with testing will always be — have you performed the right tests?. The only certain answer you will ever get to this question is an answer in the negative — when the system breaks.
This is a strong argument for some form of generative, simulation, or property-based testing.