Skip to content

Instantly share code, notes, and snippets.

View pxdsgnco's full-sized avatar

'Dedoyin Kassem pxdsgnco

View GitHub Profile
@pxdsgnco
pxdsgnco / stop-mac-apache.sh
Created May 17, 2018 09:06 — forked from barbietunnie/stop-mac-apache.sh
Stop Default Apache server running on Mac OS Sierra
sudo apachectl stop
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist 2>/dev/null
@pxdsgnco
pxdsgnco / wp-mailhog.php
Created June 7, 2018 15:04 — forked from bishless/wp-mailhog.php
Configure WordPress on Valet to use MailHog
<?php
/**
* @link
* @since 1.0.0
* @package TODO
*
* @wordpress-plugin
* Plugin Name: Use MailHog
* Description: Configure WordPress on Valet to use MailHog
* Version: 1.0.0
@pxdsgnco
pxdsgnco / deployment_to_gitlab_pages.md
Created June 21, 2018 13:15 — forked from shyiko/deployment_to_gitlab_pages.md
Deploying to GitLab Pages (on each push)

(assuming project is hosted on GitLab)

  1. Enable shared runners by going to "Settings" > "Runners".
  2. Add .gitlab-ci.yml with the following content:
image: node:6.9.1
pages: 
  artifacts: 
paths: 
@pxdsgnco
pxdsgnco / gulpfile.js
Created October 9, 2018 09:14 — forked from atelic/gulpfile.js
Basic gulpfile for minify and concat css and javascript
/*
Before using make sure you have:
npm install --save-dev gulp gulp-minify-css gulp-concat gulp-uglify gulp-autoprefixer gulp-sass
Make sure to change the directory names in the default watch function to the CSS/SCSS/SASS directories you are using so it reloads
*/
var gulp = require('gulp'),
minifyCSS = require('gulp-minify-css'),
concat = require('gulp-concat')
@pxdsgnco
pxdsgnco / valet-plus-destroy
Created October 17, 2018 10:46 — forked from dannygsmith/valet-plus-destroy
Remove valet-plus - reboot required
#!/usr/bin/env bash
#styles
VP_NONE='\033[00m'
VP_RED='\033[01;31m'
VP_GREEN='\033[01;32m'
VP_YELLOW='\033[01;33m'
VP_PURPLE='\033[01;35m'
VP_CYAN='\033[01;36m'
VP_WHITE='\033[01;37m'
@pxdsgnco
pxdsgnco / valet-plus-install
Created October 17, 2018 11:09 — forked from dannygsmith/valet-plus-install
Install valet-plus
#!/usr/bin/env bash
#styles
VP_NONE='\033[00m'
VP_RED='\033[01;31m'
VP_GREEN='\033[01;32m'
VP_YELLOW='\033[01;33m'
VP_PURPLE='\033[01;35m'
VP_CYAN='\033[01;36m'
VP_WHITE='\033[01;37m'

Using Git to Manage a Live Web Site

###Overview

As a freelancer, I build a lot of web sites. That's a lot of code changes to track. Thankfully, a Git-enabled workflow with proper branching makes short work of project tracking. I can easily see development features in branches as well as a snapshot of the sites' production code. A nice addition to that workflow is that ability to use Git to push updates to any of the various sites I work on while committing changes.

####Contents

@pxdsgnco
pxdsgnco / collections.liquid.html
Created October 23, 2018 08:36 — forked from davecap/collections.liquid.html
"Infinite" scrolling in Shopify collections
{% paginate collection.products by 20 %}
<!-- the top of your collections.liquid -->
<!-- START PRODUCTS -->
{% for product in collection.products %}
<!-- START PRODUCT {{ forloop.index | plus:paginate.current_offset }} -->
<div class="product" id="product-{{ forloop.index | plus:paginate.current_offset }}">
{% include 'product' with product %}
</div>
<!-- END PRODUCT {{ forloop.index | plus:paginate.current_offset }} -->
@pxdsgnco
pxdsgnco / form.html
Last active October 30, 2018 14:54
2Chainz
<form class="needs-validation">
<div class="form-group">
<input type="email" placeholder="Email address" class="form-control email-address-form my-3" autofocus required>
</div>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="__adult" checked>
<label for="__adult" class="custom-control-label">Yes, I am over 21 years old</label>
</div>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="__receiveNewsletter" checked>
@pxdsgnco
pxdsgnco / typeface.scss
Created January 9, 2019 09:23
Declare Sass font variables using Google fonts
// Google Fonts
@import url(http://fonts.googleapis.com/css?family=Roboto+Slab|Open+Sans:400italic,700italic,400,700);
// Font Variables
$roboto-slab: 'Roboto Slab', serif;
$open-sans: 'Open Sans', sans-serif;
// Styles
body {
font-family: $body-font;