This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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; |
This file contains hidden or 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 InstagramFeed { | |
| protected $keys; | |
| public function __construct($user_id, $access_code) | |
| { | |
| $this->keys = [ | |
| 'user_id' => $user_id, | |
| 'access_code' => $access_code, | |
| ]; |
This file contains hidden or 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
| add_action('plugins_loaded', 'remove_jetpack_widget_conditions',11); | |
| function remove_jetpack_widget_conditions(){ | |
| remove_action( 'init', array('Jetpack_Widget_Conditions','init') ); | |
| } |
This file contains hidden or 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
| wp_enqueue_script('duchateau_js', get_template_directory_uri() . $assets['js'], array(), null, true); | |
| wp_localize_script( 'duchateau_js', 'wp_api', array( | |
| 'url' => esc_url_raw(get_json_url()), | |
| 'theme' => esc_url_raw(get_template_directory_uri()) | |
| ) ); |
NewerOlder