Skip to content

Instantly share code, notes, and snippets.

View chriserik's full-sized avatar

Christian Schultheiss chriserik

View GitHub Profile
@chriserik
chriserik / gist:1826991
Created February 14, 2012 14:05
pyqwt - error
==> 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,
@chriserik
chriserik / Raspberry RSN
Last active December 24, 2015 05:49
Raspberry PI headless configuration using OSX
== 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
@chriserik
chriserik / gist:275df63ec60268735a06
Created September 8, 2015 15:23
Sublime Settings
{
"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",
"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;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@chriserik
chriserik / Day_02.ex
Created March 21, 2019 23:11
Day 2 Challenge Advent of Code
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