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
'use strict'; | |
const fs = require('fs'); | |
const assert = require('assert').strict; | |
process.stdin.resume(); | |
process.stdin.setEncoding('utf-8'); | |
let inputString = ''; | |
let currentLine = 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
interface GetUserQueryData { | |
getUser: { | |
id: number | |
name: string | |
bankAccount: { | |
id: number | |
branch: string | |
} | |
} | |
} |
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
// NG | |
const Component = ({ onChange }) => ( | |
<input onChange={e => onChange(e.target.value)} /> | |
) | |
export default Component |
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
(venv) [ec2-user@ip-172-55-55-55 tmp.szI1BtAgOR]$ pip install nkf | |
Collecting nkf | |
Cache entry deserialization failed, entry ignored | |
Could not find a version that satisfies the requirement nkf (from versions: ) | |
No matching distribution found for nkf |
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' | |
import { get, WithData } from './decorator' | |
import * as moment from 'moment' | |
interface PostResponse { | |
id: number | |
userId: number | |
title: string | |
body: string | |
} |
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
export function invert(n: number | string): string | number { | |
return typeof n === 'string' ? parseInt(n) : String(n) | |
} |
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' | |
import { renderToString } from 'react-dom/server' | |
import { ServerStyleSheet } from 'styled-components' | |
import juice from 'juice' | |
interface HtmlTemplateProps { | |
body: string | |
styles: string | |
title: string | |
} |
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
#!/bin/bash | |
cat db/schema.rb \ | |
| grep -v add_foreign_key \ | |
| grep -v t.index \ | |
| grep -v 'end$' \ | |
| grep -v 'ActiveRecord::Schema.define' \ | |
| grep -v '^#' \ | |
| grep -v 'These are extensions that must' \ | |
| grep -v 'plpgsql' \ |
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
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseAnalyticsBinary.json" | |
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseAuthBinary.json" |
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
class UserType extends GraphQLType | |
{ | |
protected $attributes = [ | |
'name' => 'User', | |
'description' => 'A user' | |
]; | |
public function fields() | |
{ | |
return [ |