I hereby claim:
- I am jsanta on github.
- I am jsanta (https://keybase.io/jsanta) on keybase.
- I have a public key whose fingerprint is 8F01 7220 E8B9 4411 34E2 6E9C BF73 7302 E167 8987
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| // From: http://plnkr.co/edit/6CLDsz?p=info | |
| define([ | |
| 'angular', | |
| 'uiRouter', | |
| 'ocLazyLoad' | |
| ], function (angular) { | |
| angular.module('oc.lazyLoad.uiRouterDecorator', ['ui.router']).config(function($stateProvider) { | |
| // Generated countries for https://github.com/cheminfo-js/mrz | |
| // taken from https://github.com/newtondev/mrz-parser | |
| var _countries = []; | |
| _countries["AFG"] = "Afghanistan"; | |
| _countries["ALB"] = "Albania"; | |
| _countries["DZA"] = "Algeria"; | |
| _countries["ASM"] = "American Samoa"; | |
| _countries["AND"] = "Andorra"; | |
| _countries["AGO"] = "Angola"; |
| local ret_status="%(?:%{$fg_bold[green]%}:%{$fg_bold[red]%})" | |
| PROMPT='%n@%m [%*]:%d | |
| ${ret_status}%{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}' | |
| ZSH_THEME_GIT_PROMPT_PREFIX="git:(%{$fg[red]%}" | |
| ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" | |
| ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗%{$reset_color%}" | |
| ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})" |
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "type": "chrome", | |
| "request": "launch", | |
| "name": "Launch Chromium against localhost", | |
| "url": "http://localhost:4200/#", | |
| "webRoot": "${workspaceFolder}", | |
| "runtimeExecutable": "/usr/bin/chromium-browser", |
| [ | |
| '{{repeat(15, 30)}}', | |
| { | |
| index: '{{index(1)}}', | |
| guid: '{{guid()}}', | |
| color: '{{random("blue", "green", "red", "yellow")}}', | |
| company: '{{company().toUpperCase()}}', | |
| country: '{{country()}}' | |
| } | |
| ] |
| private activeFilters: Array<string> = []; | |
| toggleFilter(_filter: string) { | |
| const filterIdx: number = findIndex(this.activeFilters, (v) => v === _filter ); | |
| if (filterIdx !== -1) { | |
| pullAt(this.activeFilters, [ filterIdx ]); | |
| } else { | |
| this.activeFilters.push(_filter); | |
| } | |
| this.filteredData = filter(this.data, (v) => includes(this.activeFilters, v.color)); |
| resetFilters() { | |
| this.activeFilters = []; | |
| this.filteredData = this.data; | |
| } |
| import { Company } from './../../data/company-data'; | |
| import { Component, OnInit, Input } from '@angular/core'; | |
| @Component({ | |
| selector: 'app-data-grid', | |
| templateUrl: './data-grid.component.html', | |
| styleUrls: ['./data-grid.component.sass'] | |
| }) | |
| export class DataGridComponent implements OnInit { |
| <p> | |
| Press a button to visually filter results | |
| </p> | |
| <form> | |
| <div class="row"> | |
| <div class="float-left pr-1"><button type="button" class="btn btn-md" | |
| (click)="resetFilters()">All</button></div> | |
| <div class="float-left pr-1"><button type="button" class="btn btn-md btn-info" | |
| (click)="toggleFilter('blue')">Blue</button></div> | |
| <div class="float-left pr-1"><button type="button" class="btn btn-md btn-success" |