This file contains 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
root = true | |
[*] | |
indent_style = space | |
indent_size = 2 | |
end_of_line = lf | |
trim_trailing_whitespace = true | |
insert_final_newline = true | |
charset = utf-8 |
This file contains 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 { | |
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; | |
max-width: 800px; | |
margin: 0 auto; | |
color: hsla(0, 0%, 8%, 1); | |
font-size: 16px; | |
line-height: 1.8; | |
} | |
pre { |
This file contains 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 * as React from 'react' | |
interface Props { | |
message: string | |
} | |
const Component = (props: Props) => { | |
const { message } = props | |
return ( | |
<div>{message}</div> |
This file contains 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 * as React from 'react' | |
interface Props { | |
message: string | |
} | |
const Component: React.StatelessComponent<Props> = props => { | |
const { message } = props | |
return ( | |
<div>{message}</div> |
This file contains 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
async fn(a, b) { | |
try { | |
const x = await Method1(a ,b); | |
const y = await Method2(x[0], x[1]); | |
return await Method3(y); | |
} catch (e) { | |
console.log(e); | |
} | |
} |
This file contains 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
local MASH = {"cmd", "alt", "ctrl"} | |
local MASH_SHIFT = {"cmd", "alt", "ctrl", "shift"} | |
local focusedWindow | |
local focusedWindowFrame | |
local screenFrame | |
hs.grid.MARGINX = 0 | |
hs.grid.MARGINY = 0 |
This file contains 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
{ | |
"compilerOptions": { | |
"strict": true, | |
"noFallthroughCasesInSwitch": true, | |
"noUnusedParameters": true, | |
"noUnusedLocals": true, | |
"forceConsistentCasingInFileNames": true | |
} | |
} |
This file contains 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 { Maybe } from './maybe' | |
describe('Maybe', () => { | |
it('should handle a value', () => { | |
const maybe = Maybe.some('test') | |
expect(maybe.getOrElse('')).toBe('test') | |
}) | |
it('should handle an undefined value', () => { | |
const maybe = Maybe.fromValue<string>(undefined) |
This file contains 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
name: CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-node@v1 |
This file contains 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
name: CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-node@v1 |
OlderNewer