Skip to content

Instantly share code, notes, and snippets.

Craig Oda codetricity

Block or report user

Report or block codetricity

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
@codetricity
codetricity / Oled.java
Last active Jun 20, 2019
RICOH THETA Z1 Open Source KA-2 OLED Library
View Oled.java
/**
* Copyright 2018 Ricoh Company, Ltd.
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@codetricity
codetricity / rainfall-01.03.js
Last active Nov 1, 2018
d3 rainfall lessons
View rainfall-01.03.js
d3.csv('data/rainfall-by-state.csv').then(data => {
data.forEach(stateData => {
stateData.rainfall = +stateData.rainfall;
const checkChar = /^[A-Z]/;
for (let i = 0; i < 5; i++) {
if (checkChar.test(stateData.state)) {
console.log('found capital letter');
break;
} else {
stateData.state = stateData.state.substring(1);
@codetricity
codetricity / bts-profile-4.rst
Last active Oct 22, 2018
BTS Member Profile Part 4
View bts-profile-4.rst

BTS Profile Height Analysis

https://i.imgur.com/0YtFKdz.png

Use the previous projects on temperature and BTS member height as a reference to create a chart that uses a graphic as data point marker instead of the previous circle.

@codetricity
codetricity / bts-profiles-2.rst
Last active Oct 20, 2018
BTS Profiles Part 2
View bts-profiles-2.rst

BTS Profiles Part 2 - Show Image

Use Data Update Pattern

  1. select
  2. data
  3. exit
  4. update
View bts-profile.rst

BTS Profiles

Setup

Create folders for

  1. css
  2. assets
@codetricity
codetricity / bitmap-image.rst
Last active Oct 18, 2018
Add Bitmap Images to SVG
View bitmap-image.rst
@codetricity
codetricity / 00-civilwar-data-join.rst
Last active Oct 22, 2018
Data join example using Civil War data
View 00-civilwar-data-join.rst

Learn Data Join Pattern

Goal

Learn pattern to change data on the same chart. For example, change data from Union to Confederate.

Pattern: Data Doesn't Change

  1. selectAll( thing to draw such as circle )
View datasource.rst
@codetricity
codetricity / civilwar2.rst
Last active Oct 14, 2018
Civil War Part 2 - Adding Confederate and Border States
View civilwar2.rst
You can’t perform that action at this time.