Skip to content

Instantly share code, notes, and snippets.

View c0d3rm0nk3y's full-sized avatar

Peter c0d3rm0nk3y

  • Greater Minneapolis / St Paul area
View GitHub Profile
@ianbarber
ianbarber / RetrieveAccessTokenActivity.java
Created March 17, 2014 20:22
A quick example of retrieving an access token with GoogleAuthUtil
package com.google.devrel.samples.gmstest.app;
import android.app.Activity;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
@rocktronica
rocktronica / wordfrequency.js
Created May 7, 2012 01:58
quick and dirty word frequency analysis
var words = (function(){
var sWords = document.body.innerText.toLowerCase().trim().replace(/[,;.]/g,'').split(/[\s\/]+/g).sort();
var iWordsCount = sWords.length; // count w/ duplicates
// array of words to ignore
var ignore = ['and','the','to','a','of','for','as','i','with','it','is','on','that','this','can','in','be','has','if'];
ignore = (function(){
var o = {}; // object prop checking > in array checking
var iCount = ignore.length;
@ralphsaunders
ralphsaunders / index.hmtl
Created December 26, 2011 10:42
Loading Feed Entries With The Google Feeds API
<!doctype html>
<html>
<head>
<title>Google Feeds API</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
</head>
<body id="index">