Skip to content

Instantly share code, notes, and snippets.

@plamere
plamere / index.html
Created December 6, 2011 13:45
Demonstration of how to call the Echo Nest API from a Spotify App
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Playlister</title>
<link rel="stylesheet" href="sp://import/css/adam.css">
<link rel="stylesheet" href="styles.css">
<script type="text/javascript" src="js/jquery.min.js"></script>
</head>
@jonchretien
jonchretien / Gruntfile.js
Last active December 20, 2015 11:49
Gruntfile used for personal project.
module.exports = function(grunt) {
// project configuration.
grunt.initConfig({
dirs: {
dest: '_publish'
},
file: 'index.php',
pkg: grunt.file.readJSON('package.json'),
clean: {
@kylemcdonald
kylemcdonald / InboxUnread.php
Created August 12, 2013 12:57
Inbox Unread reports inbox statistics hourly in the form of a Twitter avatar.
<!--
Inbox Unread reports inbox statistics hourly in the form of a Twitter avatar.
To run Inbox Unread first copy this php script to your server. Put your background
avatar adjacent to this file as "input.jpeg". Mine is 548x548 and all the positions
are setup for that size. Next go to http://script.google.com/ and sign in. Click
"Create a script for GMail" and replace the template with this code:
function processInbox() {
var unreadCount = GmailApp.getInboxUnreadCount();