Skip to content

Instantly share code, notes, and snippets.

View MaxySpark's full-sized avatar
🐧
JS in Front JS in Back

BHARGAB MaxySpark

🐧
JS in Front JS in Back
View GitHub Profile
@MaxySpark
MaxySpark / index.css
Created July 24, 2021 17:13
React Tailwind
@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';
Install-Module oh-my-posh -Scope CurrentUser
Get-PoshThemes
if (!(Test-Path -Path $PROFILE.CurrentUserAllHosts)) {
New-Item -ItemType File -Path $PROFILE.CurrentUserAllHosts -Force
}
const HtmlWebPackPlugin = require('html-webpack-plugin');
const MiniCSSExtractlugin = require('mini-css-extract-plugin');
module.exports = {
module: {
rules: [
{
test: /\.js$/,
exclude: /node-modules/,
use: {
const abc = [[0,1,2],[0,1],[0],[0,1,2]];
function countIndex(a, k) {
if (a === 0 && k === 0) {
return 0;
} else if (k !== 0) {
return this.countIndex(a, k-1) + 1;
} else {
const totalItem = abc[a-1].length;
source /usr/share/powerline/bindings/tmux/powerline.conf
set -g mouse on
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# split panes using | and -
bind / split-window -h
@MaxySpark
MaxySpark / gist:5206df0090068297c98277a8a68a694a
Created April 9, 2020 16:53 — forked from lsauer/gist:5196979
JavaScript List of selected MIME types (JSON)
//lsauer.com , lo sauer 2013
//JavaScript List of selected MIME types
//A comprehensive MIME List is available here: https://gist.github.com/lsauer/2838503
var mimeTypes =
{
'a' : 'application/octet-stream',
'ai' : 'application/postscript',
'aif' : 'audio/x-aiff',
'aifc' : 'audio/x-aiff',
'aiff' : 'audio/x-aiff',
def factorial(n: Int): Int = {
def loop(acc: Int, n: Int): Int =
if (n == 0) acc
else loop(acc * n, n-1)
loop(1, n)
}
factorial(5)
def sum(f: Int => Int, a: Int, b: Int): Int = {
[
{
"currency": "Albania Lek",
"abbreviation": "ALL",
"symbol": "Lek"
},
{
"currency": "Afghanistan Afghani",
"abbreviation": "AFN",
"symbol": "؋"
@MaxySpark
MaxySpark / Card.dart
Created September 9, 2019 14:25
Dart Learn
void main() {
var deck = new Deck();
// print(deck.cardsWithSuits('Diamonds'));
deck.removeCard('Diamonds', 'Ace');
print(deck);
// deck.shuffle();
// print(deck.deal(5));
// print(deck);
}
@MaxySpark
MaxySpark / Docker.sh
Created September 2, 2019 11:10
Docker Commands
docker run hello-world
docker run busy box echo hello world
docker ps
docker ps --all
docker start id_from_ps
docker start -a id_from_ps
docker stop id
docker kill id
docker run = docker create + docker start
docker system prune