Skip to content

Instantly share code, notes, and snippets.

@jlian
jlian / demo-steps.md
Last active March 14, 2024 15:50
Steps taken for IoT MQ Jumpstart Lightning demo video
Rank City Country Population Score Inexpensive Meal Mid-range Meal Domestic Beer Imported Beer Cappuccino Wine - Market Bread - Market Cheese - Market
1 Zürich Switzerland 372,857 £316.01 £22.32 £107.15 £7.14 £6.47 £4.81 £11.61 £2.74 £24.30
2 Basel Switzerland 163,216 £294.16 £22.39 £94.02 £6.27 £5.37 £4.49 £12.09 £2.80 £30.32
3 Lausanne Switzer
@jlian
jlian / hometheater-diagram.md
Last active July 11, 2023 21:26
Wiring diagram for my home theater

My home theater setup diagram

flowchart LR

    subgraph Media Closet
        subgraph Denon AVR X1700H
            AVR_HDMI1
            AVR_HDMI2
            AVR_HDMI3
{
"nodes": [{
"id": "1",
"status": "complete",
"treasure": {
"07": {
"looted": "true"
}
}
}, {
@jlian
jlian / animate-multiple-sin-matlab.m
Created February 28, 2018 02:13
Example to show how to create animation with multiple trajectories using column cell vector in Matlab
clear all
N = 100;
x = linspace(0,2*pi,N);
% Make 3 different paths
y(1,:) = sin(x);
y(2,:) = cos(x);
y(3,:) = sin(2*x);
@jlian
jlian / animate-sin-matlab.m
Created February 28, 2018 02:10
Simple example to show how to generate animation efficiently in Matlab and output a gif
N = 100;
x = linspace(0,2*pi,N);
y = sin(x);
%% Initialization
% set up first frame
figure('Color', 'white');
% plot the 'background'