This file contains hidden or 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
#---------------------------------------------------------------------------- | |
# Friendly Brewfile to bootstrap a development Mac | |
# | |
# Step 1: Install brew | |
# /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
# Step 2: Download and apply this Brewfile (or modify its contents before, of you do not want everything): | |
# brew bundle --file ./Brewfile | |
# | |
# Or be bold and do it one go: | |
# /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" && curl --fail --location https://bit.ly/my-new-mac | brew bundle --file=- |
This file contains hidden or 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 | |
# The only argument is the diagram definition file | |
test -z "$1" && (echo "Expected one filename argument"; exit 1) | |
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) | |
# plantuml.jar is the PlantUML distribution as downloaded from https://plantuml.com/download | |
java -jar ${script_dir}/plantuml.jar $1 |
This file contains hidden or 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
import bokeh.charts as bch | |
import pandas as pn | |
from bokeh.models import CrosshairTool, PanTool, ResetTool, WheelZoomTool, Span | |
# Input data as a list of tuples | |
data = [ | |
(1, -3), | |
(1, 1), | |
(1, 2), | |
(1, 3), |
This file contains hidden or 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 | |
total=$(git blame $1 | wc -l) | |
haim=$(git blame $1 | grep -i Haim | wc -l) | |
if [ "$total" -eq "0" ]; then | |
echo "Cannot blame" | |
exit -1 | |
fi |
This file contains hidden or 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
// The flow starts in onReadClick | |
import android.app.LoaderManager; | |
import android.content.CursorLoader; | |
import android.content.Loader; | |
import android.database.Cursor; | |
import android.provider.ContactsContract; | |
import android.support.v7.app.ActionBarActivity; | |
import android.os.Bundle; | |
import android.util.Log; |
This file contains hidden or 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
std::set<std::string> CMService::getDirContents(const std::string& path) | |
{ | |
RepositoryService repository; | |
//RepositoryService::getDirContents returns CSVs in a string | |
std::stringstream contentsCsv(repository.getDirContents(path)); | |
std::string entry; | |
std::set<std::string> entries; | |
while (std::getline(contentsCsv, entry, ',')) { |