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
git config --global init.defaultBranch trunk |
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
<script> | |
import * as yup from 'yup' | |
let schema = yup.object({ | |
isBig: yup.boolean(), | |
count: yup | |
.number() | |
.when('isBig', { | |
is: true, | |
then: yup.number().min(5), |
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
const gui = new GUI( | |
{}, | |
Row( | |
{ | |
width: love.graphics.getWidth(), | |
height: love.graphics.getHeight(), | |
vAlign: 'stretch', | |
backgroundColor: gray, | |
padding: 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
<script> | |
const foo = "bar" | |
</script> |
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
<script> | |
import { afterUpdate, tick } from 'svelte' | |
import { matchwidth } from '../actions/matchwidth' | |
import { isEventSource } from '../utils/isEventSource' | |
import Arrow from './Arrow' | |
import Card from './Card' | |
import Clear from './Clear' | |
import Ellipses from './Ellipses' | |
import List from './List' |
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
<script> | |
import range from 'lodash/range' | |
import Notation from './Notation' | |
import PaginationArrow from './PaginationArrow' | |
import Select from './Select' | |
import SelectOption from './SelectOption' | |
export let page = 1 | |
export let perPage = 50 |
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
<script> | |
import { flyplacement } from '../transitions/flyplacement' | |
import { isEventSource } from '../utils/isEventSource' | |
import Calendar from './Calendar' | |
import DateInput from './DateInput' | |
import OverlayTrigger from './OverlayTrigger' | |
export let refs = {} | |
export let placement = 'bottom-left' | |
export let trigger = 'click' |
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
// core.yml | |
- core | |
- tieredSelect | |
- label1 | |
- label2 | |
- label3 | |
- label4 |
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
const ComponentA = (props, ref) => { | |
<div ref={ref}>a</div> | |
} | |
const ComponentB = (props, ref) => { | |
<ComponentA ref={ref} /> | |
} | |
const ComponentC = () => { | |
const bRef = React.createRef() |
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
local A = A or {}; | |
A.__index = A; | |
A.prototype = A.prototype or {}; | |
A.prototype.__index = A.prototype; | |
A.prototype.constructor = A; | |
A.new = function(...) | |
local self = setmetatable({}, A.prototype); | |
self:____constructor(...); | |
return self; | |
end; |