This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import natsort | |
import os | |
from PIL import Image | |
import sys | |
INPUT_DIR = "/Users/aaron/Desktop/pictures" | |
OUTPUT_DIR = "/Users/aaron/Desktop/pictures-processed" | |
OUTPUT_WIDTH = 1920 | |
OUTPUT_HEIGHT = 1080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// main.c | |
// guavajuice | |
// | |
// Created by Aaron Wojnowski on 2014-10-24. | |
// Copyright (c) 2014 aaron. All rights reserved. | |
// | |
#include <stdio.h> | |
#include <string.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// main.c | |
// guavajuice | |
// | |
// Created by Aaron Wojnowski on 2014-10-24. | |
// Copyright (c) 2014 aaron. All rights reserved. | |
// | |
#include <stdio.h> | |
#include <string.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html><html lang="en" data-cast-api-enabled="true"><head> <link id="css-3797231512" rel="stylesheet" href="http://s.ytimg.com/yts/cssbin/www-core-vflDAc18Y.css"> | |
<script>var ytcsi = {data_: {tick: {},info: {}},tick: function(l, t) {ytcsi.data_.tick[l] = t || new Date();},info: function(k, v) {ytcsi.data_.info[k] = v;}};ytcsi.tick('start');if (document.webkitVisibilityState == 'prerender') {ytcsi.info('prerender', 1);document.addEventListener('webkitvisibilitychange', function() {ytcsi.tick('start');}, false);}try {ytcsi.pt_ = (window.chrome && chrome.csi().pageT ||window.gtbExternal && gtbExternal.pageT() ||window.external && external.pageT);if (ytcsi.pt_) {ytcsi.info('pt', Math.floor(ytcsi.pt_));}} catch(e) {}</script> | |
<script>var ytdns = {};ytdns.ping = function(src, num) {var img = new Image();ytdns[num] = img;img.onload = img.onerror = function() {delete ytdns[num];};img.src = src;};ytdns.ping("http:\/\/r3---sn-vgqelne6.c.youtube.com\/crossdomain.xml", 2);ytdns.ping("http:\/\/r3---sn-v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(NSString *)mp4URLFromYoutubeContents:(NSString *)string error:(NSError **)error { | |
@try { | |
NSString * (^getGETVariable)(NSString *url, NSString *val) = ^(NSString *url, NSString *val){ | |
NSArray *array = [url componentsSeparatedByString:[NSString stringWithFormat:@"%@=",val]]; | |
if ([array count] <= 1) return (NSString *)nil; | |
val = [array[1] componentsSeparatedByString:@"&"][0]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random; | |
import string | |
import time | |
import urllib | |
import urllib2 | |
from urlparse import urlparse | |
import hmac | |
import hashlib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function retrieve_graph($input) { | |
$json = file_get_contents('http://graph.facebook.com/' . $input); | |
$json = json_decode($json); | |
if (isset($json->error) || !$json) return null; | |
return $json; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(void)viewDidLoad { | |
[super viewDidLoad]; | |
[[self view] setBackgroundColor:[UIColor whiteColor]]; | |
NSString *url = @"http://www.youtube.com/watch?v=8UVNT4wvIGY"; | |
[NSURLConnection sendAsynchronousRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:[url stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]] queue:[[[NSOperationQueue alloc] init] autorelease] completionHandler:^(NSURLResponse *response, NSData *data, NSError *error) { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
letter_rearranger.class.php | |
Created by Aaron Wojnowski, 2012 | |
-- USAGE -- | |
1) Create a .txt wordlist with words separated with a newline. Example: |