Skip to content

Instantly share code, notes, and snippets.

Avatar

Nirvana Tikku nirvanatikku

  • New York, USA
View GitHub Profile
@nirvanatikku
nirvanatikku / sample-tubeplayer.html
Last active Dec 3, 2016
Simple YouTube Player Management, using the jQuery TubePlayer Plugin
View sample-tubeplayer.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="dist/jquery.tubeplayer.min.js"></script>
</head>
<body>
<div id="youtube-player"></div>
<script type="text/javascript">
@nirvanatikku
nirvanatikku / css_inline_transformer.js
Created Dec 2, 2016
JavaScript CSS Inline Style Transformer (convert CSS + HTML into HTML with inline styles)
View css_inline_transformer.js
/**
* CSS Inline Transform v0.1
* http://tikku.com/css-inline-transformer-simplified
*
* Copyright 2010-2012, Nirvana Tikku
* Dual licensed under the MIT or GPL Version 2 licenses.
* https://github.com/jquery/jquery/blob/master/MIT-LICENSE.txt
*
* This tool leverages the jQuery library.
*
@nirvanatikku
nirvanatikku / gist:11a9eb7aa063e5aef097
Created Sep 10, 2014
Leveraging Angular's $http service from Backbone
View gist:11a9eb7aa063e5aef097
// For those using Backbone within an Angular application
Backbone.ajax = function(arg){
var success = arg.success;
var error = arg.error;
arg.method = arg.type;
return $http(arg)
.success(success)
.error(error);
};