Skip to content

Instantly share code, notes, and snippets.

View fearphage's full-sized avatar
⌨️
Cache rules everything around me.

Phred Lane fearphage

⌨️
Cache rules everything around me.
View GitHub Profile
@fearphage
fearphage / gist:1261938
Created October 4, 2011 15:27
Backbone.Collection#update
Backbone.Collection.prototype.update = function(collection) {
var _ids = _(collection)
.chain()
.reduce(function(ids, model) {
var
id = model.id
,needle = this.get(id)
;
if (needle) {
The quick brown fox jumps over the lazy dog.
The little green android jumps over the lazy apple.
@fearphage
fearphage / sc2.log
Created October 19, 2011 21:32
attempting to run starcraft 2 from wine :'(
fixme:process:GetLogicalProcessorInformation ((nil),0x33dcc0): stub
fixme:win:EnumDisplayDevicesW ((null),0,0x107c304,0x00000000), stub!
fixme:ddraw:DirectDrawEnumerateExA flags 0x00000003 not handled
fixme:wininet:InternetSetOptionW Option INTERNET_OPTION_CONNECT_TIMEOUT (3000): STUB
fixme:wininet:InternetSetOptionW INTERNET_OPTION_SEND/RECEIVE_TIMEOUT 3000
fixme:wininet:InternetSetOptionW Option INTERNET_OPTION_CONNECT_TIMEOUT (2000): STUB
fixme:wininet:InternetSetOptionW INTERNET_OPTION_SEND/RECEIVE_TIMEOUT 2000
fixme:process:GetLogicalProcessorInformation ((nil),0x127c5c0): stub
fixme:process:GetLogicalProcessorInformation ((nil),0x127c5ac): stub
fixme:process:GetLogicalProcessorInformation ((nil),0x137c5fc): stub
fixme:process:GetLogicalProcessorInformation ((nil),0x33dcc0): stub
fixme:win:EnumDisplayDevicesW ((null),0,0x107c304,0x00000000), stub!
fixme:ddraw:DirectDrawEnumerateExA flags 0x00000003 not handled
fixme:wininet:InternetSetOptionW Option INTERNET_OPTION_CONNECT_TIMEOUT (3000): STUB
fixme:wininet:InternetSetOptionW INTERNET_OPTION_SEND/RECEIVE_TIMEOUT 3000
fixme:process:GetLogicalProcessorInformation ((nil),0x127c620): stub
fixme:process:GetLogicalProcessorInformation ((nil),0x127c60c): stub
fixme:process:GetLogicalProcessorInformation ((nil),0x137e9b8): stub
fixme:wininet:InternetSetOptionW Option INTERNET_OPTION_CONNECT_TIMEOUT (2000): STUB
fixme:wininet:InternetSetOptionW INTERNET_OPTION_SEND/RECEIVE_TIMEOUT 2000
fixme:process:GetLogicalProcessorInformation ((nil),0x33dcc0): stub
fixme:wininet:InternetSetOptionW Option INTERNET_OPTION_CONNECT_TIMEOUT (2000): STUB
fixme:wininet:InternetSetOptionW INTERNET_OPTION_SEND/RECEIVE_TIMEOUT 2000
fixme:win:EnumDisplayDevicesW ((null),0,0x107c304,0x00000000), stub!
fixme:ddraw:DirectDrawEnumerateExA flags 0x00000003 not handled
fixme:wininet:InternetSetOptionW Option INTERNET_OPTION_CONNECT_TIMEOUT (3000): STUB
fixme:wininet:InternetSetOptionW INTERNET_OPTION_SEND/RECEIVE_TIMEOUT 3000
fixme:process:GetLogicalProcessorInformation ((nil),0x127c5c0): stub
fixme:process:GetLogicalProcessorInformation ((nil),0x127c5ac): stub
fixme:process:GetLogicalProcessorInformation ((nil),0x137c5c0): stub
#!/bin/bash
# Settings
url=http://dl.dropbox.com/u/2400/scrot
dir=~/Dropbox/Public/scrot
filename=selection_$(date +%Y-%m-%d_%H%M%S).png
# End Settings
scrot -s "$dir/$filename"
@fearphage
fearphage / jquery.ba-tinypubsub.js
Created October 29, 2011 02:20 — forked from cowboy/HEY-YOU.md
jQuery Tiny Pub/Sub: A really, really, REALLY tiny pub/sub implementation for jQuery.
/* jQuery Tiny Pub/Sub - v0.7 - 10/27/2011
* http://benalman.com/
* Copyright (c) 2011 "Cowboy" Ben Alman; Licensed MIT, GPL */
(function($, a, i) {
var o = $({});
while (i) {
$[a[--i]] = (function(f) {
@fearphage
fearphage / gist:1359137
Created November 11, 2011 20:28
google.music.com error in Opera
[11/11/2011 02:26:18 PM] JavaScript - https://music.google.com/music/listen?u=0
Inline script thread
Uncaught exception: TypeError: Cannot convert 'a' to object
Error thrown at line 2, column 895 in xa(a, b) in https://ssl.gstatic.com/music/fe/5555ede8696692ed1700e721584afe5f/listen.js:
return a.width=b
called from line 330, column 126 in <anonymous function>(a, b, c) in https://ssl.gstatic.com/music/fe/5555ede8696692ed1700e721584afe5f/listen.js:
xa(a[J],sY(b,i));
called from line 549, column 440 in <anonymous function: S.Pv>(a, b) in https://ssl.gstatic.com/music/fe/5555ede8696692ed1700e721584afe5f/listen.js:
this.a()&&FY(this.oy(),this.Vp,this.Tp);
called from line 549, column 742 in <anonymous function: S.Z>() in https://ssl.gstatic.com/music/fe/5555ede8696692ed1700e721584afe5f/listen.js:
#!/usr/bin/perl
#
# copyright Martin Pot 2003
# http://martybugs.net/linux/hddtemp.cgi
#
# rrd_hddtemp.pl
#
# Abusing this script to graph Opera memory usage
# 13-03-2010
# Remco Lanting
➜ webUI git:(stats) ✗ opera-next -profilinglog ~/opera-wtf.log
** (opera-next:8718): CRITICAL **: os_pager_hide: assertion `OS_IS_PAGER (pager)' failed
(opera-next:8718): Gtk-CRITICAL **: IA__gtk_widget_hide: assertion `GTK_IS_WIDGET (widget)' failed
** (opera-next:8718): CRITICAL **: os_pager_set_parent: assertion `OS_IS_PAGER (pager)' failed
** (opera-next:8718): CRITICAL **: os_pager_hide: assertion `OS_IS_PAGER (pager)' failed