Skip to content

Instantly share code, notes, and snippets.

@clngn
clngn / gist:1984544
Created March 6, 2012 07:18
画素操作におけるスライスとfor文
# -*- coding: utf-8 -*-
import cv2
import numpy
src = cv2.imread('azu.jpg', 1)
dst = numpy.zeros(src.shape, dtype=numpy.uint8)
dst = cv2.cvtColor(src, cv2.COLOR_BGR2HSV)
@clngn
clngn / gist:3775049
Created September 24, 2012 09:06
ハッシュタグ検索したり
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script>
$(function() {
$.getJSON(
@clngn
clngn / gist:3959221
Created October 26, 2012 14:46
なんかナビ
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title></title>
<style>
* {
margin: 0;
padding: 0;
}
@clngn
clngn / gist:5850958
Created June 24, 2013 15:38
ふきだし
@charset "utf-8";
/* @import "reset.css"; */
body {
color: #333;
}
p {
line-height: 1.4;
}
@clngn
clngn / gist:6150676
Created August 4, 2013 15:26
ボタンくるくる
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title>くるくる</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<style>
body {
background: #f8f8f8;
}
@clngn
clngn / gist:6204051
Last active December 20, 2015 22:19
animation
$('#iine').on({
'click': function() {
$(this).addClass('iine_animation');
},
'webkitAnimationEnd': function() {
$(this).removeClass('iine_animation');
}
});
$('#add_sticky').on({
@clngn
clngn / platex2pdf
Created January 19, 2014 13:43
platex2pdf
#!/bin/bash
export PATH=/usr/texbin:$PATH
export name=$1
if platex $1 ; then
platex $1
dvipdfmx ${name%.*}
fi
$(function() {
var hex = $('#hex').text();
console.log(hex);
var rgb = hex2rgb(hex);
console.log(rgb);
var hsv = rgb2hsv(rgb);
console.log(hsv);
var rgb2 = hsv2rgb(hsv);
console.log(rgb2);
var hex2 = rgb2hex(rgb2);
@clngn
clngn / chat.css
Last active November 13, 2023 09:07
YouTubeチャット用のカスタムCSS(based on https://chatv2.septapus.com/ )
@import url("https://fonts.googleapis.com/css?family=M+PLUS+Rounded+1c:700,900");
body {
overflow: hidden;
background-color: rgba(0, 0, 0, 0);
}
yt-live-chat-item-list-renderer #items {
overflow: hidden !important;
}