Skip to content

Instantly share code, notes, and snippets.

View lionrajkumar's full-sized avatar
💭
Must Learn Today

Rajkumar lionrajkumar

💭
Must Learn Today
View GitHub Profile
@stungeye
stungeye / crypto_news.json
Created December 18, 2017 04:42
News Site RSS Feeds
[
{
"url": "http://money.cnn.com",
"rss": "http://rss.cnn.com/rss/money_topstories.rss"
},
{
"url": "http://thehill.com",
"rss": "http://thehill.com/rss/syndicator/19110"
},
{
@thomasxbanks
thomasxbanks / social_media_share_urls
Last active November 23, 2022 11:44
Quick and dirty, API-free social media share links
digg: http://digg.com/submit?phase=2&url=URL&title=TITLE
delicious: http://del.icio.us/post?url=URL&title=TITLE
stumbleupon: http://www.stumbleupon.com/submit?url=URL&title=TITLE
facebook: http://www.facebook.com/sharer.php?u=URL&title=TITLE
reddit: http://reddit.com/submit?url=URL&title=TITLE
technorati: http://technorati.com/faves?add=URL
orkut: http://promote.orkut.com/preview?nt=orkut.com&du=URL&tt=TITLE
myspace: http://www.myspace.com/Modules/PostTo/Pages/?u=URL&title=TITLE
twitter: https://twitter.com/intent/tweet?url=URL&text=TITLE&via=TWITUSER
yahoo: http://myweb2.search.yahoo.com/myresults/bookmarklet?t=TITLE&u=URL
@xeoncross
xeoncross / google_doc_cms.php
Created April 1, 2013 20:03
Fetch a google doc, parse it, cache it, and display the content inside a webpage using PHP.
<?php
// Based on http://www.realisingdesigns.com/2009/10/29/using-google-docs-as-a-quick-and-easy-cms/
function getUrl($url, $expires = 5)
{
$cache_file = __DIR__ . '/cache/' . preg_replace('~\W+~', '-', $url) . '.txt';
if( ! is_dir(__DIR__ . '/cache') AND ! mkdir(__DIR__ . '/cache')) {
die('Please create /cache directory');
}