Skip to content

Instantly share code, notes, and snippets.

Avatar

Alexander Dimitrov adimitrov

  • Sofia, Bulgaria
View GitHub Profile
@adimitrov
adimitrov / Gemfile
Last active Dec 20, 2015
Jira Authentication for Rails Admin Panel
View Gemfile
gem 'crowd_rest'
gem "twitter-bootstrap-rails"
@adimitrov
adimitrov / x-editable-pikaday.js
Created Feb 19, 2013
Simple plugin for x-editable for using pikaday datepicker.
View x-editable-pikaday.js
(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 Oct 29, 2012 — forked from paulirish/rAF.js
requestAnimationFrame polyfill
View rAF.js
// 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) {
You can’t perform that action at this time.