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
#!/bin/bash | |
usage() { | |
__usage=" | |
Usage: $(basename $0) [OPTIONS] | |
Options: | |
-p, executable path <string> [required] Absolute path to executable file | |
-i, icon path <string> [required] Absolute path ti icon file | |
-c, command <string> [required] Command shortcut name for executable file |
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
🌞 Morning 428 commits ███████▎░░░░░░░░░░░░░ 35.0% | |
🌆 Daytime 677 commits ███████████▌░░░░░░░░░ 55.3% | |
🌃 Evening 109 commits █▊░░░░░░░░░░░░░░░░░░░ 8.9% | |
🌙 Night 10 commits ▏░░░░░░░░░░░░░░░░░░░░ 0.8% |
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
TypeScript 6 hrs 48 mins ████████▌░░░░░░░░░░░░ 40.6% | |
JSON 3 hrs 53 mins ████▉░░░░░░░░░░░░░░░░ 23.3% | |
Vue.js 1 hr 40 mins ██░░░░░░░░░░░░░░░░░░░ 10.0% | |
YAML 1 hr 21 mins █▋░░░░░░░░░░░░░░░░░░░ 8.1% | |
SCSS 1 hr 18 mins █▋░░░░░░░░░░░░░░░░░░░ 7.8% |
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
import java.security.MessageDigest; | |
import java.security.NoSuchAlgorithmException; | |
class HelloWorld { | |
public static void main(String[] args) { | |
String xOctals = "\\151\\152\\153\\226"; | |
System.out.println(xOctals); | |
String[] xOctalsArr = xOctals.split("\\\\"); |
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
FROM php:8.0 | |
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | |
RUN apt-get update -y && apt-get upgrade -y && apt-get install git libssl-dev -y | |
# Install unzip utility and libs needed by zip PHP extension | |
RUN apt-get update && apt-get install -y \ | |
zlib1g-dev \ | |
libzip-dev \ |
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
type ICal = (differenceSeconds: number) => string | |
interface IComparisons { | |
graterThan: number, | |
lessThan: number, | |
action: ICal | |
} | |
export function passedTime(timestamp: number, faNum: boolean = false): string { |
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
const numberToString = (str:string):string=>{ | |
let firstNum = (str.match(/\d+/) ?? [undefined])[0] | |
// couldn't find number | |
if(isNaN(+firstNum)) return str; | |
const num = parseInt(firstNum) | |
const stringNum = (num)=>{ | |
switch (num) { |
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 WebConsole(element) { | |
var that = this; | |
this.element = element; | |
this.inputElement = null; | |
this.actions = {}; | |
this.actionExitCode = { | |
ok: 'ok', | |
error: 'error', |
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
RUN apt-get install -y netcat | |
RUN mkdir -p ~/.ssh/ | |
RUN touch ~/.ssh/config | |
RUN echo 'Host gitlab.com' >> ~/.ssh/config | |
RUN echo 'ProxyCommand nc -X connect -x fodev.org:8118 %h %p' >> ~/.ssh/config | |
RUN git config --global http.proxy fodev.org:8118 |
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
const eastazarbaijan1 = ['آذرشهر' ,'اسکو' ,'اهر' ,'بستانآباد' ,'بناب' ,'تبریز' ,'جلفا' ,'چاراویماق' ,'سراب' ,'شبستر', 'مراغه']; | |
const westazarbaijan2 = ['ارومیه' ,'اشنویه' ,'بوکان' ,'پیرانشهر' ,'تکاب' ,'چالدران' ,'خوی' ,'سردشت' ,'سلماس' ,'شاهیندژ' ,'ماکو' ,'مهاباد' ,'میاندوآب' ,'نقده']; | |
const ardabil3 = ['اردبیل' ,'بیلهسوار' ,'پارسآباد' ,'خلخال' ,'کوثر' ,'گِرمی' ,'مِشگینشهر' ,'نَمین' ,'نیر']; | |
const esfahan4 = ['آران و بیدگل' ,'اردستان' ,'اصفهان' ,'برخوار و میمه' ,'تیران و کرون' ,'چادگان' ,'خمینیشهر' ,'خوانسار' ,'سمیرم' ,'شهرضا' ,'سمیرم سفلی' ,'فریدن' ,'فریدونشهر' ,'فلاورجان' ,'کاشان' ,'گلپایگان' ,'لنجان' ,'مبارکه' ,'نائین' ,'نجفآباد' ,'نطنز']; | |
const ilam5 = ['آبدانان' ,'ایلام' ,'ایوان' ,'درهشهر' ,'دهلران' ,'شیروان و چرداول' ,'مهران']; | |
const booshehr6 = ['بوشهر' ,'تنگستان' ,'جم' ,'دشتستان' ,'دشتی','دیر' ,'دیلم' ,'کنگان' ,'گناوه']; | |
const tehran7 = ['اسلامشهر' ,'پاکدشت' ,'تهران' ,'دماوند' ,'رباطکریم' ,'ری' ,'ساوجبلاغ' ,'شمیرانات' ,'شهریار' ,'فیروزکوه' ,'ورامین']; | |
const |
NewerOlder