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.
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
| ## | |
| # Part of a full "MacOS on Gnome X experience setting" | |
| # Here we control general clickpad behaviour. Also requires Daemon to run, see general readme. | |
| # Requires Fusuma https://github.com/iberianpig/fusuma, xdotool | |
| # Other settings and controls done with: | |
| # libinput-three-finger-gestures https://github.com/marsqing/libinput-three-finger-drag | |
| # syngestures https://github.com/mqudsi/syngesture/issues (only if you truly need two-finger history navigation) | |
| # synaptics https://wiki.archlinux.org/title/Touchpad_Synaptics | |
| # Kinto https://github.com/rbreaves/kinto | |
| # Xorg |
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
| ## | |
| # Part of a full "MacOS on Gnome X experience setting" | |
| # Here we control 4 and 3 finger gestures (pinch) and 4 finger gestures (swipe) | |
| # Requires Fusuma https://github.com/iberianpig/fusuma, xdotool | |
| # Other settings and controls done with: | |
| # libinput-three-finger-gestures https://github.com/marsqing/libinput-three-finger-drag | |
| # syngestures https://github.com/mqudsi/syngesture/ (only if you truly need two-finger history navigation) | |
| # synaptics https://wiki.archlinux.org/title/Touchpad_Synaptics | |
| # Kinto https://github.com/rbreaves/kinto | |
| # Xorg |
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
| /** | |
| * html2pdf.js v0.9.1 | |
| * Copyright (c) 2018 Erik Koopmans | |
| * Released under the MIT License. | |
| */ | |
| !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.html2pdf=e()}(this,function(){"use strict";function t(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function A(t,e){return e={exports:{}},t(e,e.exports),e.exports}var r="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(A(function(e,A){e.exports=function(){function e(t){return"function"==typeof t}function A(){var t=setTimeout;return function(){return t(n,1)}}function n(){for(var t=0;t<y;t+=2){var e=H[t],A=H[t+1];e(A),H[t]=void 0,H[t+1]=void 0}y=0}function i(t,e){var A=this,r=new this.constructor(a);void 0===r[S]&&B(r);var n=A._state;if(n){var i=arguments[n-1];C(function(){return g |
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
| (function( $ ) { | |
| 'use strict'; | |
| jQuery(document).ready(function($) { | |
| var myarea = document.getElementById('content'); | |
| wp.CodeMirror.defineMode("tkt_shortcodes", function(config, parserConfig) { | |
| var indentUnit = config.indentUnit; | |
| var Kludges = { |
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('init','safe_remove_backend_admin_access_for_role'); | |
| function safe_remove_backend_admin_access_for_role(){ | |
| if( current_user_can('editor') || current_user_can('administrator') )//Your roles | |
| return; | |
| if( is_admin() && !defined('DOING_AJAX') ){//IMPORTANT! Front end AJAX events are excluded... | |
| if(isset( $_GET[ 'action'] ) && 'trash' == $_GET[ 'action'])//Perhaps you have a call to some WP Admin Operation that needs whitelisting... | |
| return; | |
| wp_redirect( home_url() ); | |
| exit; |
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( 'template_redirect', 'change_wp_search_url' ); | |
| function change_wp_search_url() { | |
| if ( !empty( $_GET['s'] ) ) { | |
| wp_redirect( home_url( "/your_page/?your_param=" ) . urlencode( get_query_var( 's' ) ) ); | |
| exit(); | |
| } | |
| } |
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( 'pre_get_posts', 'remove_post_type_from_front_end_search_results'); | |
| function remove_post_type_from_front_end_search_results($query){ | |
| if(is_admin() || !$query->is_main_query()) return; | |
| if($query->is_search()){ | |
| $post_type_to_remove = 'your_post_type'; | |
| $searchable_post_types = get_post_types(array('exclude_from_search' => false)); |
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( 'wp_enqueue_scripts', 'conditionally_enqueue_styles'); | |
| function conditionally_enqueue_styles() { | |
| if ( is_front_page() || !is_archive() ) { | |
| wp_enqueue_style('bootstrap', 'https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css'); | |
| wp_enqueue_style('style', get_stylesheet_uri()); | |
| wp_enqueue_script( 'bootstrap-js', 'https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js', array('jquery'), '3.3.4', true ); | |
| } | |
| } |
NewerOlder