Skip to content

Instantly share code, notes, and snippets.

View sajanv88's full-sized avatar
🏠
Working from home

Sajan sajanv88

🏠
Working from home
View GitHub Profile
@sajanv88
sajanv88 / docker_setup.sh
Created May 26, 2023 14:28
Install docker in linux server
sudo apt-get update
sudo apt-get install ca-certificates curl gnupg -y
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
echo \
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
@sajanv88
sajanv88 / _responsive.scss
Last active March 9, 2022 11:51
SCSS Responsive mixin
// break points
$sm: 576px;
$md: 768px;
$lg: 992px;
$xl: 1200px;
$xxl: 1400px;
@mixin respond-to($media) {
@if $media == sm {
@media (min-width: $sm) {
@sajanv88
sajanv88 / modern+moduler.js
Created August 29, 2018 10:01
Simple Modern module pattern in JavaScript
/**
* myModule is a mini framework allows you to create your own dependency modules.
*/
const myModule = (function () {
var modules = {};
function define(name, deps, impl) {
for(var i = 0; i<deps.length; i++) {
deps[i] = modules[deps[i]];
}
modules[name] = impl.apply(impl, deps);