Skip to content

Instantly share code, notes, and snippets.

Adam L MrJadaml

Block or report user

Report or block MrJadaml

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View webpack-migration-configs.txt
💥 ecom-web-app [NCE-1046/webpack-migration] ⚡ yarn build:dev
yarn run v1.12.3
$ cross-env NODE_ENV=development webpack -p --progress
OOOOOOOOOOOoooooOOOOOOOOooooOOOOooOoooOOoooOOooOOOooOOOoo
{ entry: [ 'babel-polyfill', './client.js' ],
output:
{ path: '/Users/alichty/lulu/ecom-web-app/build',
publicPath: '/',
filename: 'bundle.js' },
stats: { children: false },
View style-guide-rfc.md

Summary

Adoption of AirBnb Style Guide + Lint Config.

Motivation

Currently we have a linter config, but don't keep it in sync with the rules defined in our style guide. This requires devs to regularly reference the style guide. More realistically speaking, PRs are submitted with code that does not comply with our style guide for rules that are not also defined in our config -- both new and seasoned devs do this. This causes us to kick back PRs due to code style violations which adds additional PR review cycles consuming multiple developer's time.

@MrJadaml
MrJadaml / new-mocks-pattern-rfc.md
Last active Jan 11, 2019
RFC to change the mocks module convention.
View new-mocks-pattern-rfc.md

Summary

Mocks are designated by a .mocks.js extensions and would be co-located with their corresponding module.

Basic example

├── SomeComponent
  ├── __snapshots__/
  ├── SomeComponent.scss
View krash-KSP.log
[LOG 20:16:38.935] ******* Log Initiated for Kerbal Space Program - 1.5.1.2335 (OSXPlayer) en-us *******
Kerbal Space Program - 1.5.1.2335 (OSXPlayer) en-us
OS: Mac OS X 10.12.6
CPU: Intel(R) Core(TM) i5-6287U CPU @ 3.10GHz (4)
RAM: 16384
GPU: Intel(R) Iris(TM) Graphics 550 (1536MB)
SM: 46 (OpenGL 4.1 INTEL-10.25.19)
RT Formats: ARGB32, Depth, ARGBHalf, Shadowmap, RGB565, ARGB4444, ARGB1555, Default, ARGB2101010, DefaultHDR, ARGB64, ARGBFloat, RGFloat, RGHalf, RFloat, RHalf, R8, ARGBInt, RGInt, RInt, RGB111110Float, RG32, RGBAUShort, RG16
@MrJadaml
MrJadaml / ksp.log
Created Nov 12, 2018
Lots of FMRS errors.
View ksp.log
[LOG 12:09:57.420] ******* Log Initiated for Kerbal Space Program - 1.5.1.2335 (OSXPlayer) en-us *******
Kerbal Space Program - 1.5.1.2335 (OSXPlayer) en-us
OS: Mac OS X 10.12.6
CPU: Intel(R) Core(TM) i5-6287U CPU @ 3.10GHz (4)
RAM: 16384
GPU: Intel(R) Iris(TM) Graphics 550 (1536MB)
SM: 46 (OpenGL 4.1 INTEL-10.25.19)
RT Formats: ARGB32, Depth, ARGBHalf, Shadowmap, RGB565, ARGB4444, ARGB1555, Default, ARGB2101010, DefaultHDR, ARGB64, ARGBFloat, RGFloat, RGHalf, RFloat, RHalf, R8, ARGBInt, RGInt, RInt, RGB111110Float, RG32, RGBAUShort, RG16
View gist:3db0eee7ea7b3512110129e151588c12
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'airblade/vim-gitgutter'
View gist:61b304e0e8563d3473f909bd9ea28f1e
state : Not replacing, url state already up to date
batch.js?adg3Enabled=true&locale=en-US:446 ui : BacklogView.draw
VM3488:1 POST https://iunuinc.atlassian.net/rest/analytics/1.0/publish/bulk net::ERR_BLOCKED_BY_CLIENT
(anonymous) @ VM3488:1
XMLHttpRequest.send @ batch.js?adg3Enabled=true&agile_global_admin_condition=true&devsummary=true&globalSidebarEnabled=true&jag=true&jaguser=true&jira-nps-enabled=true&locale=en-US&nps-not-opted-out=true:11687
send @ batch.js?adg3Enabled=true&locale=en-US:213
ajax @ batch.js?adg3Enabled=true&locale=en-US:207
h @ batch.js?adg3Enabled=true&agile_global_admin_condition=true&devsummary=true&globalSidebarEnabled=true&jag=true&jaguser=true&jira-nps-enabled=true&locale=en-US&nps-not-opted-out=true:11690
batch.js?adg3Enabled=true&locale=en-US:446 RPC: request rejected (bad origin): https://iunuinc.atlassian.net
3batch.js?adg3Enabled=true&locale=en-US:446 RPC: request rejected (bad origin): https://iunuinc.atlassian.net
View CarouselNav.jsx
import React, { PropTypes } from 'react';
import styled from 'styled-components';
import back from '../../public/assets/img/back-icon.svg';
import next from '../../public/assets/img/next-icon.svg';
const CarouselNav = ({ headerText, subtitle }) => {
return (
<Center>
<Arrow src={back} align={'left'} />
<Titles>
@MrJadaml
MrJadaml / carousel-index.js
Last active May 14, 2017
A JavaScript method that will keep looping around an array, forward -- positive, or backward -- negative, when provided a valid or "out of bounds" index value.
View carousel-index.js
@MrJadaml
MrJadaml / pi-booter.md
Last active May 14, 2017
Boot a headless Raspberry Pi w/out router access and find it on the network.
View pi-booter.md

Headless - No Router Access - Pi Booter

If you are trying to boot a headless setup of Raspbian and don't have access to the router the following may be what you are looking for.

  • Download the latest Raspbian Lite
  • Use an OS image flasher like Etcher to flash your Raspbian dmg file onto a microSD card.
  • Once the microSD card has been flashed you will want to do some configuration
    • From the terminal $ cd /Volumns/boot
    • Create an ssh file $ touch ssh
    • Create a file for preloading your network settings $ touch wpa_supplicant.conf
You can’t perform that action at this time.