Skip to content

Instantly share code, notes, and snippets.

View gemmadlou's full-sized avatar

Gemma Black gemmadlou

View GitHub Profile
@gemmadlou
gemmadlou / functions.scss
Created November 23, 2016 12:48
Background Image SVG SASS Example
@function svg-url($svg) {
@if not str-index($svg,xmlns) {
$svg: str-replace($svg, '<svg','<svg xmlns="http://www.w3.org/2000/svg"');
}
$encoded:'';
$slice: 2000;
$index: 0;
$loops: ceil(str-length($svg)/$slice);
@gemmadlou
gemmadlou / examples.md
Created November 24, 2016 15:23
Good CSS Examples
@gemmadlou
gemmadlou / MenuReset.php
Created December 13, 2016 11:03
Wordpress Menu Parent Reset
<?php
namespace Helper;
class MenuReset
{
private $postType;
private $item;
public $classes;
@gemmadlou
gemmadlou / 001-ddd.md
Last active August 9, 2018 07:52
DDD
<?php
class Route
{
private $server;
private $get;
private $post;
public static function init(array $server, array $get, array $post)
@gemmadlou
gemmadlou / Jenkins And Deploymends.md
Last active March 26, 2017 20:09
Jenkins & Deployments

Jenkins

Installations

wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update
sudo apt-get install jenkins -y
@gemmadlou
gemmadlou / ArticlePromoView.php
Created April 3, 2017 10:41
Hexagonal Architecture
<?php namespace Example\Model;
use App\Utility\Escape;
/**
* Post promo view model.
*/
class ArticlePromoView
{
const numberOfWords = 18;