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
| #!/bin/bash | |
| # Map workspaces to omarchy themes | |
| declare -A workspace_themes=( | |
| [1]="catppuccin" | |
| [2]="catppuccin-latte" | |
| [3]="ethereal" | |
| [4]="everforest" | |
| [5]="flexoki-light" | |
| [6]="gruvbox" |
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
| declare const Observable: any; | |
| // Utility to create an Observable from Chrome's messaging system | |
| function createMessageObservable() { | |
| return new Observable((subscriber: any) => { | |
| // Set up the message listener | |
| const listener = (message: any, sender: chrome.runtime.MessageSender, sendResponse: (response?: any) => void) => { | |
| // Forward the message to the Observable | |
| subscriber.next({ message, sender, sendResponse }); | |
| return 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
| -import axios from 'axios'; | |
| -import fs from 'fs'; | |
| -import path from 'path'; | |
| -import a from 'a'; | |
| -import somethingElse from '../somethingElse'; | |
| +import a from 'a'; | |
| +import fs from 'fs'; | |
| +import path from 'path'; | |
| +import axios from 'axios'; | |
| +import somethingElse from '../somethingElse'; |
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
| #!/bin/bash | |
| # Check if interval argument is provided | |
| if [ -z "$1" ]; then | |
| echo "Usage: $0 -int <interval_in_seconds>" | |
| exit 1 | |
| fi | |
| # Extract the interval value | |
| interval=$2 |
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 | |
| add_filter( 'wpseo_schema_website', 'example_change_website_schema', 10, 2 ); | |
| /** | |
| * Changes the Yoast SEO Website schema. | |
| * | |
| * @param array $data The Schema Website data. | |
| * @param Meta_Tags_Context $context Context value 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 | |
| use PhpCsFixer\Config; | |
| use PhpCsFixer\Finder; | |
| $rules = [ | |
| 'array_indentation' => true, | |
| 'array_syntax' => ['syntax' => 'short'], | |
| 'binary_operator_spaces' => [ | |
| 'default' => 'single_space', |
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
| ... | |
| Beautifier.prototype.beautify = function() { | |
| ... | |
| var source_text = this._source_text; | |
| // BEGIN | |
| source_text = source_text.replace(/\{\{(--)?((?:(?!(--)?\}\}).)+)(--)?\}\}/g, function(m, ds, c, dh, de) { |
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 path = require('path') | |
| module.exports = { | |
| chainWebpack: config => { | |
| const types = ['vue-modules', 'vue', 'normal-modules', 'normal'] | |
| types.forEach(type => addStyleResource(config.module.rule('stylus').oneOf(type))) | |
| }, | |
| } | |
| function addStyleResource (rule) { |
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
| downloadEmbededVideos(); | |
| /** | |
| * Finds and downloads all embeded Vimeo videos. | |
| */ | |
| function downloadEmbededVideos() { | |
| // Find Vimeo embed frame | |
| var embedFrames = document.querySelectorAll('iframe[src*="player.vimeo.com"]'); | |
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
| <!-- Before --> | |
| <svg class="icon is-active" xmlns="http://www.w3.org/2000/svg" width="12" height="16" viewBox="0 0 12 16"> | |
| <path d="M5.05.31c.81 2.17.41 3.38-.52 4.31C3.55 5.67 1.98 6.45.9 7.98c-1.45 2.05-1.7 6.53 3.53 7.7-2.2-1.16-2.67-4.52-.3-6.61-.61 2.03.53 3.33 1.94 2.86 1.39-.47 2.3.53 2.27 1.67-.02.78-.31 1.44-1.13 1.81 3.42-.59 4.78-3.42 4.78-5.56 0-2.84-2.53-3.22-1.25-5.61-1.52.13-2.03 1.13-1.89 2.75.09 1.08-1.02 1.8-1.86 1.33-.67-.41-.66-1.19-.06-1.78C8.18 5.31 8.68 2.45 5.05.32L5.03.3l.02.01z"/> | |
| </svg> | |
| <!-- After --> | |
| @icon ('flame', 'is-success') |
NewerOlder