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
| # Fuzzy Command Search: | |
| # Fuzzy-search for a command, to run it or get info about it | |
| # --- | |
| # Add to your .zshrc or whatever | |
| # Requirements: | |
| # - `fzf` be installed | |
| # - `ZSH_CONFIG_DIRS` var be set | |
| # e.g.: export ZSH_CONFIG_DIRS="${HOME}/.zsh_configs/" | |
| # --- | |
| # Usage: |
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
| # Fuzzy Command Search | |
| # --- | |
| # Add to your .zshrc or whatever | |
| # NB: Requires `fzf` be installed | |
| # --- | |
| # Usage: `cc` or `cc <search string>` to pre-populate the search query. | |
| # --- | |
| # https://gist.github.com/BorisAnthony/160a441c5e34897527d58c0964b97b74 | |
| # --- | |
| command_search_fzf() { |
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 | |
| declare(strict_types=1); | |
| namespace MyFramework\Emitter; | |
| /** | |
| * Extend Laminas SapiEmitter | |
| * https://github.com/laminas/laminas-httphandlerrunner/blob/2.14.x/src/Emitter/SapiEmitter.php | |
| * to add ability to emit body only, if headers or other output have already been sent. |
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
| "workbench.colorCustomizations": { | |
| // Contrast Colors - The contrast colors are typically only set for high contrast themes. If set, they add an additional border around items across the UI to increase the contrast. | |
| "contrastActiveBorder": "", | |
| "contrastBorder": "", | |
| // Base Colors | |
| "focusBorder": "", | |
| "foreground": "", | |
| "widget.shadow": "", | |
| "selection.background": "", | |
| "descriptionForeground": "", |
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
| { | |
| "title": "Modern Science and Anarchism", | |
| "subtitle": null, | |
| "slug": "modern-science-and-anarchism", | |
| "series_index": 1, | |
| "caid": 993, | |
| "uuid": "e0896194-dcef-4c5c-9cea-c6844ba85f5e", | |
| "isbn": "9780341661047", | |
| "gdrds": "42483549", | |
| "authors": { |
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 { css } from "uebersicht"; | |
| import { DateTime } from "luxon"; | |
| // Refresh Frequency of the widget | |
| // This affects only the final return, not the whole script | |
| export const refreshFrequency = 1000 * 60; | |
| // Trigger the refresh | |
| export const command = (dispatch) => { |
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
| /** | |
| * Übersicht "TimeZoneStrip" JSX widget | |
| * boris@anthony.net / 2024-10-09 | |
| * MIT Licensed | |
| * Based on https://www.reddit.com/r/Ubersicht/comments/1fdp5bu/widget_based_on_the_worldtimebuddy/ | |
| */ | |
| import { css, run } from "uebersicht"; | |
| const timezones = [ | |
| { name: "JST", timezone: "Asia/Tokyo" }, |
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 | |
| class CardinalDirections | |
| { | |
| private const CARDINALS = [ | |
| 'N', 'NNE', 'NE', 'ENE', 'E', 'ESE', 'SE', 'SSE', | |
| 'S', 'SSW', 'SW', 'WSW', 'W', 'WNW', 'NW', 'NNW' | |
| ]; | |
| public static function degreesToCardinals($degrees): array |
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
| /** | |
| From: | |
| https://codepen.io/jscottsmith/pen/VLzMLo?editors=0010 | |
| Post about console log styles: | |
| http://jscottsmith.me/notes/styling-your-console-logs | |
| **/ | |
| // Styles and Colors | |
| var colors = { |
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 url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@200;300;400;600&display=swap'); | |
| body { | |
| font-family: 'Source Sans Pro', sans-serif; | |
| font-size: 12px; | |
| font-weight: 400; | |
| } | |
| .getting-started__trends, |
NewerOlder