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
// ---- | |
// Sass (v3.4.12) | |
// Compass (v1.0.3) | |
// ---- | |
@mixin foo { | |
@at-root { | |
.foo#{&} { | |
@content; | |
} |
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
#* | |
# Decodes HTML entities into their regular string values. | |
# | |
# @private | |
# @param {String} str - The encoded string. | |
# @returns {String} The decoded string. | |
decode_html_entities = (str) -> | |
element = document.createElement('div') | |
element.innerHTML = str.trim() |
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
// ---- | |
// Sass (v3.4.14) | |
// Compass (v1.0.3) | |
// ---- | |
$foo: 10; | |
.foo { | |
$foo: 20; | |
border-width: $foo; // 20 |
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
chai = require('chai') | |
beforeEach -> | |
this.assert = chai.assert |
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
|- app | |
| |- assets | |
| | |- javascripts | |
| | | |- popover.js | |
| | |- stylesheets | |
| | | |- popover.scss | |
| |- helpers | |
| | |- ui_popover.rb | |
| |- views | |
| | |- styleguide |
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 React, {Component} from 'react'; | |
import ReactDOM from 'react-dom'; | |
type TestDetails<T: HTMLElement> = { | |
node: HTMLElement, | |
}; | |
type Props = { |
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
import {DataProxy} from 'apollo-client/data/proxy'; | |
import { | |
ApolloClient, | |
} from 'apollo-client'; | |
import {DocumentNode} from 'graphql'; | |
import {get} from 'lodash'; | |
import {Status} from '../network'; | |
import stagedFileUploadMutation, {StagedFileUploadMutationData} from './StagedFileUploadMutation.graphql'; |
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
import {Component} from 'react'; | |
const cache = new WeakMap<Component<any, any>, Map<string, any>>(); | |
export function toggleState<S>(component: Component<any, S>, key: keyof S) { | |
const cachedToggles = cache.get(component) || new Map(); | |
if (cachedToggles.has(key)) { return cachedToggles.get(key); } | |
const toggle = () => component.setState((state) => ({[key]: !state[key]})); | |
cachedToggles.set(key, toggle); |
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
import {utility} from './support'; | |
jest.mock('./support', () => ({ | |
...require.requireActual('./support'), | |
utility: jest.fn(), | |
})); |
OlderNewer