Skip to content

Instantly share code, notes, and snippets.

View appleboy's full-sized avatar
🔥
On Fire

Bo-Yi Wu appleboy

🔥
On Fire
View GitHub Profile
@addyosmani
addyosmani / resources.md
Last active August 29, 2015 14:00
Polymer resources for FITC

Web Components Can Do That?! extras

Thanks a ton for coming down to my talk, folks <33z. Your energy was amazing. This page has a few extra resources for you.

Slides

http://addyosmani.github.io/fitc-wccdt/

@Rplus
Rplus / URL.js
Last active August 29, 2015 14:07 — 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"
@AdamBrodzinski
AdamBrodzinski / compass-retina-sprites.scss
Created August 10, 2012 00:17 — forked from thulstrup/compass-retina-sprites.scss
Using Compass to generate normal and retina sprite maps
@import "compass/utilities/sprites"; // Include compass sprite helpers
@import "compass/css3/background-size"; // Include helper to calc background size
@mixin sprite($name, $hover: false, $active: false) {
@include retina-sprite($name, $sprites, $sprites2x, $hover, $active);
}
// The general purpose retina sprite mixin.
//
@max-mapper
max-mapper / readme.md
Last active October 12, 2015 10:17
introduction to node
@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

@cowboy
cowboy / Gruntfile.js
Last active December 10, 2015 15:39
grunt: why you might want to use file src-dest mapping expansions
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
minify: {
nofiles: {},
manual: {
files: [
// Why specify all src-dest mappings manually...
{src: 'lib/grunt.js', dest: 'build/grunt.min.js'},
@chilversc
chilversc / gist:5082299
Created March 4, 2013 13:41
Use jquery mobile with requirejs, delay pageinit function until scripts are loaded
<script src="/scripts/require.js" type="text/javascript"></script>
<script type="text/javascript">
requirejs.config({
paths: {
'jquery': 'jquery-1.9.1.min',
'jquery.mobile': 'jquery.mobile-1.3.0.min'
},
shim: {
'jquery.mobile': ['jquery', 'jquery.mobile-config']
}
@josephj
josephj / happy-desinger-mini-1.md
Last active December 18, 2015 10:39
於 HappyDesigner Mini #1 分享會

JavaScript 品質工具:CodePaint 與 Plato

介紹協助提昇 F2E Code Style 的兩個工具。

分享者

josephj@faria

問題

$bgcolor: hsl(53,56%,87%);
.button-primary {
background: $bgcolor;
color: if(lightness($bgcolor) < 50%, white, black);
}
mutation _ {
newTodo: createTodo(text: "This is a todo mutation example") {
text
done
}
}