Skip to content

Instantly share code, notes, and snippets.

View kant's full-sized avatar
🎹
🎼🎶

Darío Hereñú kant

🎹
🎼🎶
  • Planet Earth...
  • X @kant
View GitHub Profile
@kant
kant / makemyvideobigger.js
Created March 17, 2012 01:46 — forked from OscarGodson/makemyvideobigger.js
Tumblr + Vimeo Mod To Make Videos Larger Than 500
/**
* Makes Vimeo videos on Tumblr larger than the max of 500px that Tumblr forces
* Change the 650 to whatever you want, but do NOT add px or %
* The height, by default, is set to auto which will calculate the 16:9 video size.
* You can set the height to a static number as well if you want.
* If you have any questions feel free to ask me: @oscargodson | oscargodson.com
*/
(function(){
var iframes = document.body.getElementsByTagName('iframe')
, newVimeoWidth = 650
@gnippy
gnippy / gist:2008385
Created March 9, 2012 20:08
Tumblr Posts Sample Payload (Activity Streams)
{
"id":"tag:gnip.tumblr.com:2012:post/19013144124/post",
"tumblrRebloggedRoot":{
"author":{
"link":"http://askmollytheredsolly.tumblr.com/",
"displayName":"Hey! How ya doin'?"
},
"link":"http://askmollytheredsolly.tumblr.com/post/18973845645/scarlet-i-like-you-teal-id-date-you-red"
},
"verb":"post",
* {
-moz-perspective: 80px;
-moz-transform-style: preserve-3d;
-moz-transform: rotateX(0) rotateY(0) rotateZ(360);
-moz-animation: upyourscache1331120766243 5s infinite linear;
-webkit-perspective: 80px;
-webkit-transform-style: preserve-3d;
-webkit-transform: rotateX(0) rotateY(0) rotateZ(360);
-webkit-animation: upyourscache1331120766243 5s infinite linear;
@eduardodx
eduardodx / gist:1618807
Created January 16, 2012 02:59 — forked from stammy/gist:1610222
some startups on tumblr (that should probably move off tumblr)
http://tumblr.everlane.com/
http://blog.hipmunk.com/
http://blog.shoplrapp.com/
http://blog.mailgun.net/
http://blog.grooveshark.com/
http://blog.path.com/
http://blog.instagram.com/
http://blog.oink.com/
http://blog.shelby.tv/
http://blog.roamz.com/
@matthewhudson
matthewhudson / gist:1603502
Created January 12, 2012 22:21
Integrate Open Graph with Tumblr
<!-- Open Graph tags for your home page (index). -->
<meta property="og:site_name" content="{Title}" />
<meta property="fb:app_id" content="FACEBOOK_APPID"/>
<meta property="fb:admins" content="FACEBOOK_USERID" />
<meta property="og:description" content="{MetaDescription}" />
<meta property="og:locale" content="en_US" />
{block:IndexPage}
<meta property="og:image" content="{PortraitURL-128}" />
<meta property="og:title" content="{Title}" />
@jonathanmoore
jonathanmoore / gist:1473089
Created December 13, 2011 17:45
Tumblr <embed> striping
<!-- Embed code for Mixcloud -->
<object width="480" height="480">
<param name="movie" value="http://www.mixcloud.com/media/swf/player/mixcloudLoader.swf?feed=http%3A%2F%2Fwww.mixcloud.com%2Fvlekrecords%2Fssaliva-lrzpm%2F&embed_uuid=ae879085-19b7-4e66-86b0-9e2e50835c9d&stylecolor=&embed_type=widget_standard"></param>
<param name="allowFullScreen" value="true"></param>
<param name="wmode" value="opaque"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://www.mixcloud.com/media/swf/player/mixcloudLoader.swf?feed=http%3A%2F%2Fwww.mixcloud.com%2Fvlekrecords%2Fssaliva-lrzpm%2F&embed_uuid=ae879085-19b7-4e66-86b0-9e2e50835c9d&stylecolor=&embed_type=widget_standard" type="application/x-shockwave-flash" wmode="opaque" allowscriptaccess="always" allowfullscreen="true" width="480" height="480"></embed>
</object>
<!-- Embed code after Tumblr strips the <embed> tag -->
@andrewfulton
andrewfulton / minimalist_plus_disqus
Created December 13, 2011 12:13
Tumblr's minimalist theme WITH a disqus block
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
Theme: The Minimalist v1.
Design: The Minimalist (http://minimalist.co)
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
@vranystepan
vranystepan / dark_wood.html
Created December 5, 2011 10:43
Dark Wood Tumblr Theme
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="http://static.tumblr.com/tuwgrx5/omNlvq55u/style.css" />
<link rel="shortcut icon" href="{Favicon}">
<link rel="alternate" type="application/rss+xml" href="{RSS}">
<title>{Title}{block:PostTitle} - {PostTitle}{/block:PostTitle}</title>
<meta name="text:Tagline" content=""/>
@lumin3000
lumin3000 / boutofcontext_image1280.js
Created October 22, 2011 14:28
transform the 500px images to 1280 images in boutofcontext.com (for tumblr backup)
var newScript = document.createElement('script');
newScript.type = 'text/javascript';
newScript.src = ' https://ajax.googleapis.com/ajax/libs/mootools/1.4.1/mootools-yui-compressed.js';
document.getElementsByTagName("body")[0].appendChild(newScript);
//###make a bookmarklet using the code before this line###
var post = $$('div#post');
var posturl,
postid,
imageid,
image1280url,
@treffynnon
treffynnon / gist:1295904
Created October 18, 2011 16:45
My current tumblr theme - http://blog.simonholywell.com
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<!--
Vacant Modified - 1.7
Designed by Sam Stefan samstefan.co.uk
Modified by Simon Holywell simonholywell.com
-->