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
| type animatable('t) = | |
| | AtRest('t) | |
| | BetweenFrames({pre: 't, post: 't, info: animationInfo}) | |
| type state = { | |
| expanded: animatable(bool), | |
| disabled: animatable(bool) | |
| } |
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
| # Super often, these are muscle memory | |
| alias g=git | |
| alias gs="git status" | |
| alias gb="git b" | |
| alias gd="git diff" | |
| # See the git aliases section, but this is "git branch" but better | |
| # (sorted by most recent, and other things) | |
| alias gr="git r" | |
| # Used as `gitca "commit message"` and it's done |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| module StringContext = | |
| Context.MakePair({ | |
| type t = string; | |
| let defaultValue = "Awesome"; | |
| }); | |
| let component = ReasonReact.statelessComponent("Tree"); | |
| let make = _children => { |
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
| let recv = (client, maxlen) => { | |
| let bytes = Bytes.create(maxlen); | |
| let len = Unix.recv(client, bytes, 0, maxlen, []); | |
| Bytes.sub_string(bytes, 0, len) | |
| }; | |
| let parse_top = top => { | |
| let parts = Str.split(Str.regexp("[ \t]+"), top); | |
| switch (parts) { |
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
| // @flow | |
| import {Component, type Node} from 'react' | |
| import authenticatedApolloClient from '../shared/authenticatedApolloClient'; | |
| /** | |
| * Example usage: | |
| * | |
| * const ScreenWithLoader = (props) => <ApolloWrapper | |
| * queryOptions={{ |
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
| let module Styled = { | |
| let module Create (Config: { | |
| let name: string; | |
| let style: ReactNative.Style.style; | |
| }) => { | |
| let component = ReasonReact.statelessComponent Config.name; | |
| let make ::paddingVertical=? => { | |
| let style = combineStylesSomeHow Config.style paddingVertical; /* <- this is an optional btw */ | |
| View.make ::style |
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
| /* Template for proposals to update the syntax. Base template: https://gist.github.com/jordwalke/6935739b74eb9b8496670cc7860f5acf */ | |
| let a = 10; | |
| let b = 20; | |
| /* A */ | |
| let nonNamed = (a, b) => a + b; | |
| type nonNamed = (int, int) => int; |
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
| <html> | |
| <head> | |
| <title>onpaste</title> | |
| </head> | |
| <body> | |
| <div id="root"></div> | |
| <script> | |
| const log = txt => { | |
| const div = document.createElement('div') | |
| document.body.appendChild(div) |
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
| #!/usr/bin/env python | |
| # Toss this in your ~/bin/ as ~/bin/reboost and `chmod +x ~/bin/reboost` | |
| """\ | |
| Usage: | |
| reboost [cmd] | |
| Commands: | |
| first - follow upstream until just before master | |
| last - follow downstreams all the way | |
| up - go to parent |