Skip to content

Instantly share code, notes, and snippets.

@ouweiya
ouweiya / cmd
Created June 6, 2019 05:12
copy .vscode
@echo off
cp -i -r %~dp0.vscode %cd%
echo %cd%
@ouweiya
ouweiya / print_picture.js
Created September 20, 2018 07:47
Chrome console print picture 2018
(function(c) {
c.image = function(t) {
var img = new Image;
img.src = t;
img.onload = function (){
var style = [
"padding:" + Math.floor(img.height / 2) + "px " + Math.floor(img.width / 2)+ "px",
"background: url("+ encodeURI(t) +")",
"color: transparent",
"font-size:0",