Skip to content

Instantly share code, notes, and snippets.

@kylemcdonald
kylemcdonald / InboxUnread.php
Created Aug 12, 2013
Inbox Unread reports inbox statistics hourly in the form of a Twitter avatar.
View InboxUnread.php
<!--
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();
@jonchretien
jonchretien / Gruntfile.js
Last active Dec 20, 2015
Gruntfile used for personal project.
View Gruntfile.js
module.exports = function(grunt) {
// project configuration.
grunt.initConfig({
dirs: {
dest: '_publish'
},
file: 'index.php',
pkg: grunt.file.readJSON('package.json'),
clean: {
@plamere
plamere / index.html
Created Dec 6, 2011
Demonstration of how to call the Echo Nest API from a Spotify App
View index.html
<!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>