Dagger is a tool for modeling your workflows as data that can be composed together at runtime.
Dagger constructs can be integrated into a Dagger.Workflow and evaluated lazily in concurrent contexts.
What do Tensorflow, Apache Airflow, Rule Engines, and Excel have in common?
Under the hood they all use DAGs to model data-flow dependencies of the program. Using graphs to model programs is great because you can modify the program at runtime. Lets talk about doing this in Elixir for great good.
iex(1)> Foo.Correspondence.validate_number("234-555-6789") | |
{:ok, "Verizon Wireless", "mobile"} |
# To use: | |
# 1. extract the NCAs from the NSP (I used NSCB) | |
# 2. extract the contents of 5977df9d4848858cbde157c6723dd1de.nca | |
# 3. inside 1 [romfs]\rom\Stardust_JP\Textures you'll find texture_pack.cpio. Extract it (I uzed 7zip) | |
# 4. run this python 2.7 script in the directory with all the .rpt files. It'll create a out folder containing all the PNGs | |
import struct,glob,os,zlib | |
from PIL import Image | |
OUTDIR='out' |
Rubric: Software Engineering : Factual Claims : Defect Cost Increase : Wolverton Ratios
See previous note on the IBM Systems Sciences Institute
In absolute numbers, the Wolverton are as follows: 139:455:977:7136:14102, claimed dollar costs of fixing an "average" defect. (Itself an absurd claim, see Leprechauns, I should perhaps write more on that.)
Scala with Futures:
import java.util.UUID
import scala.concurrent.Future
trait User {
def isAdmin: Boolean
def id: UUID
#Fy gar her o'er with Straw arranged for Sonic Pi by Robin Newman, May 2017 | |
#anon scottish song | |
#music from The harpsichord or spinnet miscellany by Robert Bremner (c 1765) | |
use_synth :blade #makes a good harpsichord sound when gverb added | |
use_bpm 140 | |
#note values relative to crotchet=1 | |
m=2;cd=1.5;c=1;q=0.5;sq=0.25;dsq=0.125;hdsq=0.0625;qd=0.75 | |
define :shake do |n,d,f=0| #quick entry for ornament |
Set the environment variables
Install nano(or not if you intend to use vi)
yum install -y nano
Open ~/.profile
with nano ~/.profile
and add the following:
# "The Optimized Badass" | |
# Sonic Pi v2.11 | |
# ---------------------------------------- | |
# Samples used in this song can be downloaded from: | |
# https://dl.dropboxusercontent.com/u/657073/sonicpi/badass-samples.zip | |
# Unpack and put them into your samples folder. | |
# ---------------------------------------- | |
# This file is too long to be played from the Sonic Pi IDE | |
# Instead of pasting this code, just enter the following into the Sonic Pi editor: | |
# run_file "/path/to/this_file.rb" |
# Guitar Strumming - by Emlyn | |
# This tries to work out the guitar (or ukulele etc.) fingering for arbitrary chords (and tuning). | |
# It seems to work reasonably well for basic chords, but is quite naive and probably makes many mistakes. | |
# Ideas, bug reports, fixes etc. gratefully received, just comment below, or tweet @emlyn77. | |
# Feel free to make use of this code as you like (with attribution if you feel like it, but you don't have to). | |
# Thanks to @Project_Hell_CK for fixing the tuning, and spotting that it gets chord(:f, :major) not quite right. | |
# Next note higher or equal to base note n, that is in the chord c | |
define :next_note do |n, c| | |
# Make sure n is a number |