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 eases from 'eases' | |
| const defaults = { | |
| start: 0, | |
| to: 0, | |
| speed: 650, | |
| easing: 'sineOut', | |
| onUpdate: () => {}, | |
| handleEnd: () => {}, | |
| handleStart: () => {} |
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 log = new Proxy({}, { | |
| get: (_, colour) => function() { | |
| console.log(`%c ${[].slice.call(arguments).join(' ')}`, `color: ${colour}`) | |
| } | |
| }) | |
| // example | |
| log.tomato('I am tomato') | |
| log.chocolate('I am chocolate') | |
| log.cornflowerblue('I am cornflowerblue') |
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
| {"lastUpload":"2020-09-25T00:11:19.988Z","extensionVersion":"v3.4.3"} |
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
| <?php | |
| add_action('rest_api_init', function() { | |
| register_rest_field(get_post_types(), 'fields', [ | |
| 'get_callback' => function($post) { | |
| return CFS()->get(); | |
| }, | |
| ]); | |
| }); |
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 express from 'express' | |
| const | |
| port = process.env.PORT || 3000, | |
| app = express() | |
| // ----------------------------------------------- | |
| app.listen(port, () => console.log('Listening on port', port)) |
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 from 'react' | |
| import { renderToString } from 'react-dom/server' | |
| import express from 'express' | |
| import Homepage from './src/pages/home' | |
| const | |
| port = process.env.PORT || 3000, | |
| app = express() | |
| // ----------------------------------------------- |
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
Show hidden characters
| { | |
| // A File Icon Preferences – User | |
| // ================================================================ | |
| // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | |
| // ! PLEASE RESTART SUBLIME TEXT FOR THESE CHANGES TO TAKE EFFECT ! | |
| // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | |
| } |
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
| { | |
| "user": { | |
| "debug": false, | |
| "delay": 0, | |
| "error_color": "D02000", | |
| "gutter_theme": "Packages/Boxy Theme/extras/SublimeLinter/Boxy.gutter-theme", | |
| "gutter_theme_excludes": [], | |
| "lint_mode": "background", | |
| "linters": { | |
| "eslint": { |
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
| // |
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 $container = document.getElementById('container') | |
| window.onpageshow = (e) => e.persisted ? window.location.reload() : null | |
| export default function(href) { | |
| document.body.classList.remove('load-in') | |
| document.body.classList.add('load-out') | |
| ;['animationend', 'webkitAnimationEnd'].map(evt => { | |
| $container.addEventListener(evt, (e) => { |