Skip to content

Instantly share code, notes, and snippets.

View bluechoochoo's full-sized avatar

bluechoochoo

  • lil scripts that are useful for agencies
View GitHub Profile
@bluechoochoo
bluechoochoo / gist:8cd4bb9ec98310cb9ebb2d4647dd90be
Created September 20, 2016 19:14
YouTube livestream hack when stream hasn't started
When stream hasn't started yet, you can still prep your page/app/embed if you know a YouTube channel's channel ID:
https://www.youtube.com/embed/live_stream?channel=[channel ID]
IT'S THAT EASY.
Context:
http://stackoverflow.com/questions/39204757/youtube-live-streaming-embed-code-keeps-changing/39235779#39235779
@bluechoochoo
bluechoochoo / general_interest_news_domains_seedlist.txt
Created December 23, 2015 20:52
General interest news domains for use in filters + mutes in Twitter clients, host files, etc.
reuters.com
cbs.com
mercurynews.com
foxbusiness.com
usatoday.com
latimes.com
nydailynews.com
nbcnews.com
bostonglobe.com
foxnews.com
@bluechoochoo
bluechoochoo / gist:47ae1802e68bdaaa8024
Created June 17, 2015 05:42
Embed the What's In a View spreadsheet in your own site.
<iframe src="https://docs.google.com/spreadsheets/d/1kS4vtA0sGeqHRyTzwLSpmsFmN1bN6xyZj51hZYBeqrA/pubhtml?gid=0&amp;single=true&amp;widget=false&chrome=false&amp;headers=false&range=A3:G13" width="580" height="380"></iframe>
@bluechoochoo
bluechoochoo / pinterest_api_preview
Created May 4, 2015 15:57
pinterest API preview
from https://api.pinterest.com/developers/signup/
Users
GET /v1/users/{username}/
GET /v1/me/
GET /v1/me/pins/
GET /v1/me/boards/
GET /v1/me/likes/
GET /v1/me/following/users/
@bluechoochoo
bluechoochoo / gist:a034da52c64ac6fcb637
Last active March 19, 2022 03:50
text transcription of Stanley Druckenmiller talk at Lost Tree Club, including Q&A w/Ken Langone
Last week the transcript of a talk Stanley Druckenmiller gave went a little viral on #financetwitter.
(http://covestreetcapital.com/Blog/wp-content/uploads/2015/03/Druckenmiller-_Speech.pdf)
Only problem- it's been traveling around in the form of an image PDF,
making it hard to cut + paste or search for your favorite quotes.
So I ran it through a couple programs, and bleepblorp, a text transcript is below.
If you want *just the text,* and not this surrounding web page, click "Raw" in the corner above.
THE FUSION.NET UNLISTED RSS FEEDS
MAIN
http://fusion.net/feed/
SECTIONS
pop culture
http://fusion.net/section/pop-culture/feed/
tiny fusion bugs
feedback link in http://fusion.net/contact-us/ links to itself
author page http://fusion.net/author/danielle-a-friedman/
listed at http://fusion.net/authors/ redirects to index of authors
possibly not a bug, but seems sus:
author "Fusion Interactive" listed at http://fusion.net/authors/
links to http://fusion.net/author/mariana-santos, with only one article.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
######### count up twitter, FB, Pinterest shares + comments on your/project's site, put them in beautiful spreadsheet
######### screenshot: https://twitter.com/bluechoochoo/status/431853397612834816/photo/1
######### you just have to change ONE line of code, baby.
######### i'm not author, just adding newbie instructions. forked from https://gist.github.com/mediaczar/7808764
######### ******************* how-to: *******************
######### 1. replace URL in line 57 with YOUR sitemap (probably http://yourdomain.com/sitemap.xml)
######### 2. paste this entire code-snippet in your scraperwiki.com session (you've already signed-up, right?)
# Single-line version:
(?i)\b((?:https?:(?:/{1,3}|[a-z0-9%])|[a-z0-9.\-]+[.](?:com|net|org|edu|gov|mil|aero|asia|biz|cat|coop|info|int|jobs|mobi|museum|name|post|pro|tel|travel|xxx|ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cs|cu|cv|cx|cy|cz|dd|de|dj|dk|dm|do|dz|ec|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|Ja|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw)/)(?:[^\s()<>{}\[\]]+|\([^\s()]*?\([^\s()]+\)[^\s()]*?\)|\([^\s]+?\))+(?:\([^\s()
<?php
$url = $_GET['url'];
$finfo = json_decode(file_get_contents('http://api.ak.facebook.com/restserver.php?v=1.0&method=links.getStats&urls='.$url.'&format=json'));
$tinfo = json_decode(file_get_contents('http://urls.api.twitter.com/1/urls/count.json?url='.$url));
$dinfo = json_decode(file_get_contents('http://feeds.delicious.com/v2/json/urlinfo/data?url='.$url));
$pinfo = json_decode(preg_replace('/^receiveCount\((.*)\)$/', "\\1",file_get_contents('http://api.pinterest.com/v1/urls/count.json?callback=receiveCount&url='.$url)));
$gplus = gplus_shares($url);
//http://papermashup.com/google-plus-php-function/