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
episcopalian | |
presbyterian | |
baptist | |
real for that | |
ate with that | |
ate that | |
fuentes | |
destiny | |
gaetz | |
so cooked |
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
function blockAds() { | |
const ads = [ | |
'banner', | |
'beachTextMesh', | |
'billboard', | |
'billboard2', | |
'blimp2Group', | |
'blimp3Group', | |
'blimpGroup', | |
'castle', // Sadly can't only hide the text |
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 assert from 'node:assert/strict'; | |
export default { | |
'tests for sum': { | |
'1 + 1 should be 2'() { | |
assert.equal(1 + 1, 2); | |
}, | |
'2 + 2 should be 4'() { | |
assert.equal(2 + 2, 4); | |
}, |
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 useReactive = (object, dependencies = []) => { | |
const [_, setState] = useState(0); | |
return useMemo( | |
() => toReactive(object, () => setState((state) => state + 1)), | |
dependencies | |
); | |
}; | |
const toReactive = (object, callback) => { | |
if (!object || typeof object !== 'object') return object; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>LoB Scripting</title> | |
</head> | |
<body> | |
<template id="hello"> | |
<h1></h1> | |
<select> |
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
// Original: https://github.com/gnat/css-scope-inline | |
// Modified: https://gist.github.com/Gyanreyer/a9d5fe8b91055ea4dc302c1d0ff17452 | |
(() => { | |
let cssScopeCount = 0; | |
const scopedSelectorRegex = new RegExp('(:scope)(?![A-Za-z0-9_-])', 'g'); | |
/** @returns {Node[]} */ | |
const getAllChildNodes = (/** @type {NodeList} */ childNodes) => | |
[...childNodes].flatMap((childNode) => [ | |
childNode, |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="/mutagen.js"></script> | |
</head> | |
<body> | |
<mg-component src="/profile.html" data='{ "user": { "name": "John Doe", "pictureUrl": "https://placehold.co/128" } }' /> | |
</body> | |
</html> |
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
describe('Counter', () => { | |
... | |
it('should emit value incremented by step', async () => { | |
await component.setProps({ step: 10 }); | |
component.vm.increment(); | |
expect(component.emitted('input')).toEqual([[10]]); | |
}); | |
it('should emit value decremented by step', async () => { |
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 { mount } from '@vue/test-utils'; | |
import Counter from './Counter'; | |
describe('Counter', () => { | |
let component; | |
beforeEach(() => { | |
component = mount(Counter); | |
}); | |
it('should emit value set to a specific number', async () => { |
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> | |
<div> | |
<button type="button" @click="decrement">-</button> | |
<input type="text" :value="value" @input="setValue" /> <!-- we removed the argument here --> | |
<button type="button" @click="increment">+</button> | |
</div> | |
</template> |
NewerOlder