Skip to content

Instantly share code, notes, and snippets.

@metasean
metasean / index.html
Last active Aug 24, 2019
string split filter join VS regex replace trim (http://jsbench.github.io/#b7224aaecde5568e8cac9c25e1caf48c) #jsbench #jsperf
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>string split filter join VS regex replace trim</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
@metasean
metasean / notes.md
Created Apr 17, 2019
2019-04---SLC-JS-Learners--Fun-with-Arrays---Presentation
View notes.md

Fun with Arrays!!!

Our base array

NOTE: var is used throughout this presentation only because Sean's doing demos in the browser console. Never let Sean catch you using var in any other context!

var foods = ['asparagus', 'butternut squash', 'carrots', 'dates', 'endive'];
@metasean
metasean / notes.md
Created Mar 20, 2019
2019-03---SLC-JS-Learners--Responsive-Web-Design---Presentation
View notes.md
@metasean
metasean / README.md
Created Jun 30, 2017
How to share a webpack config between next.js and Storybook
View README.md
@metasean
metasean / data.csv
Last active Feb 1, 2017
Data Viz csv
View data.csv
Company Female Male White Asian Latino Black Multi Other Undeclared
U.S. Population 51 49 64 4 16 12 1 3 0
Social media sites 0 0 0 0 0 0 0 0 0
Facebook 33 67 53 38 4 2 3 0 0
Instagram 31 69 57 34 4 2 3 0 0
Google+ 30 70 60 31 3 2 3 <1 0
YouTube 30 70 61 30 3 2 4 <1 0
LinkedIn 42 58 56 37 4 2 1 <1 0
Pinterest 40 60 50 42 2 1 0 5 0
Tumblr 37 62 50 39 4 2 2 2 1
@metasean
metasean / Mac-CLI-Tools.md
Created Oct 9, 2016 — forked from JoniWeiss/Mac-CLI-Tools.md
Mac Command Line for Web Devs
View Mac-CLI-Tools.md

Mac Command Line for Web Devs

Handy Tools

  • mdn-search.
    • Quick tool for search in Mozilla Developer Network from command line, built with nodejs by Nicolás Arias (ezakto):

    • Usage:

    mdn   [options]   [command]   <query>
View quote_list.json
{ "quotes": [
{
"text": "There are moments when one has to choose between living one's own life, fully, entirely, completely-or dragging out some false, shallow, degrading existence that the world in its hypocrisy demands.",
"author": "Oscar Wilde",
"publication": "Lady Windermere's Fan"
},
{
"text": "Your best teacher is your last mistake.",
"author": "Ralph Nader"
},
@metasean
metasean / Gun.anonymous_put
Last active Jan 29, 2016
The anonymous_put method .put()s a value onto a parent object without the need for a pre-defined key.
View Gun.anonymous_put
/* NOTE
PsychoLlama's version below is much better, as it retains the callback and options!
*/
/* Keyless Put method
Because of challenges in distributed systems, GUN does not natively support arrays, instead leaving
it up to extensions that developers can choose from based on their application needs.
In addition, as of GUN v 0.3.0 it also doesn't have a native method to .put() data without a key.
@metasean
metasean / NodeSchool.md
Created Sep 16, 2015
Instructions for September 2015
View NodeSchool.md
@metasean
metasean / intro-to-git--SLC-JS-Learners--201508.md
Last active Feb 2, 2017
Introduction to git - for SLC-JS-Learners 2015-08 meetup
View intro-to-git--SLC-JS-Learners--201508.md

Intro to git

  1. create/log-into your http://github.com account

  2. create/log-into your http://c9.io account, using your github account credentials

  3. from your C9 dashboard, create a new workspace, name it "intro-to-git", leave all other options at default values, then "Create workspace"

  4. in github, create a "New repository" that is also named "intro-to-git"