Skip to content

Instantly share code, notes, and snippets.

@sallysmith1337
sallysmith1337 / process_itc_reports.py
Created May 4, 2012 13:25
iTunes Connect Financial Reports Processor
#!/usr/bin/env python
#
# iTunes Connect Earnings Report Merger Script
# By Brandon Smith ([email protected])
#
import os, csv, json
import requests
###
# Config
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://ogp.me/ns/fb#">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="keywords" content="Ping 4,Ping chapter 4,Ping,Ping manga,Ping chapter 4 page 26" />
<meta name="description" content="Ping 4 - Read Ping 4 Manga Scans Page 26. Free and No Registration required for Ping 4 v01" />
<title>Ping 4 v01 - Read Ping 4 Online - Page 26</title>
<meta property="og:title" content="Ping 4 Page 26" />
<meta property="og:description" content="Ping 4" />
@sallysmith1337
sallysmith1337 / gist:1913487
Created February 26, 2012 05:29
it's a secret
int bufferWidth = CVPixelBufferGetWidth(pixelBuffer);
int bufferHeight = CVPixelBufferGetHeight(pixelBuffer);
uint8_t *pixel = CVPixelBufferGetBaseAddress(pixelBuffer);
uint8_t * baseAddressGray = (uint8_t *) malloc(bufferWidth*bufferHeight);
intrinsicBGRAtoGrayscale(baseAddressGray, pixel, bufferWidth*bufferHeight);
for (int i = 0; i < (bufferWidth * bufferHeight); i++) {
pixel[0] = baseAddressGray[0];
pixel[1] = baseAddressGray[0];
@sallysmith1337
sallysmith1337 / speaker_beep.py
Created August 31, 2011 21:19
Speaker beeping fun in Python.
#!/usr/bin/env python
#
# Internal Speaker Beeping Module for Windows
#
import time
import winsound
###
# Notes Config
###
@sallysmith1337
sallysmith1337 / fortune.py
Created July 5, 2011 17:53
Fortune cookie message getter
#!/usr/bin/env python
#
# Fortune Cookie Saying Grabber
# By James Penguin ([email protected])
#
import BeautifulSoup
import urllib2
def get_fortune():
try: