Skip to content

Instantly share code, notes, and snippets.


Mike Bild MikeBild

View GitHub Profile
ralfw / classify.cs
Last active Jul 30, 2018
IOSP Example
View classify.cs
void Classify(string number, Action<int> onArabic, Action<string> onRoman) {
if (int.TryParse(number, out var arabicNumber))
* Note how all details about how classification works are hidden in the function Classify().
* It's not visible to the outside wheter an "if" is used or a table lookup or whatever.



  • ✏️ method changes this.
  • 🔒 method does not change this.


  • concat(...items: Array<T[] | T>): T[] 🔒 ES3
busypeoples / FlowReactTutorial.js
Last active Mar 5, 2020
Flow Fundamentals For ReactJS Developers
View FlowReactTutorial.js
// MIT License
// Copyright (c) 2018 Ali Sharif
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
shishkin / order.js
Created May 21, 2012
JSON templates
View order.js
"order": {
"href": "http://...",
"method": "POST",
"template": {
"location": "",
"@location": {
"prompt": "Enter your postal code"
"pickupTime": "",
artero / launch_sublime_from_terminal.markdown
Last active Jan 28, 2021 — forked from olivierlacan/launch_sublime_from_terminal.markdown
Launch Sublime Text 2 from the Mac OS X Terminal
View launch_sublime_from_terminal.markdown

Launch Sublime Text 2 from the Mac OS X Terminal

Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.

open /Applications/Sublime\ Text\

You can find more (official) details about subl here: