Skip to content

Instantly share code, notes, and snippets.

View spring-raining's full-sized avatar
🛌
Ofuton is awesome

TAMADA Akihiro spring-raining

🛌
Ofuton is awesome
View GitHub Profile
@spring-raining
spring-raining / index.html
Created May 9, 2023 17:29
Example of `update` media feature
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Example of update media featuretag</title>
<style>
@media (update: none) {
.test {
color: red;
}
@spring-raining
spring-raining / case1.html
Last active May 13, 2023 09:12
EAL two partitions
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>EAL float system example</title>
<link rel="stylesheet" href="main.css">
</head>
<body>
<div class="eal-float-start-start">start-start</div>
<div class="eal-float-start-end">start-end</div>
@spring-raining
spring-raining / index.html
Last active January 6, 2023 10:44
Example of picture tag
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Example of picture tag</title>
<style>
body {
background-color: silver;
}
figure > *,
@spring-raining
spring-raining / index.html
Created November 21, 2022 07:37
Tailwind Play CDN demo
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body>
@spring-raining
spring-raining / index.html
Last active August 21, 2019 16:50
Negative margin reproduction
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=s, initial-scale=1.0"/>
<title>Negative margin reproduction</title>
<style>
.box {
margin-top: -1000px;
padding-top: 1000px;
#!/bin/bash
# full system backup
# Backup destination
backdest=/opt/backup
# Labels for backup name
#PC=${HOSTNAME}
pc=pavilion
distro=arch
@spring-raining
spring-raining / init.sql
Created December 14, 2016 17:34
cmk-checklist
-- init.sql for SQLite3
CREATE TABLE IF NOT EXISTS "user" (
"id" integer NOT NULL PRIMARY KEY,
"slack_user_id" varchar(254) NOT NULL,
"slack_team_id" varchar(254) NOT NULL,
"slack_user_name" varchar(254)NOT NULL
);
CREATE TABLE IF NOT EXISTS "cmk_list" (
@spring-raining
spring-raining / settings.py
Last active December 5, 2016 07:18
setup ComiKnowledge
# -*- coding:utf-8 -*-
import os
PROJECT_ROOT = "/path/to/project/directory/"
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(PROJECT_ROOT, 'ComiKnowledge/ck.db')
@spring-raining
spring-raining / input.py
Last active September 24, 2016 16:00
Python3のアレ
print('1 line string input')
S = input()
print(S)
print('1 line number input')
N = int(input())
print('N = ' + str(N))
print('N+1 = ' + str(N+1))
print('1 line multiple numbers input')
@spring-raining
spring-raining / index.html
Last active May 15, 2016 05:49
第3回 計算論理学勉強会(https://bl.ocks.org/spring-raining/af2f955b0eda64891e808942b12355c7 で見られます)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Markdown to HTML</title>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
jax: ["input/TeX","output/HTML-CSS"],
extensions: [],
TeX: {