Skip to content

Instantly share code, notes, and snippets.

View bdlowery's full-sized avatar
👨‍💻

brian bdlowery

👨‍💻
View GitHub Profile
@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
@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 / 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 / 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;
}