Skip to content

Instantly share code, notes, and snippets.

View cocopon's full-sized avatar
🍣

Hiroki Kokubun cocopon

🍣
View GitHub Profile
@cocopon
cocopon / slack-sidebar-iceberg
Last active May 26, 2023 12:06
Iceberg for Slack
#1E2132,#2A3158,#C6C8D1,#161821,#2A3158,#C6C8D1,#B4BE82,#E27878
// Processingでカメラの映像を遅延させるサンプル
// 遅延分の画像をPGraphicsの配列で保持しておくのがポイント
// カメラの映像を扱うためのライブラリをインポート
import processing.video.*;
// カメラ
Capture cam;
// 保持する枚数
@cocopon
cocopon / ansi-16-colors.go
Last active April 17, 2020 03:07
ANSI 16 colors table
package main
import "fmt"
func main() {
fgs := []string{
"39",
"30", "1;30",
"31", "1;31",
"32", "1;32",
@cocopon
cocopon / 404.txt
Created December 30, 2017 14:36
404 for colorswat.ch
::::: ::::::: :::::
:+:+:+ :+: :+: :+:+:+
+:+ +:+ +:+ :+:+ +:+ +:+
+#+ +:+ +#+ + +:+ +#+ +:+
+#+#+#+#+#+ +#+# +#+ +#+#+#+#+#+
#+# #+# #+# #+#
### ####### ###
@cocopon
cocopon / dark.Xresources
Last active July 10, 2024 15:04
.Xresources for Iceberg
! special
*.foreground: #c6c8d1
*.background: #161821
*.cursorColor: #c6c8d1
! black
*.color0: #1e2132
*.color8: #6b7089
! red
@cocopon
cocopon / Iceberg.terminal
Last active September 5, 2020 00:26
Iceberg for Terminal.app
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ANSIBlackColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGBwpYJHZlcnNpb25ZJGFyY2hpdmVyVCR0b3BYJG9iamVjdHMS
AAGGoF8QD05TS2V5ZWRBcmNoaXZlctEICVRyb290gAGjCwwTVSRudWxs0w0ODxARElVO
U1JHQlxOU0NvbG9yU3BhY2VWJGNsYXNzTxAnMC4xMTc2NDcwNTg4IDAuMTI5NDExNzY0
NyAwLjE5NjA3ODQzMTQAEAKAAtIUFRYXWiRjbGFzc25hbWVYJGNsYXNzZXNXTlNDb2xv
@cocopon
cocopon / index.html
Last active October 26, 2016 03:33
HTML file that causes an error with AtomLinter/linter-tidy
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<div>
foobar
</p>
/*
* Action.pde
* (c) 2015 cocopon.
*
* License: MIT
*/
import java.util.Arrays;
public class ActionRunner {
@cocopon
cocopon / Easing.pde
Last active May 10, 2024 00:03
A class that brings Robert Penner's easing functions into Processing
/*
* Easing.pde - brings Robert Penner's easing functions into Processing
* (c) 2015 cocopon.
*
* See the following to learn more about these famous functions:
* http://www.robertpenner.com/easing/
*
* License:
* http://www.robertpenner.com/easing_terms_of_use.html
*/
@cocopon
cocopon / GifRecorder.pde
Last active June 9, 2019 01:07
A class that makes it easy to record a sketch in animated GIF
/*
* GifRecorder - makes it easy to record a sketch in animated GIF
* (c) 2014 cocopon.
*/
import gifAnimation.*;
/*
* Usage:
*
* 0. Install a required library before using GifRecorder.