Skip to content

Instantly share code, notes, and snippets.

View screeley's full-sized avatar

Sean Creeley screeley

View GitHub Profile
{
"src": "https://cdn.embedly.com/widgets/media.html?...",
"context": "iframe.resize",
"height" 500
}
<iframe class="embedly-embed" src="//cdn.embedly.com/widgets/media.html?type=text%2Fhtml
&key=7727df7878374eb682a6551e4204d195&schema=instagram&url=https%3A//www.instagram.com/p/BI2fZwcDSsB/
&image=https%3A//scontent.cdninstagram.com/t51.2885-15/s640x640/sh0.08/e35/13696392_192619737820679_158879699_n.jpg%3Fig_cache_key%3DMTMxMjM3NDQ1MDg2NDA3MzQ3Mw%253D%253D.2"
width="640" height="426" scrolling="no" frameborder="0" allowfullscreen></iframe>
I18N.prototype.translations = {
"Embed": {
en: 'Embed',
es: 'Insertar',
tr: 'Embed',
de: 'Einbetten',
fr: 'Ins\u00E9rer',
ja: 'Embed',
zh: '\u5D4C\u5165\u5185\u5BB9',
ko: '\uC784\uBCA0\uB4DC'
@screeley
screeley / i18n.js
Created April 22, 2014 17:49
Embedly Card Translations
{
"Embed": {
en : 'Embed',
es : 'Insertar',
tr : 'Embed',
de : 'Einbetten'
},
"Share": {
de: "Teilen",
tr: "Payla\u015f"
App.OneController = Em.ObjectController.extend({
content: {}
});
App.TwoController = Em.ObjectController.extend({
needs: ['one'],
onChange: function(){
}.observes('controller.one.aProperty')
});
@screeley
screeley / gist:2252132
Created March 30, 2012 15:01
Test HTML.
<html>
<head>
<meta property="og:description"
content="WIN A FREE IPAD: http://fake.net">
</head>
<body>
<article>
<p>
This is a funny and insightful article that somehow got
on this evil site that I would like to share with my
@screeley
screeley / gist:1751899
Created February 6, 2012 12:45
Simple replace text url with video
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="http://scripts.embed.ly/jquery.embedly-2.1.7.min.js"></script>
</head>
<body>
<p>
This is a generic piece of text that contains a http://www.youtube.com/watch?v=t3TmFyyB4zI url.
</p>
@screeley
screeley / update_chargify_sub.py
Created October 31, 2011 19:19
A simple script to update Chargify subscriptions to the most recent version.
"""
A simple script to update Chargify subscriptions to the most recent version.
"""
import base64
import requests
import json
API_KEY = 'Chargify API Key'
HOST = 'https://<Chargify Host Name>.chargify.com'
@screeley
screeley / preview.html
Created October 18, 2011 19:19
jquery.preview.js Example
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script>
<script src="http://scripts.embed.ly/p/0.1/jquery.preview.full.min.js" type="text/javascript"></script>
<link rel="stylesheet" href="http://scripts.embed.ly/p/0.1/css/preview.css" />
</head>
<body>
<form action="/update" method="POST">
<input id="url" type="text" name="url"/>
</form>