This is a sample post. Here should go the post content
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(global, $){ | |
var YoutubeVideo = function(options) { | |
var self = this; | |
if (!options.id || typeof options.container.jquery === 'undefined') { | |
return false; | |
} | |
self.videoId = options.id; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Taken from http://stackoverflow.com/questions/10274391/is-it-possible-to-load-handlebar-template-with-script-tag-or-define-handlebar-t/13474886#13474886 | |
Ember.View.reopen({ | |
templateForName: function(name, type) { | |
if (!name) { return; } | |
var templates = Ember.get(this, 'templates'), | |
template = Ember.get(templates, name); | |
if (!template) { | |
$.ajax({ |
This guide is particularly dedicated to @airaburabu
- Go to your Tumblr's customization panel (default at http://www.tumblr.com/customize)
- Click on Edit HTML
- Look up for
<a class="like item" onclick="LikePost('{PostID}','{ReblogURL}',this); $(this).css('background-image', 'url(http://assets.tumblr.com/images/iframe_like_active_alpha.png)')"></a><a href="{ReblogURL}?redirect_to=http%3A%2F%2F{Name}.tumblr.com%2Fpage%2F{CurrentPage}" class="reblog item" target="_blank"></a>
And replace it with:
{LikeButton size="12" color="white"}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var parse = function (categories) { | |
categories.forEach(function (category) { | |
if (category.categories && category.categories.length) { | |
console.group(category.name); | |
parse(category.categories); | |
console.groupEnd(category.name); | |
} else { | |
console.log(category.name); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"bold_folder_labels": true, | |
"font_size": 12.0, | |
"highlight_line": true, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"tab_size": 4, | |
"theme": "Soda Dark.sublime-theme", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/(alcatel|amoi|android|avantgo|blackberry|benq|cell|cricket|docomo|elaine|htc|iemobile|iphone|ipad|ipaq|ipod|j2me|java|midp|mini|mmp|mobi|motorola|nec-|nokia|palm|panasonic|philips|phone|playbook|sagem|sharp|sie-|silk|smartphone|sony|symbian|t-mobile|telus|up\.browser|up\.link|vodafone|wap|webos|wireless|xda|xoom|iPhone)/i |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* General Demo Style */ | |
@import url(http://fonts.googleapis.com/css?family=Lato:300,400,700|Satisfy); | |
*, *:after, *:before { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } | |
body, html { font-size: 100%; padding: 0; margin: 0;} | |
body { | |
font-family: 'Lato', Calibri, Arial, sans-serif; | |
color: #fff; | |
background: #333; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// LikePhoto.js | |
exports.main = function(request, response){ | |
var query = new Parse.Query("Photo"); | |
var objid = request.params.objectid; | |
return query.get(objid) | |
// Photo | |
.then(function(photo) { |