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 { DependencyList, useMemo, useRef } from 'react' | |
| import * as R from 'remeda' | |
| /** | |
| * `useDeepMemo` will only recompute the memoized value when one of the | |
| * `dependencies` has changed by value. | |
| * | |
| * Warning: `useDeepMemo` should not be used with dependencies that | |
| * are all primitive values. Use `React.useMemo` instead. |
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
| { | |
| "name": "OnShape", | |
| "start_url": "https://cad.onshape.com/documents/", | |
| "icons": [ | |
| { | |
| "src": "https://cad.onshape.com/favicon.png", | |
| "sizes": "144x144", | |
| "type": "image/png" | |
| } | |
| ], |
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 puppeteer from "puppeteer"; | |
| function clickLink(page, selector) { | |
| return Promise.all([page.click(selector), page.waitForNavigation()]); | |
| } | |
| const USERNAME = "[email protected]"; | |
| const PASSWORD = "************"; | |
| const PAGES = 2; |
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
| main () { | |
| var a = 2; | |
| var b = [ | |
| if (a == 1) | |
| 1 | |
| else if (a == 2) | |
| 2 | |
| ]; | |
| print(b); |
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 fs from 'fs' | |
| import transform from 'rollup-plugin-transform-input' | |
| import prettier from 'prettier' | |
| import postcss from 'postcss' | |
| import sorting from 'postcss-sorting' | |
| function formatContents(filepath, source) { | |
| return prettier.format(source, { | |
| filepath, | |
| arrowParens: 'avoid', |
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 UrlPattern from 'url-pattern' | |
| import location, { navigate, noMatch } from './location.js' | |
| export let path | |
| export let component = undefined | |
| export let redirect = undefined | |
| $: pattern = new UrlPattern(path) | |
| $: router = { |
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 React, { useState, useContext, useRef } from 'react' | |
| import { DatePicker } from 'material-ui-pickers' | |
| import { MuiPickersContext } from 'material-ui-pickers' | |
| export default function DateMultiPicker({ | |
| value, | |
| onChange, | |
| labelFunc, | |
| format, | |
| emptyLabel, |
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 css = document.createElement('style') | |
| css.type = 'text/css' | |
| css.innerHTML = ` | |
| .dead-simple-lightbox + * { | |
| display: none; | |
| } | |
| .dead-simple-lightbox-container { | |
| display: none; | |
| position: fixed; |
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
| #!/bin/sh | |
| valac gjs_constructor_test.vala -X -fPIC -X -shared -o gjs_constructor_test.so --library=GjsConstructorTest --gir GjsConstructorTest-0.1.gir | |
| g-ir-compiler --shared-library=gjs_constructor_test.so --output=GjsConstructorTest-0.1.typelib GjsConstructorTest-0.1.gir | |
| cp gjs_constructor_test.so /usr/lib/ | |
| cp GjsConstructorTest-0.1.typelib /usr/lib/girepository-1.0/ |
NewerOlder