Skip to content

Instantly share code, notes, and snippets.

View screeley's full-sized avatar

Sean Creeley screeley

View GitHub Profile
"""
Copyright (c) 2009, Sean Creeley
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
@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>
{
"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>
@screeley
screeley / form.html
Created August 9, 2011 16:00
Creating a Facebook-like URL submission tool with Embedly (Html)
<form action="." method="post">
<textarea id="id_status" name="status">
</textarea>
<input type="submit" value="Save"/>
</form>
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'