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 docReady(fn) { | |
if ( | |
document.readyState === "complete" || | |
document.readyState === "interactive" | |
) { | |
setTimeout(fn, 1); | |
} else { | |
document.addEventListener("DOMContentLoaded", fn); | |
} | |
} |
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
export class JalaliDate { | |
static parse(value: string, parseFormat: string | string[]) { | |
const [year, month, day] = value.split('/'); | |
return new JalaliDate(parseInt(year, 10), parseInt(month, 10), parseInt(day, 10)); | |
} | |
constructor(public year: number, public month: number, public day: number) {} | |
clone(): JalaliDate { | |
return new JalaliDate(this.year, this.month, this.day); | |
} | |
isValid() { |
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
/** | |
* This script adds a button to soundcloud web that will simulate a scroll to the playlist and finally shuffles it. | |
* This way, it'll shuffle all the musics | |
*/ | |
function docReady(fn) { | |
if ( | |
document.readyState === "complete" || | |
document.readyState === "interactive" | |
) { |
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
{ | |
"trailingComma": "es5", | |
"tabWidth": 2, | |
"semi": true, | |
"singleQuote": true, | |
"printWidth": 140, | |
"htmlWhitespaceSensitivity": "ignore", | |
"useTabs": false, | |
"quoteProps": "as-needed", | |
"bracketSpacing": true, |
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
{ | |
"compileOnSave": false, | |
"compilerOptions": { | |
"baseUrl": "./src", | |
"paths": { | |
"@api/*": ["app/api/*"], | |
"@components/*": ["app/components/*"], | |
"@dialogs/*": ["app/dialogs/*"], | |
"@constants/*": ["app/constants/*"], | |
"@directives/*": ["app/directives/*"], |
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
{"lastUpload":"2020-11-26T16:28:09.723Z","extensionVersion":"v3.4.3"} |
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
var gulp = require('gulp'), | |
del = require('del'), | |
uglify = require('gulp-uglify'), | |
minifyCSS = require('gulp-minify-css'), | |
imagemin = require('gulp-imagemin'), | |
autoprefixer = require('gulp-autoprefixer'), | |
plumber = require('gulp-plumber'), | |
htmlmin = require('gulp-htmlmin'), | |
cache = require('gulp-cache'); |
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
unmap("d"); | |
unmap("R"); | |
unmap("E"); | |
unmap("e"); | |
unmap("x"); | |
unmap("gg"); | |
unmap("j"); | |
unmap("/"); | |
unmap("n"); | |
unmap("r"); |
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
git remote set-url origin https://name:[email protected]/repo.git |
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
@mixin svg-icon($icon_name) { | |
width: 16px; | |
display: inline-block; | |
&:before { | |
background: url('/assets/svg/#{$icon_name}'); | |
content: ''; | |
background-size: contain; | |
padding-bottom: 100%; | |
display: block; | |
} |