Skip to content

Instantly share code, notes, and snippets.

View atomicpages's full-sized avatar
🏠
Working from home

Dennis Thompson atomicpages

🏠
Working from home
  • Rivian Automotive LLC
  • Palo Alto, CA
View GitHub Profile
@atomicpages
atomicpages / progress.scss
Created October 22, 2020 20:02
IE-friendly progress bar CSS
// super small progress bar styles
// recommended to be used with autoprefixer
// for the sake of consistency
$color: pink;
$whitespaceColor: #ffeeee;
progress {
appearance: none;
border: none;
def Counter(initial = 0) {
def count = initial
def inc = { count += it }
return [
increment: { inc(1) },
decrement: { inc(-1) },
value: { count }
]
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@atomicpages
atomicpages / index.js
Created January 28, 2020 21:36
Example of the react-rnd packaging issue
import * as React from "react";
import ReactDOM from "react-dom";
import { Rnd } from "react-rnd";
function App() {
return (
<Rnd
default={{
x: 0,
y: 0,
@atomicpages
atomicpages / index.ts
Last active November 26, 2019 01:55
Minimum verifiable example of JSON import using pika
import locales from './translation.json';
console.log(locales.en['Hello, {{name}}'].replace('{{name}}', 'Dennis'));
@atomicpages
atomicpages / .babelrc
Last active June 11, 2018 06:03
React + Jest + Enzyme with non-webpack app
{
"plugins": [
"transform-class-properties",
"transform-react-jsx"
],
"presets": [
"stage-2",
["env", {
"targets": {
"browsers": [
server {
listen 80;
listen [::]:80 default_server ipv6only=on;
index index.php index.html index.htm;
## Begin - Server Info
root /var/www;
server_name localhost;
## End - Server Info
import java.util.Scanner;
import java.io.PrintWriter;
import java.io.File;
public class Prog3b {
public static void main(String[] args) {
System.out.println("Program 3, Dennis Thompson, masc001");
if(args.length != 2) {
System.err.println("Usage: java Prog3b infileName outfileName");
<?php
/**
* Class FileNotFoundException
* @author Dennis Thompson
* @license MIT
* @version 1.0
*/
class FileNotFoundException extends Exception {
<?php
/**
* Class CouldNotConnectDatabaseException
* @author Dennis Thompson
* @license MIT
* @version 1.0
*/
class CouldNotConnectDatabaseException extends Exception {