Skip to content

Instantly share code, notes, and snippets.

anonymous
anonymous / GAME_MASTER_v0_1.protobuf
Created July 16, 2016 16:31
Pokemon Go decoded GAME_MASTER protobuf file v0.1
Result: 1
Items {
TemplateId: "BADGE_BATTLE_ATTACK_WON"
Badge {
BadgeType: BADGE_BATTLE_ATTACK_WON
BadgeRanks: 4
Targets: "\nd\350\007"
}
}
Items {
@BeattieM
BeattieM / API Contract Example Spec.md
Last active May 30, 2026 20:42
An example of an API contract between the server and front-end devices

#Users

  • User object
{
  id: integer
  username: string
  email: string
  created_at: datetime(iso 8601)
  updated_at: datetime(iso 8601)
}
$ = jQuery;
/*
* jQuery BBQ: Back Button & Query Library - v1.3pre - 8/26/2010
* http://benalman.com/projects/jquery-bbq-plugin/
*
* Copyright (c) 2010 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
*/
@vdavez
vdavez / githubPost.js
Created November 6, 2015 20:15
Micro-purchase Google Apps Script
function githubPost() {
var ss = SpreadsheetApp.openById(ssID) // replace the ssID with the Spreadsheet ID
var sheet = ss.getSheetByName("Form Responses 1");
var formResponses = FormApp.getActiveForm().getResponses();
var res = formResponses[formResponses.length-1].getItemResponses();
var amt = res[0].getResponse();
var title = "Load Schedule 70 data into CALC. >>> Current bid: " + amt + " <<<"
@SoerenS
SoerenS / gist:94529bc2b87667727ca3
Created June 11, 2015 14:48
JS Bookmarklet to add Analytics Tracking parameters to an URL
javascript:(function moo() {
var utm = "utm_source=facebook&utm_medium=social&utm_campaign=XXX";
var d = new Date();
var url = document.location.href;
utm += (""+d.getFullYear()).slice(-2) + ("0"+(d.getMonth()+1)).slice(-2) + ("0"+(d.getDay()+1)).slice(-2) + ("0"+(d.getHours()+1)).slice(-2) + ("0"+(d.getMinutes()+1)).slice(-2);
if (document.location.href.indexOf('#')>-1 && !document.location.href.indexOf('?')>-1){ url = url.replace("#", "?"+utm+"#"); }
else if (document.location.href.indexOf('#')>-1 && document.location.href.indexOf('?')>-1){ url = url.replace("#", "&"+utm+"#"); }
else if (document.location.href.indexOf('?')>-1){ url += "&" + utm; }
else{ url += "?" + utm; }
document.location.href = url;
@adamwiggins
adamwiggins / adams-heroku-values.md
Last active August 15, 2026 06:03
My Heroku values

Make it real

Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discuss around concrete examples, not hand-waving abstractions. Don't say you did something, provide a URL that proves it.

Ship it

Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.

Do it with style

@vegasje
vegasje / usability.md
Last active March 9, 2020 19:30
PLEASE DO NOT USE THIS. See http://userium.com/ instead.

PLEASE DO NOT USE THIS. See http://userium.com/ instead.

Usability Checklist

User Experience

  • Personalized features. Currency, language, country specific deals, taxes, or delivery options are changed based on user's location.
  • Registering provides value to users. For example a "Free Trial" button communicates a clear benefit, but a "Register" button doesn't. Unnecessary registration is avoided.
@ndarville
ndarville / business-models.md
Last active July 6, 2026 01:15
Business models based on the compiled list at http://news.ycombinator.com/item?id=4924647. I find the link very hard to browse, so I made a simple version in Markdown instead.

Business Models

Advertising

Models Examples
Display ads Yahoo!
Search ads Google
@erikreagan
erikreagan / mac-apps.md
Created August 4, 2012 19:18
Mac developer must-haves

Mac web developer apps

This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.

— Erik

@eklimcz-zz
eklimcz-zz / javascript scoller
Created July 25, 2011 16:36
iOS Fixed Position Scroller with Ease
/*-----------------------------------------
Usage
var list = document.getElementById('dataList'); //Any Div with Items in it
Scroller.init(list, 'x', _hasTouch); //'x' or 'y'
-----------------------------------------------*/
var Scroller = new
function() {
//Public Properties