Skip to content

Instantly share code, notes, and snippets.

@Rplus
Rplus / Context.sublime-menu
Last active December 16, 2015 04:49
My Sublime Text 2 user settings ~
[
{ "caption": "-", "id": "end" },
{ "command": "reindent", "args": {"single_line": true} }
]
<!DOCTYPE html>
<html lang="zh-TW">
<head>
<meta charset="UTF-8">
<title></title>
<style>
@media projection, screen, print{
body{
margin: 0;
font: 2em/1.3 Palatino, 'Palatino Linotype';
@Rplus
Rplus / image-replace.css
Created April 28, 2013 01:33
image-replace text
/*
* https://github.com/h5bp/html5-boilerplate/issues/1005
* image-replace
*/
.ir {
text-indent: 100%;
white-space: nowrap;
overflow: hidden;
}
@Rplus
Rplus / Custom.css
Last active December 17, 2015 15:08
Themes for Chrome Developer Tools:
/*
just highlight .selector-matches~
screenshot: http://i.imgur.com/Do3BDTQ.png
ref: http://www.lostsaloon.com/technology/using-a-custom-stylesheet-in-a-web-browser/
css file located on:
Mac: ~/Library/Application Support/Google/Chrome/Default/User StyleSheets/Custom.css
PC: C:\Users\[USER NAME]\AppData\Local\Google\Chrome\User Data\Default\User StyleSheets\Custom.css
Ubuntu (Chromium): ~/.config/chromium/Default/User StyleSheets/Custom.css
(Google Chrome): ~/.config/google-chrome/Default/User StyleSheets/Custom.css
@Rplus
Rplus / html5.txt
Last active December 19, 2015 04:19
HTML5 Cookbook 書摘 author: Kuro Hsu @ Facebook original llnk: https://www.facebook.com/notes/kuro-hsu/html5-cookbook-%E6%9B%B8%E6%91%98/4428690773834
HTML5 Cookbook 書摘
||| HTML5 Cookbook 書摘
||| author: Kuro Hsu @ Facebook (that is NOT me)
||| original llnk: https://www.facebook.com/notes/kuro-hsu/html5-cookbook-%E6%9B%B8%E6%91%98/4428690773834
- 基本語法 & 語意
@Rplus
Rplus / mouse.ahk
Last active November 19, 2018 14:10
my personal autohotkey script
; new mouse: microsoft comfort 6000,
; custom side-button behavior by autohotkey,
; => helpful for browser webpage (FB/blog/news)
XButton1::Send {PgDn}
XButton2::Send {PgUp}
~LButton & XButton2::Send {Home}
~LButton & XButton1::Send {End}
@Rplus
Rplus / GIF
Last active December 21, 2015 08:38
image minify in windows
# gif > png8
@echo off
set CONVERT=D:\Software\PIC\ImageMagick-6.8.3-6\convert.exe
for %%a in (%*) do (
dir /a %%a|findstr "DIR" >nul 2>nul && (
"%CONVERT%" %%a "%%~dpna.png\*"
) || (
"%CONVERT%" %%a "%%~dpna.png"
)
)
@Rplus
Rplus / Linux.md
Last active December 22, 2015 04:28
My favorite software

normal software

  • ArandR
    螢幕解析度 / 多螢幕配置 方便的 GUI 工具

  • Cheese
    簡易 Camera 軟體

  • Comix
    看漫畫,可讀壓縮檔,還不是很滿意

beforeAfter image compare

*goal: vertical/ horizontal / all-degrees comparimg 2 images

**unfinished: wait for fixing the transform-origin in big degree... orz

A Pen by Rplus on CodePen.

License.

@Rplus
Rplus / replaceTpl.js
Last active December 28, 2015 20:39
自幹型tpl似乎還需要調整
// escape unsafety chart
// via: http://stackoverflow.com/a/12034334
window.entityMap = {
'<': '&lt;',
'>': '&gt;',
'"': '&quot;',
'\'': '&#39;',
'/': '&#x2F;'
};