git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| /*! | |
| * SSSL: smallest, simpelst script loader | |
| * version: 1.0.1 | |
| * | |
| * API: | |
| * Normal usage | |
| * sssl(source [,complete]); | |
| * | |
| * Example: | |
| * sssl('jquery.js', function(){ |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
Douglas Crockford, author of JavaScript: The Good parts, recently gave a talk called The Better Parts, where he demonstrates how he creates objects in JavaScript nowadays. He doesn't call his approach anything, but I will refer to it as Crockford Classless.
Crockford Classless is completely free of class, new, this, prototype and even Crockfords own invention Object.create.
I think it's really, really sleek, and this is what it looks like:
function dog(spec) {| // | |
| // NSDateFormatter extension | |
| // Transform JS Date String to NSDate or localizedString | |
| // | |
| // Created by Felix Leupold on 16.12.15 © 2015 XIEL development. | |
| // License: WTFPL / MIT | |
| // | |
| // Usage Examples: | |
| // NSDateFormatter.dateFromJsDateString("2015-11-22T16:09:19.000Z"); | |
| // NSDateFormatter.localizedStringFromJsDateString("2015-11-22T16:09:19.000Z"); |
| /** | |
| * Copyright (c) 2015, Facebook, Inc. | |
| * All rights reserved. | |
| * | |
| * This source code is licensed under the BSD-style license found in the | |
| * LICENSE file in the root directory of this source tree. An additional grant | |
| * of patent rights can be found in the PATENTS file in the same directory. | |
| * | |
| * @providesModule normalizeWheel | |
| * @typechecks |
| In iOS >= 10.3, you must take an additional step to trust the Charles Root Certificate that is not currently documented on their website: | |
| Settings > General > About > Certificate Trust Testings | |
| Source: https://www.neglectedpotential.com/2017/04/trusting-custom-root-certificates-on-ios-10-3/ | |
| import { resolve } from 'path' | |
| import { GatsbyCreatePages } from './types' | |
| const createPages: GatsbyCreatePages = async ({ | |
| graphql, | |
| boundActionCreators, | |
| }) => { | |
| const { createPage } = boundActionCreators | |
| const allMarkdown = await graphql(` |
| import * as React from "react"; | |
| /** | |
| * Given a JSX.IntrinsicElement[...], get its attributes | |
| */ | |
| type Attributes<E> = E extends React.DetailedHTMLProps<infer Attr, any> | |
| ? Attr | |
| : never; | |
| /** |
| /* | |
| MIT License | |
| Copyright (c) 2020 Egor Nepomnyaschih | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is |
| name: Detox | |
| on: [push] | |
| jobs: | |
| build: | |
| runs-on: macOS-latest | |
| timeout-minutes: 15 | |
| env: |