It's 2024. You should use tsup instead of this.
🔥 Blazing fast builds
😇 CommonJS bundle
🌲 .mjs
bundle
✨ .d.ts
bundle + type-checking
It's 2024. You should use tsup instead of this.
🔥 Blazing fast builds
😇 CommonJS bundle
🌲 .mjs
bundle
✨ .d.ts
bundle + type-checking
/** | |
* This is a list of the parameters for the gatsby-transformer-sharp fragments | |
* If you are trying to use, for example, '...GatsbyImageSharpFluid' and you are getting this error: | |
* Unknown fragment "GatsbyImageSharpFluid" | |
* Just use the parameters directly | |
* | |
* The simplest set of fields for fixed sharp images | |
* @type {Fragment} | |
* @example | |
* childImageSharp { |
This is a quick-and-dirty walkthrough to set up a fresh project with Storybook Docs, Create React App, and TypeScript. If you're looking for a tutorial, please see Design Systems for Developers, which goes into much more depth but does not use Typescript.
The purpose of this walkthrough is a streamlined Typescript / Docs setup that works out of the box, since there are countless permutations and variables which can influence docs features, such as source code display, docgen, and props tables.
npx create-react-app cra-ts --template typescript
import webpack from 'webpack'; | |
import { resolve } from 'path'; | |
import ExtractTextPlugin from 'extract-text-webpack-plugin'; | |
import ForceCaseSensitivityPlugin from 'force-case-sensitivity-webpack-plugin'; | |
import autoprefixer from 'autoprefixer'; | |
import getClientEnvironment from './config/env'; | |
const nodeModulesPath = resolve(__dirname, 'node_modules'); | |
const bowerModulesPath = resolve(__dirname, 'bower_components'); | |
const srcPath = resolve(__dirname, 'src'); |
// open console and run cmd+v every time | |
var i = 0; | |
var el = document.querySelectorAll('[aria-label="Unstar this repository"]'); | |
function myLoop () { | |
setTimeout(function () { | |
el[i].click() | |
i++; | |
if (i < 30) { |
This is unmaintained, please visit Ben-PH/spacemacs-cheatsheet
SPC q q
- quitSPC w /
- split window verticallySPC w
- - split window horizontallySPC 1
- switch to window 1SPC 2
- switch to window 2SPC w c
- delete current windowvar myScript = document.createElement('script'); | |
myScript.src = 'http://code.jquery.com/jquery-2.1.4.min.js'; | |
myScript.onload = function() { | |
console.log('jQuery loaded.'); | |
}; | |
document.body.appendChild(myScript); |
<label for="country">Country</label><span style="color: red !important; display: inline; float: none;">*</span> | |
<select id="country" name="country" class="form-control"> | |
<option value="Afghanistan">Afghanistan</option> | |
<option value="Åland Islands">Åland Islands</option> | |
<option value="Albania">Albania</option> | |
<option value="Algeria">Algeria</option> | |
<option value="American Samoa">American Samoa</option> | |
<option value="Andorra">Andorra</option> | |
<option value="Angola">Angola</option> |