Skip to content

Instantly share code, notes, and snippets.

@Rplus
Rplus / topbar.md
Last active August 29, 2015 14:04
PIXNET custom topbar tutorial

PIXNET 快捷功能Bar ( topbar ) 似乎有更新了~
千呼萬喚的通知功能回魂了 ヽ(●´∀`●)ノ
不過有時現實是殘酷的~

像是功能有時用不到、色系跟版型不太搭之類的
於是自訂魂就會熊熊地燃了起來~

以下將以 CSS 為主軸來提供部落客自訂這條 topbar 的樣式
若需要其它種樣子也可以再討論討論~

@Rplus
Rplus / scroll-shadow.scss
Last active August 29, 2015 14:05
add a limited size box pretty shadow, and auto show/hide when scrolling
/*
source: http://unlimited.kptaipei.tw/docs/
ref: http://lea.verou.me/2012/04/background-attachment-local/
demo by @Lea Verou
http://dabblet.com/gist/2462915
*/
%scroll-shadow--vertical {
background-image:
/* Shadow covers */
@Rplus
Rplus / linux software.md
Created August 25, 2014 17:22
linux software [backup]

ARandR

@Rplus
Rplus / svg.md
Last active November 15, 2015 22:01
SVG it !

伸縮自在的愛

using svg automaticly generate fonts by gulp-iconfont

獵人動畫中的小傑在天空競技場,被西索誤導欺騙,臉頰因而黏上西索招牌念能力「伸縮自在的愛」的 Q 版畫面

這篇主要是要講如何使用 SVG 圖檔來生成 icon font,
並且要讓這 icon font 能順利在 CSS preprocessor tool 下接軌

目前 github demo repo 是使用 stylus preprocessor

@Rplus
Rplus / scss.md
Created October 15, 2014 09:30
panel-Foundation coding style

...

@Rplus
Rplus / URL.js
Last active September 12, 2024 07:06 — forked from jlong/uri.js
var url = "http://example.com:3000/pathname/?search=test#hash";
var _a = new URL(url);
_a.protocol; // => "http:"
_a.hostname; // => "example.com"
_a.port; // => "3000"
_a.pathname; // => "/pathname/"
_a.search; // => "?search=test"
_a.hash; // => "#hash"
@Rplus
Rplus / o~
Created November 4, 2014 02:16
SVG posts.
~o
@Rplus
Rplus / getParameterByName.js
Last active August 29, 2015 14:10
get parameter by name form url location.search
/// via http://stackoverflow.com/a/5158301/3893926
/**
* get parameter by name form url location.search
* @param {string} name [description]
* @return {string | null} if name exist, return the para; or return null
*/
function getParameterByName(name) {
var match = RegExp('[?&]' + name + '=([^&]*)').exec(window.location.search);
return match && decodeURIComponent(match[1].replace(/\+/g, ' '));
@Rplus
Rplus / note.md
Created December 16, 2014 07:28
compass update in windows
  • utf-8
    set Encoding.default_external = 'utf-8' in first line of config.rb
    via: Sass UTF-8 encoding on Windows

  • gem update SSL error
    gem source: list gem sources,
    gem sources --add http://rubygems.org
    gem sources --remove https://rubygems.org: remove SSL request