This file contains 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 swr = new Map; | |
const useSWR = (path, fetcher, cache) => { | |
let [data, update] = useState(null); | |
if (!swr.has(path) || swr.get(path) !== cache) { | |
fetcher(path).then(update, () => update(new Error(path))); | |
swr.set(path, cache); | |
} | |
const isError = data instanceof Error; | |
return { |
This file contains 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
// customer | |
import { put, call } from 'redux-saga/effects'; | |
const fetch = (url, data) => | |
window.fetch(url, { | |
body: JSON.stringify(data), | |
method: 'POST', | |
credentials: 'same-origin', | |
headers: { 'Content-Type': 'application/json' } |
This file contains 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
// customer | |
import { put, call } from 'redux-saga/effects'; | |
const fetch = (url, data) => | |
window.fetch(url, { | |
body: JSON.stringify(data), | |
method: 'POST', | |
credentials: 'same-origin', | |
headers: { 'Content-Type': 'application/json' } |
This file contains 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
/* Modernizr 2.8.3 (Custom Build) | MIT & BSD | |
* Build: http://modernizr.com/download/#-cssclasses-addtest-prefixed-teststyles-testprop-testallprops-hasevent-prefixes-domprefixes-img_webp | |
*/ | |
window.Modernizr = (function(window, document, undefined) { | |
var version = '2.8.3', | |
Modernizr = {}, | |
enableClasses = true, |
This file contains 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":"2021-05-02T19:06:07.371Z","extensionVersion":"v3.4.3"} |
This file contains 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
var module = (function() { | |
var _private = { | |
i:5, | |
get : function() { | |
console.log('current value:' + this.i); | |
}, | |
set : function( val ) { | |
this.i = val; | |
}, | |
run : function() { |
This file contains 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'; | |
export const Appointment = ({customer: { firstName }}) => <div>{firstName}</div>; | |
import React from 'react'; | |
import ReactDOM from 'react-dom' | |
import { Appointment } from '../src/Appointment'; | |
let container; | |
let component; | |
const render = component => ReactDOM.render(component, container); | |
describe("Appointment", () => { |
This file contains 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
/* See blog post for details: http://www.suburban-glory.com/blog?page=173 */ | |
;(function(window, document, undefined) { | |
// for browsers without navite bind support | |
if (!Function.prototype.bind) { | |
Function.prototype.bind = function(oThis) { | |
if (typeof this !== "function") { | |
// closest thing possible to the ECMAScript 5 internal IsCallable function | |
throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable"); |
This file contains 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
@media screen { | |
a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,fieldset,figcaption,figure,font,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,p,pre,q,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video { | |
margin: 0; | |
padding: 0; | |
border: none; | |
vertical-align: baseline; | |
font-size: 100%; | |
background: 0 0 | |
} |
This file contains 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
@font-face { | |
font-family: Barlow Condensed; | |
src: url(/css/lib/fonts/barlowcondensed-bold.woff2) format("woff2"), url(/css/lib/fonts/barlowcondensed-bold.woff) format("woff"); | |
font-weight: 700; | |
font-style: normal; | |
} | |
:root { | |
--font-plain: Helvetica Neue, Helvetica, Arial, sans-serif; | |
--font-special: Barlow Condensed, Helvetica, sans-serif; | |
--font-mono: Menlo, Courier, Courier New, Andale Mono, monospace; |
NewerOlder