Skip to content

Instantly share code, notes, and snippets.

# http://editorconfig.org
root = true
[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
sub vcl_fetch {
# Drop any cookies WordPress (except for wp-login/wp-admin) tries to send back to the client.
if (!(req.url ~ "wp-(login|admin)")) {
unset beresp.http.set-cookie;
}
}
sub vcl_recv {
# Drop any cookies sent to WordPress.
if ( ! ( req.url ~ "wp-(login|admin)" ) ) {
@wutupake
wutupake / fonts.scss
Last active January 25, 2016 16:11
[SCSS] Font embedding dynamic generator (created with @Lanfre)
// My fonts
$fontPath: '/fonts/path/';
$fonts: (
'Bold': 'SansWeb-Bold',
'BoldItalic': 'SansWeb-BoldItalic',
'Heavy': 'SansWeb-Heavy',
'HeavyItalic': 'SansWeb-HeavyItalic',
'Italic': 'SansWeb-Italic',
'Light': 'SansWeb-Light',
'LightItalic': 'SansWeb-LightItalic',
@wutupake
wutupake / gist:1eb1e875be45d64bf2ab
Created May 19, 2015 15:25
SCSS: mixin for css3 transition
// usage: @include transition(width, .1s, ease-in-out, 0);
// transition: [transition-property] [transition-duration] [transition-timing-function] [transition-delay];
@mixin transition ($property, $duration, $timing, $delay) {
-webkit-transition-property: $property;
-webkit-transition-duration: $duration;
-webkit-transition-timing-function: $timing;
-webkit-transition-delay: $delay;
-moz-transition-property: $property;
-moz-transition-duration: $duration;
-moz-transition-timing-function: $timing;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Facebook batch photo download</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
{
"caret_style": "smooth",
"color_scheme": "Packages/Color Scheme - Default/Solarized (Dark).tmTheme",
"draw_white_space": "all",
"file_exclude_patterns":
[
"*.tmLanguage.cache",
"*.tmPreferences.cache",
"*.psd",
"*.psb",
@wutupake
wutupake / module-pattern.js
Last active February 17, 2016 11:45
JS: module pattern
(function(){
var module = (function() {
var _privateMethod = function() {
};
var _protectedMethod = function() {
// io posso usare privateMethod
};
@wutupake
wutupake / gitondropbox.txt
Last active March 27, 2017 15:17
TERMINAL: Git repository on Dropbox (you can use Sugarsync, Box.net, ...)
// Init Git on your Dropbox folder (es: "index.git" is the name of the repo)
git init --bare index.git
// Add origin repository on your project folder
git remote add origin file:///Path/to/your/Dropbox/folder/index.git/
@wutupake
wutupake / box-model.css
Created February 15, 2013 07:46
CSS: box-model where [width] = [element-width] + [padding] + [borders]
*,
*:after,
*:before {
box-sizing: border-box;
}
/*
#ie10 will only be red in MSIE 10,
both in high contrast (display setting) and default mode
*/
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
#ie10 { color: red; }
}