Skip to content

Instantly share code, notes, and snippets.


Rob Wierzbowski robwierzbowski

View GitHub Profile
robwierzbowski / elements.scss
Last active Nov 2, 2017
Example element rulesets
View elements.scss
.userSummary {
/* element rules */
.image {
/* element rules */
.lastName {
robwierzbowski / set.css
Last active Nov 2, 2017
Set stylesheet example. Uses PostCSS nesting and simple variables.
View set.css
Set default element styles
Based partially on sanitize.css v2.0.0
::after {
box-sizing: border-box;
robwierzbowski / reset.css
Last active Nov 2, 2017
Reset stylesheet example. Uses PostCSS nesting.
View reset.css
Reset text elements for easy semantic use.
/* Pseudo */
:focus {
outline: none;
robwierzbowski / montyburns.js
Last active Oct 23, 2017
Quick Monty Hall example in JS
View montyburns.js
// Not the most expressive code, but it does the trick.
// Run with swap = true to test swapping doors.
const montyBurns = function (swap = false) {
let wins = 0;
for (let i = 0; i < 10000; i++) {
const doors = [
robwierzbowski /
Last active Oct 5, 2016
Summary of my research on bundling improvements.

JavaScript Bundlers


  • An all in one asset transformer and bundler.
  • Recommends that we use its internal dev server.
  • Built within / serving the React community.
  • Convention based, Rails-esque; many defaults for a "normal" project.
  • Run off of a large config file.
  • Has its own plugin ecosystem (Similar to babel / rollup transforms. Are they sharable?).
View frag-ref.js
* Return a reference to a document fragment's content that persists when the
* fragment's content is inserted into the DOM
* @param {DocumentFragment} fragment - fragment to return references from
* @returns {HTMLElement} A reference to the contents of fragment
const getReference = function(fragment) {
return [], 0)[0];

A good pull request:

  • Is easy to effectively code review
  • Is easy to effectively QA
  • Adds quality code and useful information to our codebase

This is primarily accomplished by keeping PRs and commits small, well described and single purpose.

Why bother?

robwierzbowski /
Last active Jan 24, 2018
Simple rules for contributing to GitHub repositories. Edits encouraged.

Hi! Thanks for using this project. I had a lot of fun building it, and I hope you're having fun using it too.

If you have an error or support request

  • Read the error message and documentation.
  • Search existing issues, closed issues, and the internet first.
  • If the issue is with a dependency of this project, post on the dependency's repo.
  • If you can fix the issue, submit a PR 👍 💃 💃 🚀.
  • If the issue persists, post on the issue tracker. Include any information that could help others reproduce and fix.

To answer the "punctuation inside or outside quotes?" question, ask yourself if the punctuation belongs to the quote or the sentence that contains the quote.

Keep punctuation inside when it's part of the quoted sentence.

If the quoted sentence ends but the unquoted sentence continues, periods become commas.

"How are you doing today?" he asked.
"Check out my quotes," Rob said. "This punctuation seems pretty natural."

If you do it the other way, it's all kinds of wrong.

robwierzbowski /
Last active Jun 7, 2021
A simple litte script. Create and push to a new github repo from the command line.
# Create and push to a new github repo from the command line.
# Grabs sensible defaults from the containing folder and `.gitconfig`.
# Refinements welcome.
# Gather constant vars
GITHUBUSER=$(git config github.user)