Skip to content

Instantly share code, notes, and snippets.

View Scarygami's full-sized avatar

Gerwin Sturm Scarygami

View GitHub Profile

There are several triggers you can use for sending timeline updates:

  • Location updates
  • User actions (share/custom/reply)
  • Some "external" trigger coming from your service

But there is one use-case (that I think is rather useful) that isn't covered by those triggers: User triggers an action and you want to send them a series of timeline cards/updates on a certain schedule.

Anything timer related falls into this category ("This card will self-destroy in 10 seconds") and I can think of several examples where this can be useful.

@Scarygami
Scarygami / app.yaml
Created April 25, 2013 13:16
Handling multipart/related or multipart/mixed requests, comparable to mediaupload requests of some Google APIs (https://developers.google.com/glass/media-upload#multipart), using webapp2 and the email library on App Engine
application: upload-test
version: 1
runtime: python27
threadsafe: true
api_version: 1
handlers:
- url: .*
script: main.app
<script src="https://apis.google.com/js/plusone.js"></script>
<div style="padding: 5px 0 0 15px !important;">
<div class="g-plus" data-action="followers" data-href="https://plus.google.com/<YOUR GOOGLE+ USER ID>" data-width="320" data-height="240" data-rel="author"></div>
</div>
<style>
.activities-widget {
display: inline-block !important;
padding: 5px !important;
width: 320px !important;
max-width: 320px !important;
margin: 2px !important;
border-radius: 5px !important;
overflow: hidden !important;
font-size: 13px !important;
(function (window) {
"use strict";
var audio, hangout_band, sounds;
sounds = {
// define various parameters for each note that can be played
};
function WebAudio() {
// all web audio API stuff handled here