- A small application that is an example of using React + Redux
- I'll use this as an example during the presentation
- I opened up a PR to create a packages UI for devs to see the full diff as I walkthrough the steps to create this.
This is a compiled list of falsehoods programmers tend to believe about working with time.
Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.
| // START of parameters | |
| // gamma of simulated CRT | |
| CRTgamma = 2.4; | |
| // gamma of display monitor (typically 2.2 is correct) | |
| monitorgamma = 2.2; | |
| // overscan (e.g. 1.02 for 2% overscan) | |
| overscan = vec2(1.001,1.001); | |
| // aspect ratio | |
| aspect = vec2(1.0, 0.75); |
| #!/usr/bin/env ruby | |
| Dir.chdir("#{ARGV[0]}") do | |
| if File.exist?("PULP_MANIFEST") | |
| `rm -rf PULP_MANIFEST` | |
| end | |
| files = Dir.glob("**/*") | |
| lines = files.collect do |file| |
| #include "keymap_common.h" | |
| #include "action_layer.h" | |
| #include "action.h" | |
| #include "action_util.h" | |
| const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |
| [0] = KEYMAP( | |
| Q, W, E, R, T, MINS, EQL, Y, U, I, O, P, | |
| A, S, D, F, G, BSLS, QUOT, H, J, K, L, SCLN, | |
| Z, X, C, V, B, TAB, ENT, N, M, COMM, DOT, SLSH, |
| # Name: Makefile | |
| # Author: <insert your name here> | |
| # Copyright: <insert your copyright message here> | |
| # License: <insert your license reference here> | |
| # DEVICE ....... The AVR device you compile for | |
| # CLOCK ........ Target AVR clock rate in Hertz | |
| # OBJECTS ...... The object files created from your source files. This list is | |
| # usually the same as the list of source files with suffix ".o". | |
| # PROGRAMMER ... Options to avrdude which define the hardware you use for |
| #define F_CPU 1000000 // CPU frequency for proper time calculation in delay function | |
| #include <avr/io.h> | |
| #include <util/delay.h> | |
| int main(void) | |
| { | |
| DDRD |= (1 << PD6); // make PD6 an output | |
| for(;;) |