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
{ | |
"title": "Giacomo qwerty to functional", | |
"rules": [ | |
{ | |
"description": "lctrl + qwerty > F keys", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "q", |
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 Auth { | |
user?: UserData | |
login( | |
email: string, | |
password: string | |
): Promise<ExecutionResult<{ login: LOGIN_USER_DATA }>> | |
logout(): Promise<ExecutionResult<any>> | |
} |
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 { FieldNode } from 'graphql' | |
export const doesPathExists = ( | |
nodes: readonly FieldNode[], | |
path: string[] | |
): boolean => { | |
if (!nodes) { | |
return false | |
} |
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
alias cbn="git branch | grep '^\*' | cut -d' ' -f2 | pbcopy && echo \"branch name copied to clipboard\"" | |
alias burp="brew upgrade && brew update" |
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
### Keybase proof | |
I hereby claim: | |
* I am giacomorebonato on github. | |
* I am grebonato (https://keybase.io/grebonato) on keybase. | |
* I have a public key ASCjqKFvulYeQyfZVXCFg1kBEiTMXMvyJyuDMqRrR4grtAo | |
To claim this, I am signing this object: |
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
function rotateMatrix (matrix = []) { | |
return matrix[0].map( | |
(_row, i) => getRotatedRow(i, matrix) | |
) | |
} | |
function getRotatedRow (i, matrix) { | |
return matrix.map( | |
(_row, y) => matrix[(matrix.length - 1) - y][i] | |
) |
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
const express = require('express') | |
const bodyParser = require('body-parser') | |
const path = require('path') | |
const app = express() | |
// assets. Static JS, CSS, fonts | |
app.use('/public', express.static(path.join(__dirname, '../public'))) | |
app.use(bodyParser.urlencoded({ extended: false })) | |
app.use(bodyParser.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
import React from 'react' | |
class Component_1 extends React.Component { | |
constructor (props) { | |
super(props) | |
this.state = { | |
loading: 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
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<script> | |
var data = {{data | safe}} | |
</script> | |
<title>Typescript boilerplate</title> | |
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel='stylesheet' /> | |
<link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css' /> |
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 { observable, action } from 'mobx' | |
import objectAssign = require('object-assign') | |
class SampleStore { | |
constructor (data?) { | |
if (data) { | |
this.setData(data) | |
} else if (window['data']) { | |
let wData = window['data'] as any |
NewerOlder