Skip to content

Instantly share code, notes, and snippets.

View isellsoap's full-sized avatar

Francesco Schwarz isellsoap

View GitHub Profile

SMACSS + Sass + BEM

SMACSS

Scalable and
Modular
Architecture for
C
S
S

@somatonic
somatonic / MapPageField.module
Created December 19, 2012 08:32
maps two page fields POC
<?php
class MapPageField extends WireData implements Module{
public static function getModuleInfo(){
return array(
'title' => 'MapPageField',
'version' => 100,
'singular' => true,
'autoload' => true
anonymous
anonymous / Kirby Archive
Created November 29, 2012 11:28
Loop for the Archive page
<ul id="archive">
<?php $blog = $pages->find('blog')->children()->visible()->sortBy($sort='date', $dir='desc') ?>
<?php $year = date("Y"); ?>
<?php foreach ($blog as $article): ?>
<?php if ($article->date('Y') <= $year) { ?> <!-- If if the date changes print it -->
<?php $year = $article->date('Y') ?>
<span class="year"><?php echo $year ?></span>
<?php $year-- ?>
<?php } ?>
<li>
<?php
// database access
$dbName = '';
$dbUser = '';
$dbPass = '';
$dbHost = 'localhost';
// table
$table = 'values';
@soffes
soffes / perferences.json
Created August 22, 2012 05:35
My Sublime Text 2 config
{
"bold_folder_labels": true,
"color_scheme": "Packages/User/Espresso Soda.tmTheme",
"ensure_newline_at_eof_on_save": true,
"file_exclude_patterns":
[
".DS_Store",
".gitkeep",
"dump.rdb"
],
@paulirish
paulirish / gist:3098860
Created July 12, 2012 15:26
Open Conference Expectations

Open Conference Expectations

This document lays out some baseline expectations between conference speakers and conference presenters. The general goal is to maximize the value the conference provides to its attendees and community and to let speakers know what they might reasonably expect from a conference.

We believe that all speakers should reasonably expect these things, not just speakers who are known to draw large crowds, because no one is a rockstar but more people should have the chance to be one. We believe that conferences are better -- and, dare we say, more diverse -- when the people speaking are not just the people who can afford to get themselves there, either because their company paid or they foot the bill themselves. Basically, this isn't a rock show rider, it's some ideas that should help get the voices of lesser known folks heard.

These expectations should serve as a starting point for discussion between speaker and organizer. They are not a list of demands; they are a list of rea

@thefuxia
thefuxia / t5-no-comment-cookies.php
Last active December 28, 2020 18:24
No Comment Cookies
<?php # -*- coding: utf-8 -*-
/* Plugin Name: No Comment Cookies
*/
remove_action( 'set_comment_cookies', 'wp_set_comment_cookies' );
@rodneyrehm
rodneyrehm / demo-list.html
Created May 28, 2012 11:08
jQuery Snippets - jQuery.sortChildren()
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>sorting lists</title>
<script src="jquery-1.7.2.min.js"></script>
<script src="jquery.sortChildren.js"></script>
<script>
Team,
Diablo 3 comes out tomorrow. Since 90% of you won't be able to concentrate anyways let's just meet tomorrow after lunch in the Lounge for an impromptu Lan party.
Need a refresher on why you need to play Diablo 3 ? http://www.youtube.com/watch?v=geuAc8F7Gt0&feature=g-hist
P.S: I call dips on jewelry drops.
- tobi
@erikh
erikh / hack.sh
Created March 31, 2012 07:02 — forked from DAddYE/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#