Yi Ding dingyi

View gist:5542818
1 2 3 4 5 6 7 8 9 10
javascript:(function(){
var enc=encodeURIComponent,
w=window,
frames=w.frames,
d=document,
tn=w.getSelection?w.getSelection():(d.getSelection)?d.getSelection():(d.selection?d.selection.createRange().text:0),
pu=w.location.href,
isGMail=w.location.host.match(/mail\.google\.com/),
tt=pt=d.title,
subjSpans=d.getElementsByClassName("hP"),i,url;
View gist:4639132
1 2 3 4 5 6 7 8 9
(*
 
The Hit List Mail Import (customized for shorter and concise subjects by TB)
 
Copyright © 2012 Potion Factory LLC.
Licensed under a Creative Commons Attribution 3.0 License: http://creativecommons.org/licenses/by/3.0/
 
 
To customize this script, copy it first to:
View com.apple.mail.scpt
1 2 3 4 5 6 7 8 9
(*
 
The Hit List Mail Import
 
Copyright © 2012 Potion Factory LLC.
Licensed under a Creative Commons Attribution 3.0 License: http://creativecommons.org/licenses/by/3.0/
 
 
To customize this script, copy it first to:
View rem-fallback.less
1 2 3 4 5 6 7 8 9
@main-font-size: 16px;
 
.x-rem (@property, @value) {
 
// This is a workaround, inspired by https://github.com/borodean/less-properties
@px-fallback: @value * @main-font-size;
-: ~`(function () { return ';@{property}: @{px-fallback}'; }())`;
-: ~`(function () { return ';@{property}: @{value}rem'; }())`;
}
View responsive_table.scss
1 2 3 4 5 6 7 8 9 10
@include handhelds {
table.responsive {
width: 100%;
thead {
display: none;
}
tr {
display: block;
}
td, th {
View high-dpi-media.css
1 2 3 4 5 6 7 8 9 10
/* ---------------------------------------------------------- */
/* */
/* A media query that captures: */
/* */
/* - Retina iOS devices */
/* - Retina Macs running Safari */
/* - High DPI Windows PCs running IE 8 and above */
/* - Low DPI Windows PCs with IE zoomed in */
/* - Android hdpi devices and above */
/* - Android tvdpi devices, including Google Nexus 7 */
View dabblet.css
1 2 3 4 5 6 7 8 9 10
/**
* box-shadow vs filter: drop-shadow
*/
 
body {
background: #ddd;
font: 16px/1 sans-serif;
}
div {
margin: 100px;
View mq.css
1 2 3 4 5 6 7 8 9 10
@media only screen and (min-width: 320px) {
 
/* Small screen, non-retina */
 
}
 
@media
only screen and (-webkit-min-device-pixel-ratio: 2) and (min-width: 320px),
only screen and ( min--moz-device-pixel-ratio: 2) and (min-width: 320px),
only screen and ( -o-min-device-pixel-ratio: 2/1) and (min-width: 320px),
View UIImage+Retina4.h
1 2 3 4 5 6 7 8 9
//
// UIImage+Retina4.h
// StunOMatic
//
// Created by Benjamin Stahlhood on 9/12/12.
// Copyright (c) 2012 DS Media Labs. All rights reserved.
//
 
#import <UIKit/UIKit.h>
View Weibo V5
1 2 3 4 5 6 7 8 9 10
#pl_content_publisherTop,
#pl_leftnav_app,
.WB_right_tips,
.W_rightModule,
.WB_right_module,
.tips_wrapper,
.W_main_r {
display: none;
}
.W_main_l {
Something went wrong with that request. Please try again.