Skip to content

Instantly share code, notes, and snippets.

@brixtonasias
brixtonasias / README.md
Last active August 29, 2015 14:09 — forked from vanto/README.md

OEmbed Liquid Tag for Jekyll

This is a simple liquid tag that helps to easily embed images, videos or slides from OEmbed enabled providers. It uses Magnus Holm's great oembed gem which connects to the OEmbed endpoint of the link's provider and retrieves the HTML code to embed the content properly (i.e. an in-place YouTube player, Image tag for Flickr, in-place slideshare viewer etc.). By default it supports the following OEmbed providers (but can fallback to Embed.ly or OoEmbed for other providers):

  • Youtube
  • Flickr
  • Viddler
  • Qik
  • Revision3
  • Hulu
  • Vimeo
@brixtonasias
brixtonasias / textview.m
Created October 10, 2013 11:15
Making a UITextView look like a TextField in iOS7
textView.layer.borderWidth = 1;
textView.layer.borderColor = [[[UIColor grayColor] colorWithAlphaComponent:0.25] CGColor];
textView.layer.cornerRadius = 5;
@brixtonasias
brixtonasias / gist:6460292
Last active December 22, 2015 10:39
vagrant and chef
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path ="../recipes"
chef.add_recipe "git"
chef.add_recipe "mongodb::10gen_repo"
chef.add_recipe "vim"
chef.add_recipe "curl"
chef.add_recipe "apt"
chef.add_recipe "build-essential"
end
{% load disqus_tags flatblock_tags cache navbar generic_content blog compress analytics elsewhere feeds i18n archive %}
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>{% block title %}{{ BLOG_SETTINGS.site_name }}{% endblock %}</title>