Skip to content

Instantly share code, notes, and snippets.

Avatar
👋

Michael Mangialardi michaelmang

👋
View GitHub Profile
@michaelmang
michaelmang / index.html
Created Oct 5, 2016
interactive resume
View index.html
<header>
<a href="http://codepen.io/mikemang/#hireme" id="logo">
<h1 class="animated slideInLeft">michael mangialardi</h1>
</a>
<nav>
<ul class="animated slideInRight">
<li><a href="https://s3-us-west-2.amazonaws.com/s.cdpn.io/827672/mike_mangialardi_resume.pdf" download>resume</a></li>
<li><a href="http://codepen.io/mikemang/#hireme">hire</a></li>
</ul>
@michaelmang
michaelmang / Counter.scala
Last active Apr 29, 2017
Counter App Scala.js with Vue
View Counter.scala
package scalajs.vue.Counter
import org.scalajs.dom
import org.scalajs.dom._
import scala.scalajs.js
import scala.scalajs.js.Any._
import scala.scalajs.js.Dynamic.{literal, global => g}
import scala.scalajs.js.{Dynamic, JSApp}
import scala.scalajs.js.annotation.JSExport
import scalajs.vuejs.Vue
@michaelmang
michaelmang / unused_imports.js
Created Aug 16, 2019
Remove Unused Imports
View unused_imports.js
export default function transformer(file, api, options) {
const j = api.jscodeshift;
const root = j(file.source);
const removeIfUnused = (importSpecifier, importDeclaration) => {
const varName = importSpecifier.value.local.name;
if (varName === "React") {
return false;
}
@michaelmang
michaelmang / scrape_sermons.js
Created Dec 9, 2020
Scrape Grace Gems Script
View scrape_sermons.js
import chalk from 'chalk';
import clear from 'clear';
import CLI from 'clui';
import figlet from 'figlet';
import fs from 'fs';
import jsonFormat from 'json-format';
import kebabCase from 'lodash.kebabcase';
import startcase from 'lodash.startcase';
import tolower from 'lodash.tolower';
import truncate from 'lodash.truncate';
View eslint-plugin-tokens.js
/* Should be adjusted based on different tokenization */
import { colord } from 'colord';
import { from } from 'nearest-color';
import tokens from 'your-tokens';
function getType(key) {
if (key.toLowerCase().includes('color')) {
return 'color';
}
@michaelmang
michaelmang / index.js
Created Nov 2, 2021
react-tokengen idea - rough start
View index.js
const { exec } = require('child_process');
const fs = require('fs');
const path = require('path');
const ping = require('ping');
const puppeteer = require('puppeteer');
const reactDocs = require('react-docgen');
const componentSrc = `
import React, { Component } from 'react';
import PropTypes from 'prop-types';
@michaelmang
michaelmang / index.md
Created Dec 3, 2021
Side by Side Images - GitHub Markdown
@michaelmang
michaelmang / index.js
Created Jan 6, 2022
Contract Dictionary (Like Style Dictionary for Schemas)
View index.js
import glob from 'glob';
import fs from 'fs';
import { compile as compileTypeScript } from 'json-schema-to-typescript';
import path from 'path';
import rimraf from 'rimraf';
const FORMATS = Object.freeze({
json: 'json',
typescript: 'typescript',
});