Skip to content

Instantly share code, notes, and snippets.

use std::cell::{Cell, RefCell};
use std::collections::HashMap;
use std::fmt::Debug;
use std::rc::Rc;
#[derive(Debug)]
pub struct Error;
pub trait Event: Debug {
fn code(&self) -> &str;
@diffshare
diffshare / Covid19Radar_Sequence.md
Last active September 4, 2020 11:19
Covid19Radarのシーケンス図

Covid19Radarのシーケンス図

ソースコードから書き起こしたシーケンス図です。間違っている可能性があります。

シーケンス図

@diffshare
diffshare / replace-from-cybozu-to-redmine.rb
Last active May 19, 2018 14:18
replace-from-cybozu-to-redmine.rb
# $ rails r ./replace-from-cybozu-to-redmine.rb
#
# RailsのGemfileで以下が必要
# require "rest-client"
# require "oauth"
consumer_key = "" # cybozuliveの開発者登録
consumer_secret = ""
consumer = OAuth::Consumer.new(
@kawabata
kawabata / criminal_jc.md
Last active June 28, 2022 07:04 — forked from shunirr/criminal_jc.md
女子中学生チケット詐欺事件

criminal_jc

@shunirr
shunirr / criminal_jc.md
Last active February 26, 2024 05:51
女子中学生チケット詐欺事件

criminal_jc

@muktupavels
muktupavels / toggle-decorations.c
Last active January 28, 2024 12:59
Simple app to toggle window decorations.
/*
* Copyright (C) 2017 Alberts Muktupāvels
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@solarce
solarce / docker_images.md
Created August 7, 2015 22:56
A quick list of the Travis Docker containers on quay.io that you can `docker pull`

The following is a list of public Docker images Travis uses for our container based builds. You can grab them with docker pull quay.io/travisci/travis-$lang.

  • Do note that they are large in size, 800MB - 1.8G

Images:

@jokertarot
jokertarot / clfontpng.cc
Created November 21, 2013 15:43
How to render color emoji font with FreeType 2.5
// = Requirements: freetype 2.5, libpng, libicu, libz, libzip2
// = How to compile:
// % export CXXFLAGS=`pkg-config --cflags freetype2 libpng`
// % export LDFLAGS=`pkg-config --libs freetype2 libpng`
// % clang++ -o clfontpng -static $(CXXFLAGS) clfontpng.cc $(LDFLAGS) \
// -licuuc -lz -lbz2
#include <cassert>
#include <cctype>
#include <iostream>
#include <memory>