Skip to content

Instantly share code, notes, and snippets.

View pmoelgaard's full-sized avatar

Peter Andreas Moelgaard pmoelgaard

View GitHub Profile
@pmoelgaard
pmoelgaard / device-publisher.js
Created July 9, 2012 15:17
CommonJS Module Client for the Podio API
var Podio = require('./podio');
Podio.getAccessToken(function(accessToken) {
deviceInfoList.forEach( function( deviceInfo ) {
Podio.search( deviceInfo.properties[ 0 ].value, accessToken, function( searchResult ) {
console.log( searchResult );
});
@pmoelgaard
pmoelgaard / index.html
Created June 8, 2012 01:28
preloader-directive
<html ng-app="application" preloader="splash">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Preloader Experiment</title>
<script src="http://code.angularjs.org/angular-1.0.0rc10.min.js"></script>
<script src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
<script src="preloader-0.0.1.js"></script>
@pmoelgaard
pmoelgaard / designer.html
Last active August 29, 2015 14:18
designer
<link rel="import" href="../polymer/polymer.html">
<polymer-element name="bbb-songkran2015">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
/****************************************************************************
**
** Reference: https://bitbucket.org/gregschlom/qmlscrollbar/src/tip/ScrollBar.qml
**
****************************************************************************/
import QtQuick 1.1
Rectangle {
@pmoelgaard
pmoelgaard / 0_reuse_code.js
Created May 24, 2014 15:20
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console