Skip to content

Instantly share code, notes, and snippets.

View murdockcrc's full-sized avatar

Luis Delgado murdockcrc

View GitHub Profile
@murdockcrc
murdockcrc / gist:396d752f6ba960b526f4
Last active August 29, 2015 14:22
cropbox-complete01
<div class="container-fluid profile-canopy">
<div class="row">
<div class="profile-canopy-bg bg-public">
<img alt src="http://i.imgur.com/Dbqggm5.jpg"/>
<button ng-show="isAuthor()" ng-click="editBackground()" type="button" class="btn btn-primary btn-lg btn-bg-edit">Edit</button>
</div>
<div class="canopy-bg-edit hidden">
<div class="profile-canopy-bg imageBox-bg">
<div class="action">
<input type="file" id="bg-file" style="float:left; width: 250px">
@murdockcrc
murdockcrc / gist:8f802d88f6f6a4c846f5
Last active August 29, 2015 14:22
cropbox - JScomplete
$('.bg-public').on('click', editBackground);
function initializeCropper(options){
var cropper = $(options.imageBox).cropbox(options);
var originalImgSrc = options.imgSrc;
$(options.fileInput).on('change', function(){
var reader = new FileReader();
reader.onload = function(e) {
options.imgSrc = e.target.result;
cropper = $(options.imageBox).cropbox(options);
@murdockcrc
murdockcrc / gist:48c803de86a453560fe5
Last active August 29, 2015 14:16
HdV - Hit Parade JSON
{
"meta": {
"code": 200
},
"data": [
{
"attribution": null,
"tags": [],
"type": "video",
"location": null,