Skip to content

Instantly share code, notes, and snippets.

@shrhdk
shrhdk / privacy_statement.md
Created November 17, 2019 03:18
Privacy Policy

Privacy Statement of "To Clipboard"

To Clipboard does not collect privacy information. No information is sent to the external server.

@shrhdk
shrhdk / github-diff-ignore-whitespace.user.js
Last active August 29, 2015 14:02
Add "Ignore Whitespace" button to File Changes Page in GitHub.
// ==UserScript==
// @name GitHub File Changes without whitespace
// @namespace http://shiro.be/
// @version 0.1
// @description Add "Ignore Whitespace" button to File Changes Page in GitHub.
// @match https://github.com/*/*/pull/*/files
// @copyright 2014+, Hideki Shiro
// ==/UserScript==
$("#diff p.explain").append($("<a class='minibutton' href='" + location.href + "?w=1'>Ignore Whitespace</a>"))
@shrhdk
shrhdk / wget.rb
Created November 2, 2013 14:35
Download from specific URL and save it to the file. Example 1: wget('http://example.com/index.html', 'example.html') => example.html Example 2: wget('http://example.com/index.html') => index.html
#!/usr/bin/ruby
# -*- mode:ruby; coding:utf-8 -*-
require 'open-uri'
def wget(url, fileName='')
if fileName == '' then
fileName = File.basename(url)
end