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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
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 a directory of text files as google keep notes. | |
| #Text Filename is used for the title of the note. | |
| import gkeepapi, os | |
| username = '[email protected]' | |
| password = 'your app password' | |
| keep = gkeepapi.Keep() | |
| success = keep.login(username,password) |
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 { Action } from '@ngrx/store'; | |
| import { Effect, Actions } from '@ngrx/effects'; | |
| import { Injectable } from '@angular/core'; | |
| import { Observable } from 'rxjs/Observable'; | |
| import { of } from 'rxjs/observable/of'; | |
| import * as group from '../actions/group'; | |
| import { CourseService, Group, TreeItem } from '../../shared'; | |
| import 'rxjs/add/operator/switchMap'; | |
| import 'rxjs/add/operator/catch'; | |
| import 'rxjs/add/operator/startWith'; |
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 { Action } from '@ngrx/store'; | |
| import { Effect, Actions } from '@ngrx/effects'; | |
| import { Injectable } from '@angular/core'; | |
| import { Observable } from 'rxjs/Observable'; | |
| import { of } from 'rxjs/observable/of'; | |
| import * as course from '../actions/course'; | |
| import { CourseService, Course } from '../../shared'; | |
| import 'rxjs/add/operator/switchMap'; | |
| import 'rxjs/add/operator/catch'; | |
| import 'rxjs/add/operator/startWith'; |
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 { Action } from '@ngrx/store'; | |
| import { Effect, Actions } from '@ngrx/effects'; | |
| import { Injectable } from '@angular/core'; | |
| import { Observable } from 'rxjs/Observable'; | |
| import { of } from 'rxjs/observable/of'; | |
| import * as course from '../actions/course'; | |
| import { CourseService, Course } from '../../shared'; | |
| import 'rxjs/add/operator/switchMap'; | |
| import 'rxjs/add/operator/catch'; | |
| import 'rxjs/add/operator/startWith'; |
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
| canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean> | boolean { | |
| if (someCondition) { | |
| this.router.navigate(['not-allowed']); | |
| return false; | |
| } | |
| return true; | |
| } |
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
| (function (global, factory) { | |
| typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('d3'), require('d3-selection-multi')) : | |
| typeof define === 'function' && define.amd ? define(['exports', '@angular/core', 'd3', 'd3-selection-multi'], factory) : | |
| (factory((global.KnobModule = {}),global.core,global.d3)); | |
| }(this, (function (exports,core,d3) { 'use strict'; | |
| var Ng2KnobDirective = /** @class */ (function () { | |
| function Ng2KnobDirective(el) { | |
| this.el = el; | |
| this.valueChange = new core.EventEmitter(); |
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 './polyfills.ts'; | |
| import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; | |
| import { enableProdMode } from '@angular/core'; | |
| import { environment } from './environments/environment'; | |
| import { AppModule } from './app/'; | |
| if (environment.production) { | |
| enableProdMode(); | |
| } |
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
| SELECT * | |
| FROM BaseTable b | |
| RIGHT JOIN ( | |
| SomeTable s | |
| INNER JOIN OtherTable o ON o.ID = s.ID | |
| INNER JOIN MoreTable m ON m.ID = f.ID | |
| ) ON b.ID = s.ID |
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
| .desaturate { | |
| filter: grayscale(100%); /* Current draft standard */ | |
| -webkit-filter: grayscale(100%); /* New WebKit */ | |
| -moz-filter: grayscale(100%); | |
| -ms-filter: grayscale(100%); | |
| -o-filter: grayscale(100%); /* Not yet supported in Gecko, Opera or IE */ | |
| filter: url(resources.svg#desaturate); /* Gecko */ | |
| filter: gray; /* IE */ | |
| -webkit-filter: grayscale(1); /* Old WebKit */ | |
| } |
OlderNewer