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 { | |
ChartAxisXOptions, | |
ChartAxisYOptions, | |
ChartDataSeriesOptions, | |
ChartOptions, | |
} from 'canvasjs'; | |
export interface StockChartSlider { | |
maskColor: string; | |
maskOpacity: number; |
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
/** | |
* Print a console message from a npm script by only one long signal flag passing at a time | |
* --start prints outputs.start | |
*/ | |
const signal = "--"; | |
const outputs = { | |
start: `Print a message for passed flag start`, | |
build: `Print a message for passed flag build`, | |
}; |
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
. | |
├── actions | |
│ ├── cinematic-scene.actions.spec.ts | |
│ ├── cinematic-scene.actions.ts | |
│ └── index.ts | |
├── components | |
│ ├── cinematic-scene | |
│ │ ├── cinematic-scene.component.spec.ts | |
│ │ └── cinematic-scene.component.ts | |
│ ├── organisms |
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
{ | |
"$schema": "http://json-schema.org/schema", | |
"id": "fix-mod", | |
"type": "object", | |
"properties": { | |
"name": { | |
"type": "string", | |
"description": "Library name", | |
"$default": { | |
"$source": "argv", |
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 { chain, externalSchematic, Rule } from '@angular-devkit/schematics'; | |
export default function(schema: any): Rule { | |
return chain([ | |
externalSchematic('@nrwl/workspace', 'lib', { | |
name: schema.name, | |
}), | |
]); | |
} |
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 turkish_NumberToWords = (number = 0) => { | |
/* | |
* Assign spelling words in seperate arrays | |
*/ | |
const steps = ['', 'bir', 'iki', 'üç', 'dört', 'beş', 'altı', 'yedi', 'sekiz', 'dokuz'] | |
const tens = ['', 'on', 'yirmi', 'otuz', 'kırk', 'elli', 'altmış', 'yetmiş', 'seksen', 'doksan'] | |
const hundreds = ['', 'yüz', 'ikiyüz', 'üçyüz', 'dörtyüz', 'beşyüz', 'altıyüz', 'yediyüz', 'sekizyüz', 'dokuzyüz'] | |
const nS = ['', 'bin', 'milyon', 'milyar', 'trilyon', 'katrilyon', 'kentilyon', 'seksilyon', 'septilyon', 'oktilyon'] | |
/* | |
* Maximum number step is 30 |
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 Vue from 'vue' | |
import AboutModal from './components/AboutModal' | |
const Components = { | |
AboutModal | |
} | |
Object.keys(Components).forEach(name => { | |
Vue.component(name, Components[name]) |
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
<template> | |
<transition name="about-modal"> | |
<div class="about-modal-mask" :style="maskBackgroud"> | |
<div class="about-modal-wrapper"> | |
<div | |
class="about-modal-container" | |
:style="modalStyles" | |
:class="`modal__${position}`" | |
> | |
<div class="about-modal-header" v-if="header"> |
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
// Usage: | |
// animator( | |
// document.getElementsByClassName('init-btn'), | |
// 'bounce' | |
// ) | |
const animator = ( | |
element, | |
animation, | |
speed = '', | |
delay = '', |
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
alias update-ubuntu='sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade -y && sudo apt-get autoremove -y' | |
alias make-git-ignore='cp ~/.gitignore_global .gitignore' | |
alias v-up='cd ~/Homestead && vagrant up' | |
alias make-eslint='cp ~/.eslintrc_global .eslintrc' | |
alias homestead-config='nano ~/homestead/Homestead.yaml' | |
alias run-vagrant='CWD="$(pwd)" && cd ~/homestead && vagrant reload --provision && vagrant up && cd $(echo $CWD)' | |
alias homestead-bash='CWD="$(pwd)" && cd ~/homestead && vagrant ssh && cd $(echo $CWD)' | |
alias vm='ssh [email protected] -p 2222' | |
alias set-alias='sudo nano ~/.bash_aliases && source ~/.bash_aliases' | |
alias terminate-all='vagrant halt && shutdown -h +1' |
NewerOlder