Skip to content

Instantly share code, notes, and snippets.

View MJefferson's full-sized avatar

Martial Jefferson MJefferson

View GitHub Profile
#!/usr/bin/env zx
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
@MJefferson
MJefferson / css-grid-magazine-layouts.markdown
Created July 16, 2022 07:13
CSS Grid: Magazine Layouts

CSS Grid: Magazine Layouts

Wanted to do some magazine layouts, so I decided to create a Marvel Magazine. I regret everything.

Responsiveness may not be perfect.

There are 20+ sources to credit, that I may do a "Source page" later.

A Pen by MJJ on CodePen.

@MJefferson
MJefferson / install_r_ubuntu.sh
Last active December 9, 2021 22:39
R Installation on Ubuntu 20.04 (Focal)
# Ensure that you are root
# Following instructions from (R docs)[https://cran.r-project.org/bin/linux/ubuntu/]
# update indices
apt update -qq
# install two helper packages we need
apt install --no-install-recommends software-properties-common dirmngr
# add the signing key (by Michael Rutter) for these repos
# To verify key, run gpg --show-keys /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
@MJefferson
MJefferson / setup.sh
Last active December 1, 2021 22:46 — forked from ddbs/dsu.sh
Data Science Ubuntu
# Instructions to build a Data Science VM based on Ubuntu Xenial
######################################
# Pre-requisites
######################################
# Install Virtual Box 5.1+
# https://www.virtualbox.org/
# Install Ubuntu 16.04.1 LTS on VirtualBox
@MJefferson
MJefferson / Tron.yaml
Last active September 23, 2021 01:52
Tron Tangram Scene
global:
sdk_api_key: "mKcTG7-4SQW6UfAbYdJZ8g"
import:
# Components
- components/globals.yaml
- components/fonts.yaml
# Styles
- styles/common.yaml
- styles/lines.yaml
@MJefferson
MJefferson / choropleth-chart-js.markdown
Created March 16, 2021 14:18
Choropleth - Chart.js
@MJefferson
MJefferson / chart-js-geo-plugin-choropleth-usa.markdown
Created March 16, 2021 07:24
Chart.js Geo Plugin - Choropleth USA
@MJefferson
MJefferson / d3-react-choropleth-map.markdown
Last active November 17, 2020 07:26
D3 & React Choropleth Map
@MJefferson
MJefferson / index.html
Last active September 21, 2021 22:16
Electron Fiddle Gist
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Septimien</title>
<!-- Material via CDN -->
@MJefferson
MJefferson / index.html
Created March 24, 2020 22:32
MDC example
<div class="mdc-components">
<div class="mdc-components__section">
<div class="mdc-components__column">
<div>
<div class="mdc-component mdc-component__buttons">
<p>Buttons</p>
<div class="mdc-component__section">
<div class="mdc-component__containers">
<div class="mdc-component__containers__primary">
<p>Primary</p><button class="mdc-fab material-icons" aria-label="Add"><span class="mdc-fab__icon">add</span></button> <button class="mdc-fab material-icons mdc-fab--plain" aria-label="Add"><span class="mdc-fab__icon">add</span></button>