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 formPlaceholder = document.createElement("div"); | |
| <div id="tlh-form-placeholder" class="mobile-placeholder"></div> |
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
| createCustomProgramList() { | |
| const customProgramList = this.programs.map(program => { | |
| if (program.tagNames.includes("Adult Education")) { | |
| program.degree_level = "Adult Education"; | |
| } | |
| return program; | |
| }); | |
| return customProgramList; | |
| } |
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
| # Delete all local branches other than master | |
| git branch | grep -v "master" | xargs git branch -D |
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
| javascript:(function() { | |
| var relativeTimeElements = window.document.querySelectorAll("relative-time"); | |
| relativeTimeElements.forEach(function(timeElement){ | |
| timeElement.innerHTML = timeElement.innerHTML +" -- "+ timeElement.title; | |
| }) | |
| }()) |
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
| <template> | |
| <VueEditor v-model="content" /> | |
| </template> | |
| <script> | |
| import { VueEditor } from "vue2-editor"; | |
| import Quill from "quill"; | |
| const AlignStyle = Quill.import("attributors/style/align"); | |
| Quill.register(AlignStyle, 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
| <?php | |
| function wp_modify_search_filter( $query ) { | |
| if ( $query->is_search && $query->is_main_query() ) { | |
| $query->set( 'post__not_in', array( 1,2,3,4,5,6 ) ); | |
| } | |
| } | |
| add_action( 'pre_get_posts', 'wp_modify_search_filter' ); |
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
| autoload -U add-zsh-hook | |
| load-nvmrc() { | |
| local node_version="$(nvm version)" | |
| local nvmrc_path="$(nvm_find_nvmrc)" | |
| if [ -n "$nvmrc_path" ]; then | |
| local nvmrc_node_version=$(nvm version "$(cat "${nvmrc_path}")") | |
| if [ "$nvmrc_node_version" = "N/A" ]; then | |
| nvm install |
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
| .darken-pseudo { | |
| position: relative; | |
| } | |
| .darken-pseudo:after { | |
| content: ''; | |
| position: absolute; | |
| top: 0; | |
| bottom: 0; | |
| left: 0; |
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
| const delay = (ms) => new Promise((resolve) => setTimeout(resolve, ms)) |
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 titleCaseText(text) { | |
| const words = text.split('-') | |
| return words | |
| .map(word => word.charAt(0).toUpperCase() + word.substring(1).toLowerCase()) | |
| .join(' ') | |
| } |