Skip to content

Instantly share code, notes, and snippets.

View bdlowery's full-sized avatar
👨‍💻

brian bdlowery

👨‍💻
View GitHub Profile
// Zed settings
//
// For information on how to configure Zed, see the Zed
// documentation: https://zed.dev/docs/configuring-zed
//
// To see all of Zed's default settings without changing your
// custom settings, run the `open default settings` command
// from the command palette or from `Zed` application menu.
{
"icon_theme": "Colored Zed Icons Theme Dark",
<script>
fetch('https://www.trustandsafetyjobs.com/jobs.xml')
.then(response => response.text())
.then(xml => {
var parser = new DOMParser();
var xmlDoc = parser.parseFromString(xml, 'text/xml');
var jobs = xmlDoc.getElementsByTagName('job');
document.getElementById('total-jobs').innerHTML =
'🔥 There are currently <span style="color: #58b398;">' + jobs.length + ' live</span> jobs.';
});
@bdlowery
bdlowery / settings.json
Last active July 28, 2025 00:25
settings.json v2
// Zed settings
//
// For information on how to configure Zed, see the Zed
// documentation: https://zed.dev/docs/configuring-zed
//
// To see all of Zed's default settings without changing your
// custom settings, run the `open default settings` command
// from the command palette or from `Zed` application menu.
{
"icon_theme": "Colored Zed Icons Theme Dark",
@bdlowery
bdlowery / settings.json
Created July 26, 2025 01:58
laravel, vue settings.json
// Zed settings
//
// For information on how to configure Zed, see the Zed
// documentation: https://zed.dev/docs/configuring-zed
//
// To see all of Zed's default settings without changing your
// custom settings, run the `open default settings` command
// from the command palette or from `Zed` application menu.
{
"icon_theme": "Colored Zed Icons Theme Dark",
@bdlowery
bdlowery / wip-streak.js
Created June 4, 2024 01:05
WIP_streak
// Replace with your API key
const API_KEY = "wip_sk_{YOUR_API_KEY_HERE}";
const API_URL = `https://api.wip.co/v1/users/me.json?api_key=${API_KEY}`;
// Function to fetch data from the API
async function fetchStreakData() {
let request = new Request(API_URL);
let response = await request.loadJSON();
return response;
}
@bdlowery
bdlowery / postmark.js
Created October 10, 2023 02:12
postmark.js
import { NextResponse } from "next/server";
import { ServerClient } from "postmark";
const { POSTMARK_API, TURNSTILE_SECRET } = process.env;
const client = new ServerClient(POSTMARK_API);
export async function POST(req) {
const body = await req.json();
const { form, token } = body;
@bdlowery
bdlowery / pocket-monsters.php
Last active May 26, 2022 02:18
pokemon pokedex
<?php
$pocket_monsters = [
0 => [
'id' => 1,
'name' => [
'english' => 'Bulbasaur',
'japanese' => 'フシギダネ',
'chinese' => '妙蛙种子',
'french' => 'Bulbizarre',
@bdlowery
bdlowery / Add_Existing_Project_To_Git.md
Created November 24, 2020 02:13 — forked from alexpchin/Add_Existing_Project_To_Git.md
Add Existing Project To Git Repo

#Adding an existing project to GitHub using the command line

Simple steps to add existing project to Github.

1. Create a new repository on GitHub.

In Terminal, change the current working directory to your local project.

##2. Initialize the local directory as a Git repository.

git init