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
| 0.0 | 0.0 | |
|---|---|---|
| 1.1 | 1.1 | |
| 3.5 | 4.5 | |
| 2.2 | 2.2 | |
| 0.1 | 1.0 | |
| 2.1 | 1.2 | |
| 3.1 | 1.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
| <snippet> | |
| <content><![CDATA[T($SELECTION)]]></content> | |
| <!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
| <tabTrigger>T</tabTrigger> | |
| <!-- Optional: Set a scope to limit where the snippet will trigger --> | |
| <scope>source.ts</scope> | |
| <description>add a 'T' to strings should be wrapped by ()</description> | |
| </snippet> |
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
Show hidden characters
| { | |
| "Translate_wrapper": { | |
| "prefix": "T", | |
| "scope": "javascript,typescript", | |
| "body": [ | |
| "T(TM_SELECTED_TEXT)" | |
| ], | |
| "description": "Add a T wrapper" | |
| }, | |
| } |
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 { ApplicationRef, Component, Injector, OnInit, ViewContainerRef } from '@angular/core'; | |
| import { FormGroup, FormArray, Validators, AbstractControl} from '@angular/forms'; | |
| import { ActivatedRoute, RouterModule, Router } from '@angular/router'; | |
| import { EntityConfigComponent } from '../../../common/entity/entity-config/'; | |
| import { GlobalState } from '../../../../global.state'; | |
| import { RestService, WebSocketService } from '../../../../services/'; | |
| import { FieldConfig } from '../../../common/entity/entity-form/models/field-config.interface'; | |
| import * as _ from 'lodash'; | |
| import { Subscription } from 'rxjs'; |
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
| <snippet> | |
| <content><![CDATA[ | |
| { | |
| type: '$1', | |
| name: '$2', | |
| placeholder: '$3', | |
| }, | |
| ]]></content> | |
| <!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
| <tabTrigger>fcc</tabTrigger> |
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
| <snippet> | |
| <content><![CDATA[ | |
| console.log($1); | |
| ]]></content> | |
| <!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
| <tabTrigger>log</tabTrigger> | |
| <!-- Optional: Set a scope to limit where the snippet will trigger --> | |
| <scope>source.ts</scope> | |
| </snippet> |
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
| #!/bin/bash | |
| sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport | |
| sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport |
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
| var obj = { | |
| foo: function(){ | |
| console.log(this) | |
| } | |
| } | |
| var bar = obj.foo; | |
| //what's the result for the two lines | |
| obj.foo() |
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
| #! /bin/sh | |
| for i in $(sysctl -n kern.disks) | |
| do | |
| DevTemp=`smartctl -a /dev/$i | awk '/Temperature_Celsius/{print $0}' | awk '{print $10 "C"}'` | |
| DevSerNum=`smartctl -a /dev/$i | awk '/Serial Number:/{print $0}' | awk '{print $3}'` | |
| DevName=`smartctl -a /dev/$i | awk '/Device Model:/{print $0}' | awk '{print $3}'` | |
| echo $i $DevTemp $DevSerNum $DevName | |
| done |
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
| body { padding-bottom: 40px; padding-top: 55px;}.sidebar-nav-fixed { width:13%;} |