CREATE TABLE #MyLocks
(
hash VARCHAR(50),
age int,
)
ALTER TABLE #MyLocks
ADD UNIQUE (hash)
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
| @echo Deleting old branches... | |
| git branch --merged develop | grep -v 'develop$' | xargs git branch -d |
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 IntelliSense to learn about possible attributes. | |
| // Hover to view descriptions of existing attributes. | |
| // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "type": "node", | |
| "request": "launch", | |
| "name": "Launch Webpack", |
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
| open System | |
| type EmployeeEmail = | |
| | Email of string | |
| | Invalid of string list | |
| let bind f x = | |
| match x with | |
| | Email x -> f x | |
| | Invalid m -> Invalid m |
type F<'a> = F of 'a
module Functor =
// Def
// map : f:('a -> 'b) -> F<'a> -> F<'b>
let map f (F x) = F (f x)
let x = F 123
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
| private ref: Ref<ScrollView & Component<ScrollViewProps>> = (instance) => { | |
| this.scrollView = instance; | |
| } |
- add app.json, set the newest sdkVersion
{
"name": "<yourname>",
"displayName": "<yourname>",
"expo": {
"sdkVersion": "25.0.0"
}
}
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 'reflect-metadata'; | |
| type MyDecObj = {a: number}; | |
| const myDecKey = Symbol('design:myDec') | |
| function MyDec(obj: MyDecObj) { | |
| return Reflect.metadata(myDecKey, obj); | |
| } |
create table #rows (id uniqueidentifier, value varchar(10))
insert into #rows
values ('11111111-1111-1111-1111-111111111111', 'a'),
('22222222-2222-2222-2222-222222222222', 'b'),
('11111111-1111-1111-1111-111111111111', 'c'),
('22222222-2222-2222-2222-222222222222', 'd'),
('11111111-1111-1111-1111-111111111111', 'e'),
('33333333-3333-3333-3333-333333333333', 'f'),NewerOlder