Skip to content

Instantly share code, notes, and snippets.

@lyo
lyo / favon_ldr.user.js
Created February 17, 2021 15:58 — forked from shokai/favon_ldr.user.js
Fav on LDR
// ==UserScript==
// @name Favon LDR
// @namespace http://hoge.sub.jp/blog/
// @description add to twitter's favorites on LDR
// @include http://reader.livedoor.com/reader/*
// @include http://fastladder.com/reader/*
// @resource star http://assets0.twitter.com/images/icon_star_full.gif
// @version 0.0.3
// ==/UserScript==
@lyo
lyo / drag_n_drop.html
Last active June 21, 2020 04:08 — forked from ragklaat/drag_n_drop.html
Drag & drop images to HTML5 canvas
<!doctype html>
<html>
<head>
<title>Drag n drop test</title>
<style type="text/css">
body {text-align: center; padding-top: 100px;}
em {position: absolute; bottom: 0; right: 0}
canvas { border: 1px solid black; }
</style>
# somewhat hackish solution to:
# https://twitter.com/EamonCaddigan/status/646759751242620928
# based mostly on copy/pasting from ggplot2 geom_violin source:
# https://github.com/hadley/ggplot2/blob/master/R/geom-violin.r
library(ggplot2)
library(dplyr)
"%||%" <- function(a, b) {