Skip to content

Instantly share code, notes, and snippets.

Damon Muma thedamon

Block or report user

Report or block thedamon

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@gisu
gisu / _cssgrid.scss
Last active Nov 4, 2018
For converting Grid Spec 2 to Grid Spec 1
View _cssgrid.scss
// ===================================================
// CSS Grid Layout Helper
//
// To convert some of the CSS Grid Spec 2 features to Spec 1
//
// Author: Sascha Fuchs
//
// ===================================================
/// Add Gap between the boxes
@dazld
dazld / component.txt
Last active Jun 8, 2018
AEM Sightly JS globals, currentPage investigations
View component.txt
accessible
adaptTo
analyzable
cellName
childEditConfig
class
componentGroup
container
declaredChildEditConfig
declaredEditConfig
@gilbarbara
gilbarbara / .eslintrc
Last active Dec 31, 2016
.eslintrc configuration file for ES2015 + react
View .eslintrc
{
"parser": "babel-eslint",
"ecmaFeatures": {
"modules": true,
"experimentalObjectRestSpread": true
},
"env": {
"amd": true,
"browser": true,
"es6": true,
@jmartsch
jmartsch / Gruntfile.coffee
Last active Jul 15, 2016
Gruntfile with browser-sync and assemble for static html files
View Gruntfile.coffee
# Generated on 2013-10-28 using generator-bootstrap-less 3.0.3
"use strict"
#lrSnippet = require("grunt-contrib-livereload/lib/utils").livereloadSnippet
#mountFolder = (connect, dir) ->
# connect.static require("path").resolve(dir)
# # Globbing
# for performance reasons we're only matching one level down:
# 'test/spec/{,*/}*.js'
@JesseObrien
JesseObrien / gist:7418983
Last active Mar 7, 2019
Bind parameters into the SQL query for Laravel ORM
View gist:7418983
<?php
class MyModel extends Eloquent {
public function getSql()
{
$builder = $this->getBuilder();
$sql = $builder->toSql();
foreach($builder->getBindings() as $binding)
{
@robmiller
robmiller / .gitconfig
Created Jul 17, 2013
Some useful Git aliases that I use every day
View .gitconfig
#
# Working with branches
#
# Get the current branch name (not so useful in itself, but used in
# other aliases)
branch-name = "!git rev-parse --abbrev-ref HEAD"
# Push the current branch to the remote "origin", and set it to track
# the upstream branch
publish = "!git push -u origin $(git branch-name)"
@zoster
zoster / Error Log Debugging
Created Apr 28, 2013
Debugging with an error log
View Error Log Debugging
//setup
error_reporting(E_ALL);
ini_set('error_log','error.log');
//use
error_log($variable);
error_log("\n".var_export($message, true));
@gavinblair
gavinblair / errors.php
Created May 4, 2012
Error Reporting: I'm always trying to remember how to do this
View errors.php
<?php
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
You can’t perform that action at this time.