Skip to content

Instantly share code, notes, and snippets.

View wall-e-08's full-sized avatar
😠
?

Debashis Roy Bhowmik wall-e-08

😠
?
View GitHub Profile
@wall-e-08
wall-e-08 / install_django-2.1.3.sh
Last active August 17, 2019 19:25
one command to install django(tested with django=2.1.3) with virtual_env, id, password and all apps in one project folder
#!/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.
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;
@wall-e-08
wall-e-08 / .gitignore
Last active November 27, 2018 10:20
gitignore file for django/python app
env/
env3.6/
.*\.pyc
.*\.swp
.*\.swo
.*\.swn
.idea/
.DS_Store
db.sqlite3
.hg/
@wall-e-08
wall-e-08 / jquery-selector.js
Last active July 26, 2018 10:56
jquery dollar sign selector in plain js
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);
};
@wall-e-08
wall-e-08 / no-spinner.css
Last active July 26, 2018 08:08
input type number with no spinner
/* 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;