Skip to content

Instantly share code, notes, and snippets.

<table class="compat-table">
<thead>
<tr>
<th>Feature</th>
<th>Chrome</th>
<th>Firefox</th>
<th>Internet Explorer</th>
<th>Opera</th>
<th>Safari</th>
</tr>
@philippbosch
philippbosch / _animations.scss
Last active August 29, 2019 00:20
Compass mixins for CSS keyframe animations
@import "compass/css3/shared";
@mixin keyframes($name) {
@-webkit-keyframes $name {
@content;
}
@-moz-keyframes $name {
@content;
}
@adamstac
adamstac / _font-smoothing.scss
Created February 27, 2013 15:46
WebKit font-smoothing Sass mixin
// WebKit font-smoothing
//------------------------------------------------
// References:
//
// 1. http://maxvoltar.com/sandbox/fontsmoothing/
// 2. http://maxvoltar.com/archive/-webkit-font-smoothing
//
// Values: none, antialiased (default), subpixel-antialiased
//
/* Mixin for Compass - border-image
$border-image([$image-url], [$offsets], [$repeats])
Example:
@include border-image(url(../my_image.png), 10, stretch)
@include border-image(url(../my_image.png), 10 5 10 5, stretch repeat)
---------------------------------------- */
@mixin border-image($url, $offsets, $repeats) {
function IsGeolocation() {
return 'geolocation' in navigator;
}
@MichaelKreil
MichaelKreil / Textanalyse - Test 1
Last active December 11, 2015 23:39
Für die #aufschrei-Tweets habe ich mal meinen (längst überfälligen) Textanalyse-Algorithmus fertig gestellt. Dort kann man als Trainingsmenge einige kategorisierte Textschnipsel reinwerfen (z.B. die ersten 100 Tweets). Anschließend kann man dann automatisch weitere Textschnipsel (die letzten 30.000) automatisch Kategorisieren lassen. Das funktio…
Das Format ist immer:
Tweet-Nachricht
vermutete Kategorie (Trefferwahrscheinlichkeit %)
Ich kenne nur sehr feine Männer. Zu den anderen habe ich (Gott sei Dank!) scheinbar keine Resonanz. #aufschrei
/* More pseudo classes */
input:disabled { ... }
input:invalid { ... }
/* Matches-Any Pseudo-class */
:matches( h1, h2 ) > p { ... }
:matches( h1, h2 ) > :matches( p, span ) { ... }
/* subject selector */
$ul > li.important:hover {...}
@tmcw
tmcw / mapcss_cartocss_cascadenik.md
Created December 17, 2012 16:33
MapCSS vs CartoCSS

In which I begrudglingly compare MapCSS and CartoCSS because people keep asking.

I hate this kind of writing - it's annoying to try to describe one bit of software versus another, and this can and will fall out of date every time that somebody makes a big change to their library. But people want it, or whatever, so here it is.

Since CartoCSS and Cascadenik are weird cousins, the big difference is between them and MapCSS.

Let's see, differences:

  • CartoCSS is designed for Mapnik. That is, it tries to expose every possible Mapnik style option and ability, and supports every Mapnik datasource.
  • MapCSS is designed for OSM. That is, it makes it easy to style based on OpenStreetMap data types, tags, and so on.
@lenage
lenage / setup-git-server.md
Last active March 25, 2016 12:00
How to set up your own private Git server on Linux

1.安装Git

ssh myserver.com
sudo apt-get update
sudo apt-get install git-core

2.设置git用户

@joshhumble
joshhumble / dabblet.css
Created December 4, 2012 19:12
The Box-Ordinal-Group and Flexbox
/**
* The Box-Ordinal-Group and Flexbox
*/
.box {
overflow:hidden;
display:box;
display:-ms-box;
display:-moz-box;
display:-webkit-box;