I hereby claim:
- I am monpetit on github.
- I am monpetit (https://keybase.io/monpetit) on keybase.
- I have a public key ASCvu0ZQCVYrL0DW7l5YcZkRgqaMbCqFjyf1EXK82xDVmQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import datetime | |
import dateutil.parser as dtparser | |
from pytz import timezone, utc | |
KST = timezone('Asia/Seoul') | |
def utc_to_local(dt, tz=KST): | |
try: | |
return utc.localize(dt).astimezone(tz) |
defmodule PeriodicTimer do | |
use GenServer | |
@init_state %{ | |
name: __MODULE__, | |
count: 0, | |
run: false, | |
interval: 1_000, | |
task: nil, | |
task_args: [] |
;; -*- mode: scheme -*- | |
;; vim: set ft=scheme et: | |
(setlocale LC_ALL "") | |
(use-modules (ice-9 readline)) | |
(activate-readline) | |
(let ((%local-lib-path (string-append (getenv "HOME") "/.local/share/guile"))) | |
(set! %load-path (cons %local-lib-path %load-path)) |
#include <avr/io.h> | |
#include <stdio.h> | |
void usart_putchar(char data); | |
int usart_putchar_printf(char var, FILE *stream); | |
static FILE mystdout; /* FDEV_SETUP_STREAM(usart_putchar_printf, NULL, _FDEV_SETUP_WRITE); */ | |
void usart_putchar(char data) | |
{ |
#include "mbed.h" | |
#include "LCD_DISCO_F429ZI.h" | |
#include "TrueRandom.h" | |
#define MAX(a, b) ((a >= b) ? a : b) | |
#define MIN(a, b) ((a < b) ? a : b) | |
#define LCD_WIDTH 240 | |
#define LCD_HEIGHT 320 | |
#include <stdio.h> | |
#include <string.h> | |
#include <inttypes.h> | |
#include "em_device.h" | |
#include "em_chip.h" | |
#include "em_cmu.h" | |
#include "em_emu.h" | |
#include "em_int.h" | |
#include "em_timer.h" |
#include <stdio.h> | |
#include <string.h> | |
#include <inttypes.h> | |
#include "em_device.h" | |
#include "em_chip.h" | |
#include "em_usart.h" | |
#include "em_cmu.h" | |
#include "em_emu.h" | |
#include "em_int.h" |
#include <avr/io.h> | |
#include <avr/sleep.h> | |
#include <avr/power.h> | |
#include <avr/interrupt.h> | |
#include <Wire.h> | |
#define PCF8563_ADDR 0x51 | |
#define RTCC_SQW_ADDR 0x0D |
#include <avr/io.h> | |
#include <util/delay.h> | |
#include <avr/wdt.h> | |
#include <avr/sleep.h> | |
#include <avr/power.h> | |
#include <avr/interrupt.h> | |
// Routines to set and claer bits (used in the sleep code) | |
#ifndef cbi |