Skip to content

Instantly share code, notes, and snippets.

View developit's full-sized avatar
🦊
write, the codes

Jason Miller developit

🦊
write, the codes
View GitHub Profile
@anvaka
anvaka / 00.Intro.md
Last active May 13, 2025 20:43
npm rank

npm rank

This gist is updated daily via cron job and lists stats for npm packages:

  1. Top 1,000 most depended-upon packages
  2. Top 1,000 packages with largest number of dependencies
  3. Top 1,000 packages with highest PageRank score
@developit
developit / README.md
Last active August 25, 2024 14:22
Webpack Starter Template

Webpack Starter Template

This is a basic Webpack project template for a web app written in ES6 & LESS.

This assumes you have a directory structure as follows:

package.json
webpack.config.js
src/
@joshq00
joshq00 / .babelrc
Created October 29, 2015 23:39
Babel 6 : React / stage 0
{
"presets": [ "react", "es2015" ],
"plugins": [
"transform-es2015-modules-commonjs",
"transform-react-constant-elements",
]
}
@developit
developit / instant-documentation-publish.sh
Last active September 26, 2024 22:57
Publish your docs instantly using gist & documentation-viewer
# SETUP: install documentation.js:
npm i -g documentation browser-pipe
# SETUP: install gist cli (github.com/defunkt/gist)
brew install gist
# generate docs, upload to gist.github.com, then pipe the Gist URL to Documentation Viewer in your browser:
documentation src | gist -p -f docs.json | awk '{print "https://documentation-viewer.firebaseapp.com/#"$1}' | browser-pipe
@staltz
staltz / migration-guide.md
Last active December 19, 2023 22:14
How to show migration guides in GitHub Markdown

How to show migration guides in GitHub Markdown

Use the diff code highlighting tag.

  ```diff
  - foo
  + bar

Example:

@developit
developit / preact-docs.md
Last active December 2, 2015 14:40
Preliminary Preact Docs

This is a first crack at generated docs for Preact.

attributes

children

Component

Base Component class, for he ES6 Class method of creating Components

@developit
developit / async-await-is-awesome.js
Created December 15, 2015 18:01
Code Snippet of the Day - Dec 15th, 2015
// series/sequence
let [a, b] = [await one(), await two()];
// parallel
let [a, b] = await* [one(), two()];
@bcoe
bcoe / npm-top.md
Last active March 21, 2025 03:49
npm-top.md

npm Users By Downloads (git.io/npm-top)


npm users sorted by the monthly downloads of their modules, for the range May 6, 2018 until Jun 6, 2018.

Metrics are calculated using top-npm-users.

# User Downloads
@developit
developit / Rollup Automatic External Dependencies.md
Last active June 29, 2021 15:33
Rollup Automatic External Dependencies

Hi!

This is an example of how to use [Rollup] with external dependencies, without hard-coding them.

It reads your installed NPM dependencies and treats them as external to Rollup. They still get bundled, but not as ES2015.

Make sure you have a .babelrc or a "babel":{} section in your package.json.

@developit
developit / classes-or-objects.js
Created January 27, 2016 01:52
Personally I see the value of both. Depends on the codebase.
// mixins with createClass:
const Foo = createClass({
...someMixin,
render: ({ onClick, children }) => (
<div class="foo">
<button onClick={onClick}>Click Me</button>
{ children }
</div>
)