Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View jamesta696's full-sized avatar
🎯
Focusing

JameSta jamesta696

🎯
Focusing
  • Automatic Data Processing - ADP, LLC
  • WA, USA
View GitHub Profile
@jamesta696
jamesta696 / react-app-dependencies.txt
Created October 15, 2020 17:21
ReactJS: List of production dependencies for a create-react-app application.
Below is the output of `npm ls --prod` for app boilerplate generated by create-react-app
For those concerned how many packages are deduped, the count is 1709, according to `grep` output piped to `wc`. This means 1,974 dependencies in this tree are not duplicates.
sample@0.1.0 /private/var/www/sample
├─┬ react@16.8.4
│ ├─┬ loose-envify@1.4.0
│ │ └── js-tokens@4.0.0
│ ├── object-assign@4.1.1
│ ├─┬ prop-types@15.7.2
@jamesta696
jamesta696 / Arc2D-Init_Nunjucks.png
Last active November 28, 2020 00:13
Arc2D - Using Custom HTML Template Engines (Nunjucks Example)
Arc2D-Init_Nunjucks.png
@jamesta696
jamesta696 / Arc2D-Rendering_Moving_Clouds_as_Images.gif
Last active December 8, 2020 01:53
Arc2D - Rendering Moving Clouds as Images
Arc2D-Rendering_Moving_Clouds_as_Images.gif
@jamesta696
jamesta696 / Arc2D-Toggle-Button-Snippet.png
Last active December 19, 2020 02:55
Arc2D – Toggle Button Snippet
Arc2D-Toggle-Button-Snippet.png
@jamesta696
jamesta696 / variables_initializer.png
Last active July 6, 2022 23:57
Clean Initializer Setup - OOP JS
variables_initializer.png
@mseeley
mseeley / webworker-preloader.html
Created March 3, 2014 09:29
WebWorker Image preloader proof of concept (Tested in Mobile Safari 6.0/IOS 6.1.3 and Chrome 33)
<!DOCTYPE html>
<html>
<head>
<title>WebWorker image preloading</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
</head>
<body>
<div id="output"></div>
<script id="imgloader" type="javascript/worker">
// Not race proof or robust. Proof of concept.
@Restuta
Restuta / framework-sizes.md
Last active March 7, 2024 00:01
Sizes of JS frameworks, just minified + minified and gzipped, (React, Angular 2, Vue, Ember)

Below is the list of modern JS frameworks and almost frameworks – React, Vue, Angular, Ember and others.

All files were downloaded from https://cdnjs.com and named accordingly. Output from ls command is stripped out (irrelevant stuff)

As-is (minified)

$ ls -lhS
566K Jan 4 22:03 angular2.min.js
@ghosh
ghosh / micromodal.css
Last active March 21, 2024 16:12
Demo modal styles for micromodal.js and corresponding expected html. If using this, set the `awaitCloseAnimation` in config to true
/**************************\
Basic Modal Styles
\**************************/
.modal {
font-family: -apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif;
}
.modal__overlay {
position: fixed;
@sarimarton
sarimarton / fix_github_copilot.sh
Last active March 21, 2024 17:23
Fix Github Copilot in dealing with self-signed certificates
# [2023-05-25] Added Copilot Chat, and VSCode Insiders
# [2023-05-20] Add VSCode Insiders variant
# [2023-02-22] Added Copilot Labs
# Fix Github Co-pilot self-signed cert problem
# See: https://github.com/orgs/community/discussions/8866#discussioncomment-3517831
# Note
#
# To make Github Copilot/Nightly/Labs/Chat work, you might need additional

How to add an image to a gist

  1. Create a gist if you haven't already.
  2. Clone your gist:
    # make sure to replace `<hash>` with your gist's hash
    git clone https://gist.github.com/<hash>.git # with https
    git clone git@gist.github.com:<hash>.git     # or with ssh