Skip to content

Instantly share code, notes, and snippets.

Avatar

Craig Oda codetricity

View GitHub Profile
@codetricity
codetricity / main.dart
Created Aug 2, 2020 — forked from alexeyismirnov/main.dart
MJPEG player written entirely in Flutter/Dart
View main.dart
import 'package:flutter/material.dart';
import 'mjpeg_view.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
@codetricity
codetricity / MainActivity.java
Created Apr 9, 2020
RICOH THETA Plug-in sample code by KA-2 for TensorFlow Lite plug-in
View MainActivity.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
@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 )
You can’t perform that action at this time.