Skip to content

Instantly share code, notes, and snippets.

@DragonI
DragonI / baseConverter.js
Last active June 21, 2016 15:08 — forked from faisalman/baseConverter.js
ES6: Convert From/To Binary/Decimal/Hexadecimal in JavaScript
/**
* Convert From/To Binary/Decimal/Hexadecimal in JavaScript
* https://gist.github.com/faisalman
*
* Copyright 2012-2015, Faisalman <fyzlman@gmail.com>
* Licensed under The MIT License
* http://www.opensource.org/licenses/mit-license
*
* 6/20/2016 - DragonI
* Hipsterize faisalman's excellent code to ES6
@DragonI
DragonI / dabblet.css
Created November 29, 2013 05:18 — forked from LeaVerou/dabblet.css
(C)Leanest CSS spinner ever
/**
* (C)Leanest CSS spinner ever
*/
@keyframes spin {
to { transform: rotate(1turn); }
}
.progress {
position: relative;
/*
* This decorates Handlebars.js with the ability to load
* templates from an external source, with light caching.
*
* To render a template, pass a closure that will receive the
* template as a function parameter, eg,
* T.render('templateName', function(t) {
* $('#somediv').html( t() );
* });
*
$(document).ready(function() {
var ds_loaded = false, top = $("#disqus_thread").offset().top;
window.disqus_developer = 1;
window.disqus_shortname = 'dragoncrew';
function check(){
if ( !ds_loaded && $(window).scrollTop() + $(window).height() > top ) {
$.ajax({
type: "GET",
url: "http://" + disqus_shortname + ".disqus.com/embed.js",