Skip to content

Instantly share code, notes, and snippets.

@ZeeAgency
ZeeAgency / gist:7097023
Created October 22, 2013 08:23
Transition Events vs. Chrome double events (vendor-prefixed and not...)
$(function() {
var transitionEventsNames = 'transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd',
fn = function(e) {
$(this).off(transitionEventsNames, fn);
$(this).on(transitionEventsNames, fn);
console.log('transition', e);
};
$('.foo').on(transitionEventsNames, fn);
});
Test gist from ST
@ZeeAgency
ZeeAgency / gist:5249740
Last active May 17, 2024 04:00
Different "pointing" unicode characters
Black pointing triangles
White pointing triangles
@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() {
{% extends "layouts/test.twig" %}
@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) {
@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 / 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 / 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

body {
font-family: Helvetica neue, Helvetica, Arial, sans;
}
.good,
.bad {
margin: 20px;
height: 100px;
background: #444;
color: white;