#How to create a .file or .folder on Windows
There are several ways
- Create
file.txt - Rename to
.file., the last dot will be dropped, you'll have.file
Works the same with a file or a directory.
| // String utils | |
| // | |
| // resources: | |
| // -- mout, https://github.com/mout/mout/tree/master/src/string | |
| /** | |
| * "Safer" String.toLowerCase() | |
| */ | |
| function lowerCase(str) { | |
| return str.toLowerCase(); |
Upon completion you will have a sane, productive Haskell environment adhering to best practices.
sudo apt-get install libtinfo-dev libghc-zlib-dev libghc-zlib-bindings-dev
修改Webstorm的Terminal为自己定义的Terminal.(主要是内建的使用系统自带,功能受限)。
首先安装g功能强大的 babun
将zsh.exe的路径[不是babun.bat]添加。比如 "D:\babun.babun\cygwin\bin\zsh.exe"
Enjoy it.
| // Mixin like functionality | |
| const textInput = props => ` | |
| color: ${props.error ? color.white : color.base}; | |
| background-color: ${props.error ? color.alert : color.white}; | |
| `; | |
| export const Input = styled.input` | |
| ${textInput} | |
| `; |
CMDER_ROOT to your root Cmder folder (in my case C:\Program Files (x86)\Cmder). It seems to be important that this does not have quotes around it because they mess with concatenation in the init script."cmd" /k ""%CMDER_ROOT%\vendor\init.bat"" as the Shell path. The double-double-quotes are intentional, as they counteract the missing double quotes in the environment variable.| /* | |
| A simple little SCSS mixin for creating scrim gradients | |
| Inspired by Andreas Larson - https://github.com/larsenwork | |
| https://css-tricks.com/easing-linear-gradients/ | |
| */ | |
| @mixin scrimGradient($startColor: $color-black, $direction: 'to bottom') { | |
| $scrimCoordinates: ( |
| import {CanDeactivate, Router} from '@angular/router'; | |
| import {Injectable} from '@angular/core'; | |
| import {Observable} from 'rxjs/Observable'; | |
| import {Observer} from 'rxjs/Observer'; | |
| import {MatDialog, MatDialogRef, MAT_DIALOG_DATA} from '@angular/material'; | |
| export interface CanComponentDeactivate { | |
| canDeactivate: () => Observable<boolean> | Promise<boolean> | boolean; | |
| } |
| // METHOD #1 - More performant/preferred | |
| /** | |
| * Apollo Terminating link | |
| * The split will skip Batching if an | |
| * operation's context contains hasUpload: true | |
| */ | |
| const httpLink = ApolloLink.split( | |
| operation => operation.getContext().hasUpload, | |
| createUploadLink(OPTS), |