Skip to content

Instantly share code, notes, and snippets.

View siggiarni's full-sized avatar

Sigurður Árni Svanbergsson siggiarni

View GitHub Profile
@siggiarni
siggiarni / gist:11254753
Created April 24, 2014 13:34
Enabling the FTP Server on OS X Mavericks
Load the FTP server
sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist
Unload the FTP server
sudo -s launchctl unload -w /System/Library/LaunchDaemons/ftp.plist
http://igerry.com/desktop/apple-os/enabling-ftp-server-os-x-mavericks.html
@siggiarni
siggiarni / css-whitespace.css
Last active August 29, 2015 14:02
CSS space
/* whitespace */
.foo {
content: "\0020";
}
/* non-breaking space */
.bar {
content: "\00a0";
}
.blend-modes {
background-blend-mode: screen;
background-blend-mode: overlay;
background-blend-mode: darken;
background-blend-mode: lighten;
background-blend-mode: color-dodge;
background-blend-mode: color-burn;
background-blend-mode: hard-light;
background-blend-mode: soft-light;
background-blend-mode: difference;
<input type="text" pattern="[0-9]*" inputmode="numeric" autocomplete="cc-number">
.flex-container {
/* Display */
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
/* Direction */
a:link {
}
a:visited {
}
a:focus {
/* apply a natural box layout model to all elements, but allowing components to change */
/* http://www.paulirish.com/2012/box-sizing-border-box-ftw/ */
html {
box-sizing: border-box;
}
*,
*:before,
*:after
{
box-sizing: inherit;
::-ms-tooltip {
display: none;
}
background-image: linear-gradient(to left, red 50%, blue 0%);
background-position: bottom;
background-repeat: repeat-x;
background-size: 2px 1px;