This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#-------------------------------------------- | |
#---- Developer: Debashis Roy Bhowmik ------- | |
#---- Email: debashis.buet08@gmail.com ------ | |
#----------- Website: debashis.me ----------- | |
#-- Github: https://github.com/wall-e-08/ --- | |
#-------------------------------------------- | |
set -e # Exit immediately if a command exits with a non-zero status. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function draggable(element) { | |
var isMouseDown = false; | |
// initial mouse X and Y for `mousedown` | |
var mouseX; | |
var mouseY; | |
// element X and Y before and after move | |
var elementX = element.style.left; | |
var elementY = element.style.top; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
env/ | |
env3.6/ | |
.*\.pyc | |
.*\.swp | |
.*\.swo | |
.*\.swn | |
.idea/ | |
.DS_Store | |
db.sqlite3 | |
.hg/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.$ = function(selector) { | |
var selectorType = 'querySelectorAll'; | |
if (selector.indexOf('#') === 0) { //if id selector | |
selectorType = 'getElementById'; | |
selector = selector.substr(1, selector.length); | |
} | |
return document[selectorType](selector); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* chrome */ | |
input[type=number]::-webkit-inner-spin-button, | |
input[type=number]::-webkit-outer-spin-button { | |
-webkit-appearance: none; | |
margin: 0; | |
} | |
/* firefox */ | |
input[type=number] { | |
-moz-appearance:textfield; |
NewerOlder