pecl channel-update pecl.php.net
pecl clear-cache
pecl install xdebug
This is a quick-and-dirty guide to setting up a Raspberry Pi as a "router on a stick" to PrivateInternetAccess VPN.
Install Raspbian Jessie (2016-05-27-raspbian-jessie.img
) to your Pi's sdcard.
Use the Raspberry Pi Configuration tool or sudo raspi-config
to:
//events - a super-basic Javascript (publish subscribe) pattern | |
var events = { | |
events: {}, | |
on: function (eventName, fn) { | |
this.events[eventName] = this.events[eventName] || []; | |
this.events[eventName].push(fn); | |
}, | |
off: function(eventName, fn) { | |
if (this.events[eventName]) { |
This is the follow up to a post I wrote recently called From Require.js to Webpack - Party 1 (the why) which was published in my personal blog.
In that post I talked about 3 main reasons for moving from require.js to webpack:
- Common JS support
- NPM support
- a healthy loader/plugin ecosystem.
Here I'll instead talk about some of the technical challenges that we faced during the migration. Despite the clear benefits in developer experience (DX) the setup was fairly difficult and I'd like to cover some of the challanges we faced to make the transition a bit easier.
/****************************************************************************** | |
* | |
* Adapter functions to deal w/ Angular <--> jQuery (custom) events | |
* | |
* I wrote these quickly just to see if they'd fly. They should really be added | |
* to a provider, I just haven't gotten around it. | |
* | |
*****************************************************************************/ | |
/** |
Dependencies managed with Bower:
npm install -g bower
bower install
...Then open up index.html in a browser.
window.AudioContext = window.AudioContext || window.webkitAudioContext; | |
navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia; | |
window.addEventListener('load', init, false); | |
function init () { | |
try { | |
record(new AudioContext()); | |
} | |
catch (e) { |
{ | |
"@context": { | |
"ladder": "Ladder:", | |
"bibo": "http://purl.org/ontology/bibo/", | |
"dcterms": "http://purl.org/dc/terms/", | |
"foaf": "http://xmlns.com/foaf/0.1/", | |
"mads": "http://www.loc.gov/mads/rdf/v1#", | |
"mods": "http://www.loc.gov/mods/modsrdf/v1#", | |
"schema": "http://schema.org/", | |
"skos": "http://www.w3.org/2004/02/skos/core#" |
tell application "Calendar" | |
-- delete everything from the destination calendar | |
-- TODO: Change "Destination Calendar" to be the name of your destination calendar | |
repeat with anEvent in (get events of calendar "Destination Calendar") | |
delete anEvent | |
end repeat | |
-- copy all events from the source calendar to the destination | |
-- TODO: Change "Source Calendar" to be the name of your source calendar | |
-- TODO: Change "Destination Calendar" to be the name of your destination calendar |
/*jshint globalstrict:true */ | |
/*global angular:true */ | |
'use strict'; | |
angular.module('demo', [ | |
'demo.controllers', | |
'demo.directives', | |
'elasticjs.service' | |
]); |