This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script intended to be executed from ncmpcpp (execute_on_song_change | |
# preference) running from urxvt to set album cover as background image | |
# Copyright (c) 2013 Vyacheslav Levit | |
# Licensed under The MIT License: http://opensource.org/licenses/MIT | |
MUSIC_DIR=$HOME/Music | |
DARKEN=50 # 0 - original image colors, 100 - absolutely black background |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var socket = null; | |
function bootstrap() { | |
// 適当な図形を描画 | |
var c = document.getElementById('mycanvas'); | |
var ctx = c.getContext('2d'); | |
ctx.globalalpha = 0.3; | |
for(var i=0; i<1000; i++) { | |
ctx.beginPath(); |