Skip to content

Instantly share code, notes, and snippets.

View leibnizli's full-sized avatar

Leibniz Li leibnizli

View GitHub Profile
@zacwest
zacwest / ios-font-sizes.swift
Last active November 8, 2024 02:45
iOS default font sizes - also available on https://www.iosfontsizes.com
let styles: [UIFont.TextStyle] = [
// iOS 17
.extraLargeTitle, .extraLargeTitle2,
// iOS 11
.largeTitle,
// iOS 9
.title1, .title2, .title3, .callout,
// iOS 7
.headline, .subheadline, .body, .footnote, .caption1, .caption2,
]
@wintercn
wintercn / lightpromise.js
Last active January 4, 2022 01:45
一组小清新的promise风格小函数
function get(uri) {
return http(uri,'GET');
}
function post(uri,data) {
if(typeof data === 'object' && !(data instanceof String || (FormData && data instanceof FormData))) {
var params = [];
for(var p in data) {
if(data[p] instanceof Array) {
for(var i = 0; i < data[p].length; i++) {
params.push( encodeURIComponenet(p) + '[]=' + encodeURIComponenet(data[p][i]);
anonymous
anonymous / Pure-CSS-multiline-text-with-ellipsis.markdown
Created December 29, 2014 03:08
Pure CSS multiline text with ellipsis
anonymous
anonymous / DOM-particle-emitter.markdown
Created November 12, 2014 11:49
A Pen by Ashley Kyd.

DOM particle emitter

A particle emitter using DOM elements and CSS transforms instead of more sensible technologies like SVG or Canvas.

A Pen by Ashley Kyd on CodePen.

License.

anonymous
anonymous / Tubo-de-ensaio-(test-tube).markdown
Created November 12, 2014 11:42
A Pen by Ricardo.
anonymous
anonymous / QwWWgX.markdown
Created November 12, 2014 11:40
A Pen by Captain Anonymous.
anonymous
anonymous / SVG-circular-progress:-CSS-animated-&-Angle-gradient-.markdown
Created November 12, 2014 11:31
A Pen by Pouya Saadeghi (پویا صادقی).
anonymous
anonymous / Single-Element-Shooting-Stars.markdown
Created November 12, 2014 11:29
A Pen by Adam Wang.
anonymous
anonymous / Pure-CSS-Loading-spinners.markdown
Created November 12, 2014 11:28
A Pen by Jan-Kanty Pawelski.
anonymous
anonymous / index.html
Created November 12, 2014 11:26
A Pen by mnmly.
<div class='small'>minimal counter</div>
<div class='wrapper'>
<div id="a" />
</div>
<a href="http://mnmly.com" target="_blank">mnmly</a>
<a class='github' href="https://github.com/mnmly/minimal-counter" target="_blank">github</a>