Skip to content

Instantly share code, notes, and snippets.

@ZeeAgency
ZeeAgency / dabblet.css
Created April 17, 2012 09:40 — forked from LeaVerou/dabblet.css
Vertical centering with inline-block + generated-content
/**
* Vertical centering with inline-block + generated-content
* Julien Cabanès
* based on http://css-tricks.com/centering-in-the-unknown/
*/
html, body { height: 100%; }
body {
display: inline-block;
margin: 0;
.good,
.bad,
.why {
margin: 20px;
border: 1px solid #444;
height: 150px;
background: red;
color: white;
}
body {
font-family: Helvetica neue, Helvetica, Arial, sans;
}
.good,
.bad {
margin: 20px;
height: 100px;
background: #444;
color: white;
@ZeeAgency
ZeeAgency / deco-devs.md
Created October 3, 2012 09:32
D&Co bureaux devs

Si vous avez des idées, envies particulières, je vous laisse poster les liens vers les articles ici

Budget max : ~50€ par personne, on est 4, bientôt 5 donc ~250€ au total pour notre bureau

@ZeeAgency
ZeeAgency / LICENSE.txt
Created October 10, 2012 12:34 — forked from chrisevans/LICENSE.txt
dependency management
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@ZeeAgency
ZeeAgency / gist:3951964
Created October 25, 2012 10:48
Exemple de surcharge datagrid/filter
{% block admin_nodes_datagrid_filter_online %}
{% include "datagrid/filter/online.twig" with {"attrs": {
"label": t("Statut"),
"field": "status",
"options": [
{value: '', text: t("Tous")},
{value: 'online', text: t("Online")},
{value: 'pending', text: t("En attente")},
{value: 'offline', text: t("Offline")}
]
@ZeeAgency
ZeeAgency / mixins.scss
Created December 4, 2012 13:44
Compass mixins for HiDPI (Retina)
@mixin for-hidpi {
.hidpi & {
@content;
}
@media only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and ( min--moz-device-pixel-ratio: 2),
only screen and ( -o-min-device-pixel-ratio: 2/1),
only screen and ( min-device-pixel-ratio: 2),
only screen and ( min-resolution: 192dpi),
only screen and ( min-resolution: 2dppx) {
{% extends "layouts/test.twig" %}
@ZeeAgency
ZeeAgency / gist:5244572
Last active May 17, 2024 04:00
UI Module Snippet
define(function() {
var onscrollCallbacks = [],
onresizeCallbacks = [],
didScroll = false,
didResize = false;
var UI = {
init: function() {
@ZeeAgency
ZeeAgency / gist:5249740
Last active May 17, 2024 04:00
Different "pointing" unicode characters
Black pointing triangles
White pointing triangles