Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>こころ|夏目漱石</title>
<style>
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
@piouc
piouc / userChrome.css
Created August 8, 2018 00:15
userChrome.css
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
@-moz-document url(chrome://browser/content/browser.xul) {
:root {
--toolbarbutton-inner-padding: 2px !important;
--chrome-background-color: #e8e8e8 !important;
--chrome-secondary-background-color: #fff !important;
--focus-ring-box-shadow: none !important;
--toolbarbutton-hover-background: ;
--toolbarbutton-border-radius: 0 !important;
--tab-loading-fill: #808080 !important;
@piouc
piouc / .abcde.conf
Created November 18, 2018 05:35
.abcde.conf
CDDBMETHOD=cddb
OUTPUTTYPE=wav
CDROM=/dev/disk3
OUTPUTFORMAT='${ARTISTFILE}/${ALBUMFILE}/${TRACKNUM} ${TRACKFILE}'
mungefilename ()
{
echo "$@" | sed -e 's/^\.*//' | tr -d ":><|*/\"'?[:cntrl:]"
}
@piouc
piouc / userChrome.css
Last active October 21, 2022 06:27
userChrome.css
@-moz-document url(chrome://browser/content/browser.xhtml) {
:root {
--toolbarbutton-inner-padding: 2px !important;
--chrome-background-color: #e8e8e8 !important;
--chrome-secondary-background-color: #fff !important;
--focus-ring-box-shadow: none !important;
--toolbarbutton-hover-background: ;
--toolbarbutton-border-radius: 0 !important;
--tab-loading-fill: #808080 !important;
}
@piouc
piouc / index.js
Created July 23, 2019 23:58
sequelize
const Sequelize = require('sequelize')
const sequelize = new Sequelize({
dialect: 'sqlite',
storage: 'db.sqlite',
logging: (...args) => console.log(...args)
})
const Model = Sequelize.Model
class User extends Model {}
@piouc
piouc / zipcode
Created October 4, 2019 09:16
zipcode
This file has been truncated, but you can view the full file.
--
-- PostgreSQL database dump
--
-- Dumped from database version 11.5
-- Dumped by pg_dump version 11.5
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
@piouc
piouc / keyboard-control.user.js
Last active June 23, 2020 03:17
google search keyboard control
// ==UserScript==
// @name google search keyboard controll
// @namespace dev.piou.google_search_controll
// @version 1.1
// @author piouc
// @include /^https?:\/\/www\.google\.(com|co\.jp)\/search/
// @run-at document-end
// @grant GM.openInTab
// ==/UserScript==
@piouc
piouc / reset.css
Created December 25, 2019 11:57 — forked from DavidWells/reset.css
/* http://meyerweb.com/eric/tools/css/reset/
v2.0-modified | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
/* ----------------------------------------------------------------------------------------------------
Super Form Reset
A couple of things to watch out for:
- IE8: If a text input doesn't have padding on all sides or none the text won't be centered.
- The default border sizes on text inputs in all UAs seem to be slightly different. You're better off using custom borders.
- You NEED to set the font-size and family on all form elements
- Search inputs need to have their appearance reset and the box-sizing set to content-box to match other UAs
@piouc
piouc / to_portrait.xmp
Created September 17, 2020 23:58
camera raw profile
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.6-c140 79.160451, 2017/05/06-01:08:21 ">
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about=""
xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/"
crs:Version="12.4"
crs:ProcessVersion="11.0"
crs:Saturation="0"
crs:Sharpness="67"
crs:LuminanceSmoothing="0"
crs:ColorNoiseReduction="0"