Skip to content

Instantly share code, notes, and snippets.

@Rplus
Rplus / Context.sublime-menu
Last active Dec 16, 2015
My Sublime Text 2 user settings ~
View Context.sublime-menu
[
{ "caption": "-", "id": "end" },
{ "command": "reindent", "args": {"single_line": true} }
]
View jQuery-presentation.html
<!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 Apr 28, 2013
image-replace text
View image-replace.css
/*
* 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 Dec 17, 2015
Themes for Chrome Developer Tools:
View Custom.css
/*
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 Dec 19, 2015
HTML5 Cookbook 書摘 author: Kuro Hsu @ Facebook original llnk: https://www.facebook.com/notes/kuro-hsu/html5-cookbook-%E6%9B%B8%E6%91%98/4428690773834
View html5.txt
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 Nov 19, 2018
my personal autohotkey script
View mouse.ahk
; 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 Dec 21, 2015
image minify in windows
View GIF
# 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 Dec 22, 2015
My favorite software
View Linux.md

normal software

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

  • Cheese
    簡易 Camera 軟體

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

View beforeAfter-image-compare.markdown

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 Dec 28, 2015
自幹型tpl似乎還需要調整
View replaceTpl.js
// escape unsafety chart
// via: http://stackoverflow.com/a/12034334
window.entityMap = {
'<': '&lt;',
'>': '&gt;',
'"': '&quot;',
'\'': '&#39;',
'/': '&#x2F;'
};