gist

code-snippets, go and fork it!

Sign in with GitHub

Lars Moelleken

https://moelleken.org

Basics

Gist is a simple way to share snippets and pastes with others. All gists are Git repositories, so they are automatically versioned, forkable and usable from Git. - gist.github.com

helpful tip: add some #tags in your descriptions, so that you can faster find your snippets e.g. via "gist"-plugin from Sublime Text


GistBox is the best interface to GitHub Gists. Organize your snippets with labels. Edit your code. Search by description. All in one speedy app. - www.gistboxapp.com

helpful tip: add the "GistBox Clipper"-Addon to Chrome


Playground

A front end web development playground. - codepen.io |  cssdeck.com |  jsfiddle.net

A (backend end) development playground. - ideone.com

A SQL playground. - sqlfiddle.com

A (AngularJS) development playground. - plnkr.co

A (Twitter Bootstrap) development playground. - www.bootply.com

A (Google) development playground. - code.google.com/apis/ajax/playground/


Code Snippets

A collection of code snippets for web developers, including code for HTML, CSS, JavaScript, PHP, WordPress, jQuery, HTAccess, and more! - css-tricks.com/snippets

A collection of coding language and api snippets. Code snippets for html, css, javascript, jquery, php, sql, and facebook, instagram, twitter, google analytics, google maps, google charts, foursquare, wordpress, tumblr, last.fm and pinterest api. - snippetlib.com


htaccess

.htaccess with many options + description


icls

PhpStrom | Color-Config from menadwork GmbH - "~\.PhpStorm...\config\colors\"


xml

PhpStrom | Codestyle-Config from menadwork GmbH - "~\.PhpStorm...\config\codestyles\"

PhpStrom | Inspection-Config from menadwork GmbH - "~\.PhpStorm...\config\inspection\"


php

Dot notation for access multidimensional arrays.

CP1252 (Windows-1252) Unicode PHP Array. Asigns CP1252 (Windows-1252) escape sequences to UTF-8 escape sequences.

a php-function that will fixing utf-8 problems from inputs and prevent XSS attacks

use input filter for php (get, post, get_post, session, cookie)

generate random string via php - used https://packagist.org/packages/voku/portable-utf8 (UTF8::strlen)

php redirect via header-location

date format validation: Validate a date in "YYYY-MM-DD" format. - From http://snippetlib.com/php/date_format_validation

check for E-Mail


js

reload on history-back with "history.pushState" usage

DalekJS - Grunt-Config Example

GoogleAnalytics-Snippet

Check if Element Exists #jquery

The ".each()" method is designed to make DOM looping ... - http://api.jquery.com/each/

submit form on enter: This function will submit a form on enter when called from onkeypress. - From http://snippetlib.com/jquery/submit_form_on_enter

get the width in percent via jquery.width() - DEMO: http://jsfiddle.net/voku/r72VV/1/


sh

digga: show dns-settings from a domain e.g. MX, IP

mysqldump & remove SECURITY DEFINER from VIEWS


scss


list

sources.list -> Debian sid - workstation


html

Bootstrap 3 - Column Collapse Order - http://scotch.io/bar-talk/bootstrap-3-tips-and-tricks-you-might-not-know#column-collapse-order


css

Media Query Break Points - From http://scotch.io/bar-talk/bootstrap-3-tips-and-tricks-you-might-not-know#