Skip to content

Instantly share code, notes, and snippets.

View carrieforde's full-sized avatar

Carrie Forde carrieforde

View GitHub Profile
@carrieforde
carrieforde / sni_mm-button.css
Last active December 7, 2015 23:12
Generated by SassMeister.com.
a.mm-button {
background-color: #fff;
color: #fff !important;
}
a.mm-button:hover {
background-color: #cccccc;
}
a.mm-button.solid-to-ghost {
@carrieforde
carrieforde / brackets-extensions.md
Last active May 10, 2017 19:10
A list of Brackets Extensions I Love
<div class="carrieforde-project-images">
<?php
if ( $project_images ) {
for ( $i = 0; $i < $project_images; $i++ ){
$project_image = get_post_meta( get_the_id(), 'project_images_' . $i . '_project_image', true );
$img = get_post( $project_image );
$caption = $img->post_excerpt;
$imgcaption = $caption;
if ( ! empty( $caption ) ) {
@carrieforde
carrieforde / New site plugins
Last active January 24, 2017 00:39
WP-CLI new site plugin install command
wp plugin install akismet black-studio-tinymce-widget broken-link-checker developer google-analytics-for-wordpress wordpress-seo jetpack debug-bar monster-widget log-deprecated-notices simply-show-ids theme-check --activate
## List all remote branches ##
git branch -r
## Checkout a remote branch ##
git branch <local branch name> <remote branch name>
## Push up a local branch to remote with a different name ##
git push origin <local branch name>:<remote branch name> # separate local and remote with a :
@carrieforde
carrieforde / brackets-snippets.yml
Created November 21, 2016 18:06
Helpful Snippets for WordPress development in Brackets
- trigger: wdsjs
description: jQuery - The WDS Way
scope: javascript
mTime: 1473172253165
text: |
/**
* ${1:Foo Script}.
*/
window.${2:Foo_Object} = {};
( function( window, $, app ) {
@carrieforde
carrieforde / bem-mixins.scss
Last active January 4, 2017 04:37
Sass snippets
@mixin element($element) {
&__#{$element} {
@content;
}
}
@mixin modifier($modifier) {
&--#{$modifier) {
git init # initialize a new repo
git clone <remote repo> <directory name> # clone an existing repo to your machine
git status # see what files have been modified or added, if you’ve fetched recently, check where your local is in relation to the remote
git add <file or directory>, git add -A # if you want to choose with files to add, use git add <file>, otherwise, git add -A will stage everything that has new or has been modified
git commit -m “<message>” # commit your staged files
git fetch <remote> <remote branch> # fetch any changes on remote. Both the remote name and remote branch are optional. Use in conjunction with git status
git pull <remote> <remote branch> # pull the latest version of the remote to your local
git push <remote> <remote branch> # push your local changes to the remote (you may need to set up your remote first!)
git remote add <remote name> <remote repo> # set up a r
@carrieforde
carrieforde / _grid.scss
Last active May 19, 2017 19:41
Grids + Neat 2.0.0
//--------------------------------------------------------------
// GRID
//--------------------------------------------------------------
// Outputs .prefix-col-#
.prefix {
@include grid-classes(null, $neat-grid);
}