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 Stripe from 'stripe' // ^19.1.0 | |
| /** | |
| * Example function to upload image and update stripe account logo. | |
| * Call this function. | |
| */ | |
| const doTheThing = async () => { | |
| // Get buffer from real file - this is just an example | |
| const buffer = Buffer.from([]) | |
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
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| dir="${1:-right}" # "right" or "left" | |
| step=1 | |
| [[ "$dir" == "left" ]] && step=-1 | |
| cur=$(hyprctl -j activeworkspace | jq -r '.id') | |
| tgt=$((cur + step)) | |
| ((tgt < 1)) && exit 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
| #!/bin/bash | |
| # Function to get current public IP address with fallbacks | |
| get_public_ip() { | |
| # Try to get the public IP from multiple services | |
| for service in ifconfig.me icanhazip.com api.ipify.org ipinfo.io/ip; do | |
| PUBLIC_IP=$(curl -s --max-time 10 "$service") | |
| if [ -n "$PUBLIC_IP" ]; then | |
| echo "$PUBLIC_IP" | |
| return |
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
| .amber { | |
| :root & { | |
| --radius: 0rem; | |
| --background: oklch(1 0 0); | |
| --foreground: oklch(0.141 0.005 285.823); | |
| --card: oklch(1 0 0); | |
| --card-foreground: oklch(0.141 0.005 285.823); | |
| --popover: oklch(1 0 0); | |
| --popover-foreground: oklch(0.141 0.005 285.823); | |
| --primary: oklch(0.751 0.183 78.034); |
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
| diff --git a/node_modules/@codesandbox/sandpack-react/dist/index.js b/node_modules/@codesandbox/sandpack-react/dist/index.js | |
| index a419147..59f82ef 100644 | |
| --- a/node_modules/@codesandbox/sandpack-react/dist/index.js | |
| +++ b/node_modules/@codesandbox/sandpack-react/dist/index.js | |
| @@ -5037,8 +5037,20 @@ var MAX_MESSAGE_COUNT = MAX_KEYS * 2; | |
| // Const | |
| var GLOBAL = (function getGlobal() { | |
| // NOTE: see http://www.ecma-international.org/ecma-262/6.0/index.html#sec-performeval step 10 | |
| - var savedEval = eval; | |
| - return savedEval("this"); |
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 | |
| tag_prefix="client-v" | |
| # Get the highest tag number | |
| latest_tag=$(git describe --abbrev=0 --tags) | |
| # Extract the prefix and version using regular expression | |
| if [[ $latest_tag =~ ^(.*$tag_prefix)(.*)$ ]]; then | |
| prefix="${BASH_REMATCH[1]}" |
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
| /* | |
| * Customized by Misato Takahashi <misato@takahashi.name> | |
| * - fix if Html document has "<!DOCTYPE>" then parse error. | |
| * - fix if Attribute name includes "-" then parse error | |
| * - fix if Unmatch case start tag and end tag then parse error | |
| * - add function "getElementById" | |
| * | |
| * HTML Parser By John Resig (ejohn.org) | |
| * Original code by Erik Arvidsson, Mozilla Public License | |
| * http://erik.eae.net/simplehtmlparser/simplehtmlparser.js |
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
| [mysqld] | |
| collation-server = utf8_general_ci | |
| character-set-server = utf8 | |
| innodb_large_prefix=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
| <?php | |
| /* | |
| Made by Kudusch (blog.kudusch.de, kudusch.de, @Kudusch) | |
| --------- | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2004 Sam Hocevar <sam@hocevar.net> |