Skip to content

Instantly share code, notes, and snippets.

View anoff's full-sized avatar

Andreas Offenhaeuser anoff

View GitHub Profile
@cgmartin
cgmartin / datepicker.decorator.js
Last active May 21, 2018 21:42
Send an event to refresh view of ui-bootstrap datepicker
/**
* Decorates the ui-bootstrap datepicker directive's controller to allow
* refreshing the datepicker view (and rerunning invalid dates function)
* upon an event trigger: `$scope.$broadcast('refreshDatepickers');`
*
* Works with inline and popup. Include this after `ui.bootstrap` js
*/
angular.module('ui.bootstrap.datepicker')
.config(function($provide) {
$provide.decorator('datepickerDirective', function($delegate) {
@anoff
anoff / 1-remote-raspberry-pi.md
Last active November 19, 2023 11:34
Links and tips on how to get a pi set up for developing remotely (#rsyn, #ssh, #mac, #pi)

How to set up a raspberry pi for remote development

Links and tips on how to get a pi set up for developing remotely (#rsyn, #ssh, #mac, #pi)

Preparations

required (used)

  • Raspberry Pi, SD Card, 5V micro-USB
  • Macbook Pro w/ ethernet adapter
  • WiFi with internet connection