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 { Injectable } from '@angular/core'; | |
import { Observable } from 'rxjs/Observable'; | |
import { BehaviorSubject } from 'rxjs/BehaviorSubject'; | |
import 'rxjs/add/operator/distinctUntilChanged'; | |
import 'rxjs/add/operator/pluck'; | |
import 'rxjs/add/operator/debounceTime'; | |
import 'rxjs/add/observable/fromEvent'; | |
export interface WindowSize { |
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
// http://stackoverflow.com/questions/26501688/a-typescript-guid-class | |
class Guid { | |
static newGuid() { | |
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { | |
const r = Math.random() * 16 | 0, v = c === 'x' ? r : ( r & 0x3 | 0x8 ); | |
return v.toString(16); | |
}); | |
} | |
} |
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
[alias] | |
deletebranch = "!f() { \ | |
git push origin --delete "$@"; \ | |
git branch -d "$@"; \ | |
}; f" | |
# usage: | |
# git deletebranch my-branch | |
# git deletebranch branch-1 branch-2 branch-3 |
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 { | |
Component, | |
Input, | |
ElementRef, | |
} from '@angular/core'; | |
import { TsStyleThemeTypes } from './../types/style-theme.types'; | |
/** |
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
/Users/bc/code/Terminus/terminus-ui/src/lib/index.ts, | |
/Users/bc/code/Terminus/terminus-ui/src/lib/src/button/button.component.ts, | |
/Users/bc/code/Terminus/terminus-ui/src/lib/src/button/button.module.ts, | |
/Users/bc/code/Terminus/terminus-ui/src/lib/src/checkbox/checkbox.component.ts, | |
/Users/bc/code/Terminus/terminus-ui/src/lib/src/checkbox/checkbox.module.ts, | |
/Users/bc/code/Terminus/terminus-ui/src/lib/src/copy/copy.component.ts, | |
/Users/bc/code/Terminus/terminus-ui/src/lib/src/copy/copy.module.ts, | |
/Users/bc/code/Terminus/terminus-ui/src/lib/src/date-range/date-range.component.ts, | |
/Users/bc/code/Terminus/terminus-ui/src/lib/src/date-range/date-range.module.ts, | |
/Users/bc/code/Terminus/terminus-ui/src/lib/src/datepicker/datepicker.component.ts, |
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
/** | |
* Order an array alphabetically by property | |
* | |
* @param {Array} items The array of objects to sort | |
* @param {String} property The property to sort by | |
* @param {Boolean} isDescending A flag determining if the array should be sorted ascending or | |
* descending | |
* @return {Array} sortedArray The sorted array | |
*/ | |
export default function orderArrayByProperty(items: any[], property: string, isDescending: boolean = true): any[] { |
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 './typography'; | |
/** | |
* The vertical spacing default | |
* | |
* @nuclide vertical-spacing | |
* @section Config > Spacing | |
*/ | |
$g-spacing: $type__size--base !default; |
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
> Thank you for reaching out to Autonomous! I am sorry to hear that you are having some trouble with your SmartDesk | |
> but I will be glad to assist. It sounds like your system needs a "hard reset" can I please have you follow these | |
> steps thoroughly. | |
Reset Steps: | |
1. Unplug the desk for 20 seconds. Plug it back in. Wait a full 20 seconds. | |
2. Press the up and down buttons until the desk lowers all the way and beeps or 20 seconds pass. | |
3. Release both buttons. | |
4. Press the down buttons until the desk beeps one more time or 20 seconds pass. |