Skip to content

Instantly share code, notes, and snippets.

View emcoding's full-sized avatar
🏠
Nurturing code

Maud de Vries emcoding

🏠
Nurturing code
View GitHub Profile
@emcoding
emcoding / project_update_2019_4.md
Created May 1, 2019 07:54
Track Anatomy Project Update April 2019

The state of things in the Track Anatomy Project

For the background on the project, see Track Anatomy

What we currently have:

  • A prototype of a Track Anatomy Tool, which is meant to help one maintainer per track to create an initial Track Anatomy. The end result is a big 'table' of all the exercises, with their key features and how they are related to each other. This is also the starting point for continuous improvements to the track. (We need to find a good name for the resulting 'Table'.)

  • The prototype is not scalable yet, so we started with only a small group of tracks to test the workflow. Currently: Ruby, C#,

@emcoding
emcoding / bashprofile.txt
Last active February 12, 2017 20:18
bash_profile
#show (colored) git branch name in prompt
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\u@\h \[\033[32m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\] $ "
Note.find_by(id: 1)
Note.find_by(title: "First Note")
Note.find(1)
Note.find("First Note")
@emcoding
emcoding / exercise_1_intent.rb
Last active September 21, 2015 13:39 — forked from patmaddox/exercise_1_intent.rb
Refactoring with simple rules
class Foo
def something(bar)
bar.do_something
end
end
class Account
def initialize
@balance = "0"
end
@emcoding
emcoding / Exercise Hashes 4.6
Last active August 29, 2015 14:19
exercise 3 from chapter 4.6 Railstutorial
person1 = { :first => "Darth", :last => "Vader"}
person2 = { :first => "Claudia", :last =>"Cardinale"}
person3 = { :first => "Baby", :last => "InTheCorner"}
params = { :father => person1, :mother=>person2, :child=>person3 }
puts params[:father][:first] #puts print z ""
if params[:father][:first]==person1[:first]
"test geslaagd"
end
@emcoding
emcoding / 0_reuse_code.js
Last active August 29, 2015 13:57
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console