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
// New-style Flexbox SCSS Mixins | |
// | |
// Documentation shamelessly stolen from | |
// Chris Coyier <http://css-tricks.com/snippets/css/a-guide-to-flexbox/> | |
// ----------------------------------------------------------------------------- | |
// Flex Container Properties | |
// ----------------------------------------------------------------------------- | |
// This defines a flex container; block. Thus, it enables a flex context for all |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>stay standalone</title> | |
<meta name="apple-mobile-web-app-capable" content="yes"> | |
<meta name="viewport" content="width=device-width,initial-scale=1.5,user-scalable=no"> | |
<script type="text/javascript"> | |
(function() { | |
// prevents links from apps from oppening in mobile safari | |
// this javascript must be the first script in your <head> |
- No line delete
- cmd+left goes to the beginning of the line, not beginning of the text
- cmd + shift + left highlights line + indentation
- pasting a line w/ indentation pastes indentation
- Option-right from the beginning of the line jumps to the end of the first token, not the beginning
- Cmd + / doesn't reliably uncomment commented lines
- No multiple carets
- No multi-line typing, only deleting
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 (plex) { | |
let timeout; | |
plex.addEventListener('contextmenu', (e) => { | |
const button = plex.querySelector('[class*="AudioVideoFullPlayer-isVideo"]'); | |
const miniPlayer = plex.querySelector('[class*="MiniPlayerContainer-miniPlayer"]') | |
const wasVideoBlocked = (button && button.contains(e.target) || (miniPlayer && miniPlayer.contains(e.target))); | |
toggleBlock(wasVideoBlocked, button, miniPlayer); |
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
redfin,zillow,trulia,real deal,IPO,lawsuit,401k |
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 {ChecksUpdateResponse, ChecksUpdateParamsOutput, ChecksCreateResponse, Response, ReposCompareCommitsResponse} from '@octokit/rest'; | |
import {WebhookPayloadCheckRun, WebhookPayloadCheckSuite, WebhookPayloadPullRequest} from '@octokit/webhooks'; | |
import {GitHubAPI} from 'probot/lib/github'; | |
import {Context} from 'probot/lib/context'; | |
import {Logger} from 'probot/lib'; | |
export default class CheckRun { | |
public context: Context; | |
public github: GitHubAPI; |
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 {ChecksUpdateResponse, ChecksUpdateParamsOutput, ChecksCreateResponse, Response, ReposCompareCommitsResponse} from '@octokit/rest'; | |
export interface ICheckRun { | |
start(): Promise<Response<ChecksCreateResponse> | false>; | |
run(compare: Response<ReposCompareCommitsResponse>): Promise<void>; | |
finish(success: boolean, output?: ChecksUpdateParamsOutput): Promise<Response<ChecksUpdateResponse>>; | |
} |
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
// By default, use a try/catch with async await | |
try { | |
await someRemoteAction(); | |
} catch (e) { | |
console.error(e); | |
} | |
// If you need to store the result of an async/await AND you want the catch to be a specific value... | |
const myResult = await someRemoteAction().then(() => 'some-value').catch(() => 'some-error-value'); | |
// myResult will equal 'some-value' on success, but 'some-error-value' on error |
OlderNewer