Skip to content

Instantly share code, notes, and snippets.

View flaviort's full-sized avatar

Flávio R. Troszczanczuk flaviort

View GitHub Profile
@jaames
jaames / astro.config.mjs
Last active October 5, 2024 17:55
Injecting global SCSS variables in Astro (https://astro.build), using additionalData and a path alias
// note for typescript users: you will need to install node.js types into your project with `npm i -D @types/node`
import { fileURLToPath } from 'url';
import path, { dirname } from 'path';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
export default {
// all the usual config goes here...
@danrovito
danrovito / countrydropdown.html
Last active June 23, 2025 09:55
HTML Country Select Dropdown List
<label for="country">Country</label><span style="color: red !important; display: inline; float: none;">*</span>
<select id="country" name="country" class="form-control">
<option value="Afghanistan">Afghanistan</option>
<option value="Åland Islands">Åland Islands</option>
<option value="Albania">Albania</option>
<option value="Algeria">Algeria</option>
<option value="American Samoa">American Samoa</option>
<option value="Andorra">Andorra</option>
<option value="Angola">Angola</option>