Skip to content

Instantly share code, notes, and snippets.

View usk83's full-sized avatar

Yusuke Takahashi usk83

View GitHub Profile
@usk83
usk83 / TheEndOfTheMonth.ics
Created May 1, 2018 02:37 — forked from honda0510/TheEndOfTheMonth.ics
Google カレンダーに月末の予定を追加するiCalendarファイル
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
METHOD:PUBLISH
BEGIN:VTIMEZONE
TZID:Asia/Tokyo
BEGIN:STANDARD
TZOFFSETFROM:+0900
TZOFFSETTO:+0900
TZNAME:JST
CSEG SEGMENT
ASSUME CS:CSEG, DS:CSEG, ES:CSEG
ORG 100H
START:
;dsはVRAMのアドレス、esは保存メモリのアドレスに固定
mov ax, 0b800h ;VRAMの先頭アドレス
mov ds, ax
mov ax, 9000h ;保存メモリの先頭アドレス
mov es, ax
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <netdb.h>
#include <ctype.h>