Skip to content

Instantly share code, notes, and snippets.

View robphoenix's full-sized avatar
🤘
Design Systems 4 lyfe

Rob Phoenix robphoenix

🤘
Design Systems 4 lyfe
View GitHub Profile
@robphoenix
robphoenix / activities-test.md
Last active November 30, 2022 14:44 — forked from BuddhaBing/jokes-test.md
Frontend Challenge

Frontend Challenge

This test will make use of the Bored API. Feel free to read through the documentation to familiarise yourself with it before beginning.

Throughout the challenge, please feel free to:

  • ask questions (we're here to help you, not drill you).
  • use Google/search engines (you won't be penalised for forgetting some syntax - it happens to us all).
  • code in the IDE/development environment of your choosing (using whatever tools and packages/libraries you would usually use in your day-to-day work).

The brief

@robphoenix
robphoenix / flex.tsx
Created December 9, 2019 10:30
react flexbox component with as prop
/** @jsx jsx */
import { jsx } from '@emotion/core'
import React from 'react'
const Flex: React.FC<{
as?: React.ReactType
row?: boolean
column?: boolean
}> = ({ as: Component = `div`, row, column }) => {
const flexDirection = row ? 'row' : column ? 'column' : ''
import { InMemoryDbService } from 'angular-in-memory-web-api'
import { Hero } from './hero'
export class InMemoryDataService implements InMemoryDbService {
createDb() {
const heroes = [
{ id: 11, name: 'Mr. Nice' },
{ id: 12, name: 'Narco' },
{ id: 13, name: 'Bombasto' },
{ id: 14, name: 'Celeritas' },
{
"Reggae": [
"The Abyssinians",
"The Aces",
"Glen Adams",
"Admiral T",
"Yasus Afari",
"African Brothers",
"The Aggrovators",
"Aisha",
@robphoenix
robphoenix / cloudSettings
Last active April 21, 2019 08:22
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-04-21T08:22:13.740Z","extensionVersion":"v3.2.8"}
@robphoenix
robphoenix / cloudSettings
Last active January 7, 2019 09:10
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-01-07T09:10:24.054Z","extensionVersion":"v3.2.4"}
@robphoenix
robphoenix / xgo.sh
Created April 3, 2017 19:33
shell scripts
#!/bin/bash
for dir in ./exercises/*/
do
dir=${dir%*/}
file="$dir/example_gen.go"
if [ -f "$file" ]; then
metadir="${dir}/.meta/"
mkdir -p "${metadir}"
mv "$file" "${metadir}gen.go"
fi
---
- name: Create tmp Directory
hosts: 127.0.0.1
connection: local
tasks:
- name: Create tmp Directory
file: path=../../tmp state=directory

Keybase proof

I hereby claim:

  • I am robphoenix on github.
  • I am robphoenix (https://keybase.io/robphoenix) on keybase.
  • I have a public key ASB-aboRV_tyb6roe20y1_L98XiAAecN-rU421MRxMW7ywo

To claim this, I am signing this object:

@robphoenix
robphoenix / i3.md
Last active June 14, 2021 12:17
i3 cheat sheet

mod + Enter - open terminal

mod + v - split vertically

mod + h - split horizontally

mod + Shift + q - close window

mod + d - open dmenu