This file contains hidden or 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
| // ./__mocks__/localStorage.js | |
| let mockStorage = {}; | |
| module.exports = window.localStorage = { | |
| setItem: (key, val) => Object.assign(mockStorage, {[key]: val}), | |
| getItem: (key) => mockStorage[key], | |
| clear: () => mockStorage = {} | |
| }; | |
This file contains hidden or 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 { flow, omit, head, set, at } = require("lodash/fp") | |
| const object = { | |
| id: 'CA1', | |
| longName: 'The name', | |
| status: 'open', | |
| another1: 'value1', | |
| another2: 'value2' | |
| }; |
People
:bowtie: |
😄 :smile: |
😆 :laughing: |
|---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
This file contains hidden or 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 { Pipe, PipeTransform } from '@angular/core'; | |
| import { sortBy, reverse, flow, identity } from 'lodash/fp'; | |
| @Pipe({ name: 'sortBy' }) | |
| export class SortByPipe implements PipeTransform { | |
| transform(list, field, direction = 'DESC') { | |
| return flow([ | |
| sortBy([field]), |
This file contains hidden or 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 { Directive, HostListener, Input } from '@angular/core'; | |
| /** | |
| * @Usage: <a CopyToClipBoard="I am to be copied">Copy to Clipboard</a> | |
| */ | |
| @Directive({ | |
| selector: '[CopyToClipBoard]' | |
| }) | |
| export class CopyToClipBoardDirective { |
This file contains hidden or 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 { Directive, HostListener, Input } from '@angular/core'; | |
| import { ElectronService } from 'ngx-electron'; | |
| /** | |
| * @Usage: <a external href="https://www.gistoapp.com">link</a> | |
| * @dependencies: ngx-electron | |
| */ | |
| @Directive({ | |
| selector: '[external]' |
This file contains hidden or 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
| handleClick = () => { | |
| const chart = this.chart.state.chart; | |
| chart.export.capture({}, () => { | |
| chart.export.toJPG({}, (data) => { | |
| chart.export.download(data, chart.export.defaults.formats.JPG.mimeType, 'amCharts.JPG'); | |
| }); | |
| }); | |
| } |
This file contains hidden or 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
| Hello, I am some test 22 |
This file contains hidden or 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
| <scheme name="Monokai Sublime Text 3" version="142" parent_scheme="Default"> | |
| <option name="FONT_SCALE" value="1.0" /> | |
| <metaInfo> | |
| <property name="created">2018-09-25T20:33:45</property> | |
| <property name="ide">WebStorm</property> | |
| <property name="ideVersion">2018.3.0.0</property> | |
| <property name="modified">2018-09-25T20:34:03</property> | |
| <property name="originalScheme">Monokai Sublime Text 3</property> | |
| </metaInfo> | |
| <option name="LINE_SPACING" value="1.0" /> |