Skip to content

Instantly share code, notes, and snippets.

View voidfiles's full-sized avatar

Alex Kessinger voidfiles

View GitHub Profile
@voidfiles
voidfiles / 5th_discipline.md
Created January 24, 2016 06:04
Notes on the The Fifth Discipline: The Art & Practice of The Learning Organization
Error in user YAML: (<unknown>): mapping values are not allowed in this context at line 1 column 28
---
Title: The Fifth Discipline: The Art & Practice of The Learning Organization
Author: Peter M. Senge
---

Definitions

Discipline in this context means the pursuit of mastery.

Notes

<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>PostRank Feeds</title>
<dateCreated>Sun, 23 Aug 2009 21:32:12 GMT</dateCreated>
<ownerName>voidfiles</ownerName>
</head>
<body>
<outline type="rss" title="Dropular" text="Dropular" xmlUrl="http://feeds.postrank.com/a0b7979807bccb91a1e4dffbe8fdd49f?level=good" origXml="http://dropular.net/feed/rss/" private="false" htmlUrl="http://dropular.net/"/>
<outline type="rss" title="Startup News" text="Startup News" xmlUrl="http://feeds.postrank.com/3d813cafb88dae0c470e6dddb41c0577?level=good" origXml="http://news.ycombinator.com/rss" private="false" htmlUrl="http://news.ycombinator.com/"/>
testing this out
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" securityLevel="any">
<meta>
<author>Picplz</author>
<documentationURL>http://picplz.com</documentationURL>
<sampleQuery>select * from {table} WHERE entity='feed' AND type='interesting'</sampleQuery>
<sampleQuery>select * from {table} WHERE entity='city' AND id=2 AND include_pics=1</sampleQuery>
<sampleQuery>select * from {table} WHERE entity='user' AND username='zubillaga' AND include_pics=1;</sampleQuery>
</meta>
<bindings>
@voidfiles
voidfiles / join_text_url.py
Created February 15, 2011 07:09
Joins a piece of text with a url to form max length tweet
long_tweet = 'asdfasdf asd fasd fasdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdfasdf asdfasdfas dfasd fasd fasdf asdf asdf asdf asdf asdf asdf '
short_tweet = 'asdfasdf asd fasd fasdf asdf asdf asdf asdf asdf asdf asdf asdf'
url = "http://sia.tw/4fgs4"
def join_url(tweet, url):
max_tweet_length = 139
@voidfiles
voidfiles / gist:1046748
Created June 25, 2011 18:33
Parsing Extractiv JSON Crawl Job Output
"""
Extractive is a cool new service that does some on the fly web
crawling, and machine learning stuff like Entity Extraction, Full
text extraction, and more things I don't even understand. There
on demand api was very easy to use, but I built my first crawl
job the other night, and had some trouble parsing the results.
I thought I would put this up so people can see how I fixed the
output.
"""
@voidfiles
voidfiles / gist:1390075
Created November 23, 2011 22:10
Flickr's Pre-script loading event handler code
(function(F) {
var registered_ids = {},
id_to_module_map = {},
interim_actions = {},
cleanup_actions = {},
clicked_ids = {},
queueing = true;
function register_id(id, callbacks, required_module) {
id = id.replace('*', '.*');
@voidfiles
voidfiles / flickr_action_queue.js
Created November 25, 2011 22:43
Flickrs actionQueue code isolated
(function(F) {
var registered_ids = {},
id_to_module_map = {},
interim_actions = {},
cleanup_actions = {},
clicked_ids = {},
queueing = true;
function register_id(id, callbacks, required_module) {
id = id.replace('*', '.*');
@voidfiles
voidfiles / gist:1394631
Created November 25, 2011 23:09
Flickr actionQueue fav handler
F.actionQueue.register('button-bar-fave', {
interim: function(id) {
var fave_button = document.getElementById(id);
if (fave_button.className.search(/fave/) === -1) {
fave_button.className = 'Butt ywa-track fave-button fave';
} else {
fave_button.className = 'Butt ywa-track fave-button';
}
},
cleanup: function(id) {
@voidfiles
voidfiles / flickr_favorite_button.html
Created November 25, 2011 23:22
Flickr Favorite Button
<a href="#" class="Butt ywa-track fave-button fave" id="button-bar-fave" data-ywa-name="Favorites star" onclick="return F.actionQueue.queue_click(this.id);" tabindex="4">
<span class="ie-hack">&nbsp;</span>
<span class="star">★</span> &nbsp;Favorite
</a>