Skip to content

Instantly share code, notes, and snippets.

View ifthenelse's full-sized avatar
🏎️
LIFE BE LIKE

Andrea Collet ifthenelse

🏎️
LIFE BE LIKE
View GitHub Profile
@mrosati84
mrosati84 / devify
Last active August 29, 2015 14:04
Easily manage projects using H-ART Dev Machine
#!/bin/bash
# create Dev Machine structure
function createStructure {
# TODO
# 1- check existing folders
# 2- ask user for overwriting
if [ -d manifests ] ||
[ -d modules ] ||
[ -d xdebug ] ||
@ravasthi
ravasthi / favicon.html
Created January 7, 2012 17:53
Favicon code
<!-- Favicons and touch icons -->
<!-- For retina-display iPads -->
<link href="/assets/images/apple-touch-icon-xlarge.png" rel="apple-touch-icon-precomposed" sizes="144x144" type="image/png"/>
<!-- For retina-display iPhones -->
<link href="/assets/images/apple-touch-icon-large.png" rel="apple-touch-icon-precomposed" sizes="114x114" type="image/png"/>
<!-- For iPad 1 -->
<link href="/assets/images/apple-touch-icon-medium.png" rel="apple-touch-icon-precomposed" sizes="72x72" type="image/png"/>
<!-- For iPhone 3G, iPod Touch and Android -->
<link href="/assets/images/apple-touch-icon-small.png" rel="apple-touch-icon-precomposed" type="image/png"/>
<!-- For Nokia -->
@johnantoni
johnantoni / Facebook like hide
Created March 7, 2012 23:04
Facebook like hack to hide the like count
.fb_like #fb
width: 48px
.fb_edge_widget_with_comment iframe
width: 48px !important
.fb_edge_comment_widget
&.fb_iframe_widget iframe
width: 401px !important
#PHPMYADMIN
<VirtualHost *:80>
DocumentRoot "/Applications/MAMP/htdocs/phpmyadmin"
DirectoryIndex index.php
ServerName phpmyadmin.localhost
<Directory "/Applications/MAMP/htdocs/phpmyadmin">
AllowOverride All
Allow from All
</Directory>
@mtibben
mtibben / gist:7078931
Last active August 22, 2017 15:19
sublime-phpcs cheatsheet

sublime-phpcs cheatsheet

Install dependencies

brew tap homebrew/dupes
brew tap josegonzalez/homebrew-php
brew install php53 php-cs-fixer php-md php-code-sniffer
php-cs-fixer self-update
anonymous
anonymous / gist:545079
Created August 23, 2010 08:38
if (navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPod/i) || navigator.userAgent.match(/iPad/i)) {
$(document).ready(function () {
$('label[for]').click(function () {
var el = $(this).attr('for');
if ($('#' + el + '[type=radio], #' + el + '[type=checkbox]').attr('selected', !$('#' + el).attr('selected'))) {
return;
} else {
$('#' + el)[0].focus();
}
});
@mandelbro
mandelbro / jQuery-transitionend
Created November 13, 2012 19:40
Quick jQuery plugin to get the duration of a CSS transition for an element
(function( $ ) {
/**
* jQuery.transtionend
* Retrievs the total amount of time, in miliseconds that
* an element will be transitioned
*/
$.fn.transtionend = function() {
@atk
atk / LICENSE.txt
Created June 29, 2011 13:46 — forked from 140bytes/LICENSE.txt
Date.parse polyfill (no timezone support)
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Alex Kloss <alexthkloss@web.de>
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
@mbostock
mbostock / .block
Last active February 26, 2019 22:35
Rotating Voronoi
license: gpl-3.0
redirect: https://observablehq.com/@mbostock/rotating-voronoi
@mickdekkers
mickdekkers / snazzy.xml
Last active March 22, 2019 11:03
Sindre Sorhus' Snazzy theme ported to ConEmu -- see https://github.com/joonro/ConEmu-Color-Themes#how-to-install for installation instructions
<key name="Palette1" modified="2016-11-18 17:52:55" build="160710">
<value name="Name" type="string" data="Snazzy"/>
<value name="ExtendColors" type="hex" data="00"/>
<value name="ExtendColorIdx" type="hex" data="00362a28"/>
<value name="TextColorIdx" type="hex" data="00ebf0ef"/>
<value name="BackColorIdx" type="hex" data="00362a28"/>
<value name="PopTextColorIdx" type="hex" data="00ebf0ef"/>
<value name="PopBackColorIdx" type="hex" data="00362a28"/>
<value name="ColorTable00" type="dword" data="00362a28"/>
<value name="ColorTable01" type="dword" data="00ffc757"/>