This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git cherry-pick -Xsubtree=<subdirectory> 517be2a88318de51f51397066575ab07fae825a1 --strategy=recursive -X <theirs> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'), | |
less = require('gulp-less'), | |
autoprefix = require('gulp-autoprefixer'), | |
sourcemaps = require('gulp-sourcemaps'), | |
rename = require('gulp-rename'), | |
concat = require('gulp-concat'), | |
minifyCSS = require('gulp-minify-css'), | |
jshint = require('gulp-jshint'), | |
uglify = require('gulp-uglify'), | |
livereload = require('gulp-livereload'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REMOTE_REPOSITORY=${REMOTE_REPOSITORY:?'You need to configure the REMOTE_REPOSITORY environment variable!'} | |
REMOTE_BRANCH=${REMOTE_BRANCH:?'You need to configure the REMOTE_BRANCH environment variable!'} | |
set -e | |
git fetch --unshallow || true | |
git push ${REMOTE_REPOSITORY} ${CI_COMMIT_ID}:${REMOTE_BRANCH} | |
cd wp-content/themes/<theme> | |
npm install -g bower gulp | |
npm install | |
bower install | |
gulp --production |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$category_IDs = get_all_category_ids(); | |
// Loop through categories | |
foreach ( $category_IDs as $category_ID ) : | |
$query = new WP_Query( array( | |
'cat' => $category_ID, | |
'posts_per_page' => - 1, | |
) ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# See /usr/share/postfix/main.cf.dist for a commented, more complete version | |
# Debian specific: Specifying a file name will cause the first | |
# line of that file to be used as the name. The Debian default | |
# is /etc/mailname. | |
#myorigin = /etc/mailname | |
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) | |
biff = no |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am kalenjohnson on github. | |
* I am kalenjohnson (https://keybase.io/kalenjohnson) on keybase. | |
* I have a public key whose fingerprint is C700 BAD5 FD8D 6FFF DEB1 FF1F F24E 0E71 AC8E 1CDE | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Keep track of the amount of items in a row, and add another .row when necessary | |
* | |
* @param int $i | |
* @param int $item_count | |
* @param string $class_name | |
* | |
* @return bool|string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var affix = $('#affix-container'); | |
affix.affix({ | |
offset: { | |
top: function() { | |
if ($('#carousel-motivate').length !== 0) { | |
if ($('body').hasClass('admin-bar')) { | |
return ( | |
$('#wpadminbar').outerHeight() + |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Roots\Sage\Titles; | |
/** | |
* Page titles | |
*/ | |
function title() { | |
if (is_home()) { | |
if (get_option('page_for_posts', true)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class autoloader { | |
public static $loader; | |
public static function init() | |
{ | |
if (self::$loader == NULL) | |
self::$loader = new self(); | |
return self::$loader; |
NewerOlder