Skip to content

Instantly share code, notes, and snippets.

View adimitrov's full-sized avatar

Alexander Dimitrov adimitrov

  • Sofia, Bulgaria
View GitHub Profile
@adimitrov
adimitrov / Gemfile
Last active December 20, 2015 15:38
Jira Authentication for Rails Admin Panel
gem 'crowd_rest'
gem "twitter-bootstrap-rails"
@adimitrov
adimitrov / x-editable-pikaday.js
Created February 19, 2013 00:53
Simple plugin for x-editable for using pikaday datepicker.
(function ($) {
var PikadayEditable = function (options) {
this.init('pikaday', options, PikadayEditable.defaults);
};
$.fn.editableutils.inherit(PikadayEditable, $.fn.editabletypes.abstractinput);
$.extend(PikadayEditable.prototype, {
render: function () {
@adimitrov
adimitrov / rAF.js
Created October 29, 2012 20:51 — forked from paulirish/rAF.js
requestAnimationFrame polyfill
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller
// fixes from Paul Irish and Tino Zijdel
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];
for(var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) {