Skip to content

Instantly share code, notes, and snippets.

View rupesx26's full-sized avatar
👨‍💻
!Slepping ? code : sleep

rupesx26m rupesx26

👨‍💻
!Slepping ? code : sleep
View GitHub Profile
@rupesx26
rupesx26 / index.html
Last active January 9, 2019 05:56
Yeah! first gist - html code shortcut to generate multiple div with nested class name
<!-- .container>.item-${$}*8 (press tab) -->
@rupesx26
rupesx26 / config.js
Last active February 27, 2020 18:36
How to use multiple spin loader in page
//Hope you added spin.js and spin.css added in your html folder
// Custom spinner config
const customSpinner = {
custSpinUno: {
scale: 0.18,
color: '#d0d5db'
},
custSpinDos: {
scale: 0.18,
@rupesx26
rupesx26 / index.js
Created January 27, 2019 12:35
Basic of javascript
//How to remind type of data type
//in javascript there are 7 type of data
//undefine null string boolean number symbol object
//you can remember with short code sunbons
/*
S = string
U = undefine
N = null
B = boolean
O = object
@rupesx26
rupesx26 / filter.js
Created March 10, 2019 19:58
filter func() for Odd/Even, string separation
let vals = [1,2,3,4,5,6,7,8,9]
let newVals =[]
newVals.push.apply(newVals, vals);
let newValsOdd = []
newValsOdd.push.apply(newValsOdd, vals);
function isEven (num) {
return (num % 2 === 0)
}
@rupesx26
rupesx26 / machine.js
Created November 22, 2019 12:16
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions