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
lines = File.read!("./input.txt") |> String.trim() |> String.split("\n") | |
defmodule Day2 do | |
def count_occurrences(line) do | |
String.split(line, "") | |
|> Enum.filter(fn x -> x != "" end) | |
|> group_and_count() | |
|> Enum.uniq() | |
end |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
"use strict"; | |
var _getIterator = require("babel-runtime/core-js/get-iterator")["default"]; | |
var _interopRequireDefault = require("babel-runtime/helpers/interop-require-default")["default"]; | |
var _interopRequireWildcard = require("babel-runtime/helpers/interop-require-wildcard")["default"]; | |
exports.__esModule = true; |
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
{ | |
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme", | |
"ensure_newline_at_eof_on_save": true, | |
"folder_exclude_patterns": | |
[ | |
".svn", | |
".git", | |
".hg", | |
"CVS", | |
".sass-cache", |
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
== 1. Install Raspberry PI on 8GB SD card via official Guide | |
sudo diskutil unmount /dev/disk1s1 | |
sudo dd bs=1m if=/Users/christian/Downloads/2013-09-25-wheezy-raspbian.img of=/dev/rdisk1 | |
sudo diskutil eject /dev/rdisk1 | |
== 2. Configure WLAN interface settings (recommended TP-Link WLAN dongle) | |
sudo nano /etc/network/interfaces | |
change to |
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
==> Downloading http://sourceforge.net/projects/pyqwt/files/pyqwt5/PyQwt-5.2.0/PyQwt-5.2.0.tar.gz | |
File already downloaded in /Users/christian/Library/Caches/Homebrew | |
/usr/bin/tar xf /Users/christian/Library/Caches/Homebrew/pyqwt-5.2.0.tar.gz | |
==> Patching | |
/usr/bin/patch -f -p0 -i 001-homebrew.diff | |
patching file configure/configure.py | |
==> python configure.py --module-install-path=/usr/local/Cellar/pyqwt/5.2.0/lib/python/PyQt4/Qwt5/ --sip-install-path=/usr/local/Cellar/pyqwt/5.2.0/share/sip/Qwt5/ --uic-install-path=/usr/local/Cellar/pyqwt/5.2.0/lib/python/PyQt4/ -Q ../qwt-5.2 | |
python configure.py --module-install-path=/usr/local/Cellar/pyqwt/5.2.0/lib/python/PyQt4/Qwt5/ --sip-install-path=/usr/local/Cellar/pyqwt/5.2.0/share/sip/Qwt5/ --uic-install-path=/usr/local/Cellar/pyqwt/5.2.0/lib/python/PyQt4/ -Q ../qwt-5.2 | |
Command line options: | |
{'debug': False, |