Work on multiple branches simultaneously without switching branches or duplicating dependencies.
# Create a worktree for an existing branch
/git-tree feature-branch| #!/usr/bin/env bash | |
| # ============================================================================= | |
| # Merges CHILD repo into PARENT. | |
| # By Justin Sternberg <[email protected]> | |
| # | |
| # Version 0.1.0 | |
| # | |
| # Uses: https://github.com/newren/git-filter-repo | |
| # References: | |
| # * https://peterbabic.dev/blog/merge-repos-using-git-filter-repo/ |
| var colors = ['#EC0089','#0C1127','#00cfed']; | |
| console.group('colors', {colors}); | |
| colors.forEach(c => console.log(`%c `, | |
| ` | |
| display: block; | |
| background: ${c}; | |
| width: 5px; | |
| height: 5px; | |
| padding: 5px 5px; | |
| ` |
| <html> | |
| <head> | |
| <style> | |
| .placeholder { | |
| position: relative; | |
| display: inline-block; | |
| } | |
| .placeholder:not(.placeholder-hide):after { | |
| background: rgba(255,255,255,.8) url("https://upload.wikimedia.org/wikipedia/commons/b/b8/YouTube_play_button_icon_%282013%E2%80%932017%29.svg") no-repeat center center; |
| document.addEventListener('om.Form.init', function(evt) { | |
| console.log('om.Form.init') | |
| var Form = evt.detail.Form; | |
| var getQueryParam = function( param ) { | |
| if (!getQueryParam.params) { | |
| getQueryParam.params = {}; | |
| var query = window.location.search.substring(1); | |
| var parts = query ? query.split('&').map(s => s.split('=')) : [] |
| // To use YouVersion instead of BibleGateway, you can add this filter: | |
| add_filter( 'dsgnwrks_bible_service', 'dsgnwrks_use_youversion' ); | |
| function dsgnwrks_use_youversion() { | |
| return 'youversion'; | |
| } | |
| // To use English Standard Version instead of NIV | |
| apply_filters( 'dsgnwrks_bible_version', 'dsgnwrks_use_version_esv' ) | |
| function dsgnwrks_use_version_esv() { | |
| return 'esv'; |
| <!--[if lte IE 8]--> | |
| <script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2-legacy.js"></script> | |
| <![endif]--> | |
| <script> | |
| (function() { | |
| var addForm = function() { | |
| window.hbspt.forms.create({ | |
| sfdcCampaignId: '70130000000ep2ZZZ', | |
| portalId: '102310', | |
| formId: '190ga042-56fc-4897-bed4-86ea519cb3e9', |
| <?php | |
| add_filter( 'optin_monster_api_final_output', function( $campaigns ) { | |
| if ( ! empty( $campaigns ) ) { | |
| foreach ( $campaigns as $slug => $embed ) { | |
| $campaigns[ $slug ] = str_replace( 's.async=true;', 's.async=true;s.defer=true;', $embed ); | |
| } | |
| } | |
| return $campaigns; | |
| } ); |
| <script type="text/javascript"> | |
| document.addEventListener('om.MonsterLink.init', function(evt) { | |
| evt.detail.MonsterLink.disable = true; | |
| }); | |
| </script> |
| <script type="text/javascript"> | |
| document.addEventListener('om.Shutdown.init', function(evt) { | |
| evt.detail.Shutdown.preventAll = true; | |
| }); | |
| </script> |