Skip to content

Instantly share code, notes, and snippets.

View quinnjr's full-sized avatar
🤠

Joseph R. Quinn quinnjr

🤠
View GitHub Profile
@quinnjr
quinnjr / README.md
Last active March 31, 2024 17:30
How to easily add environment variables to an Angular application

How to easily add environment variables to an Angular application

This guide assumes that you already have an angular application set up by ng create and are using Angular CLI for compilation.

Other guides that I've read rely upon re-writing your environments/environment.ts|environment.prod.ts files with each compilation. I find this to be completely unnecessary when angular's internal use of webpack can just be extended to include environment variables.

1. Add @angular-builders/custom-webpack to your dev-dependencies

@quinnjr
quinnjr / output.txt
Created May 10, 2022 12:53
Output of failed cphalcon build
This file has been truncated, but you can view the full file.
==> Making package: php-phalcon 5.0.0beta3-1 (Tue 10 May 2022 08:46:15 AM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found v5.0.0beta3.zip
==> Validating source files with b2sums...
v5.0.0beta3.zip ... Passed
==> Extracting sources...
-> Extracting v5.0.0beta3.zip with bsdtar
==> Starting prepare()...
This file has been truncated, but you can view the full file.
Object.defineProperty(exports, "__esModule", { value: true });
const {
PrismaClientKnownRequestError,
PrismaClientUnknownRequestError,
PrismaClientRustPanicError,
PrismaClientInitializationError,
PrismaClientValidationError,
decompressFromBase64,
@quinnjr
quinnjr / Makefile
Created January 25, 2020 22:52
A generic, not-perfect F# compilation Makefile
# Copyright (C) Joseph R. Quinn 2020
# SPDX-License-Identifier: ISC
ifeq ($(OS),"Windows_NT")
FSC := $(shell where fsc)
else
FSC := $(shell which fsharpc)
endif
input := $(shell find . -type f -name "*.fs")

Keybase proof

I hereby claim:

  • I am quinnjr on github.
  • I am quinnjr (https://keybase.io/quinnjr) on keybase.
  • I have a public key whose fingerprint is 72ED 47C1 3FF3 672F B86F 3F00 D9AA 1466 6023 1B68

To claim this, I am signing this object:

@quinnjr
quinnjr / asciiputsonglasses
Created February 23, 2019 20:00 — forked from staringispolite/asciiputsonglasses
Ascii art sunglasses meme
Puts on glasses:
(•_•)
( •_•)>⌐■-■
(⌐■_■)
Takes off glasses ("mother of god..."):
(⌐■_■)
( •_•)>⌐■-■
// ==UserScript==
// @name Destiny 2 LFG Reports
// @namespace http://bungie.net/
// @version 0.0.1
// @description Appends a raid report link and pvp info link to public fireteams on the Destiny LFG app.
// @author Joseph R. Quinn <quinn.josephr@protonmail.com>
// @match https://www.bungie.net/en/ClanV2/PublicFireteam?groupId=*&fireteamId=*
// @grant none
// @noframess
// ==/UserScript==
# Maintainer: Filipe Laíns (FFY00) <lains@archlinux.org>
# Contributor: Pieter Goetschalckx <3.14.e.ter <at> gmail <dot> com>
pkgname=franz
_pkgver=5.0.0-beta.22
pkgver=${_pkgver//-/_}
pkgrel=1
pkgdesc="Free messaging app for services like WhatsApp, Slack, Messenger and many more."
arch=('x86_64' 'i686')
url="https://meetfranz.com"
-- FUNCTION: public.simulate_grades()
-- DROP FUNCTION public.simulate_grades();
CREATE OR REPLACE FUNCTION public.simulate_grades(
)
RETURNS void
LANGUAGE 'plpgsql'
COST 100
/**
* @file quicksort_linked_list.c
* @author Joseph R. Quinn
* @date 14 July 2018
*
* @brief An implementation of a recursive quicksort algorithm on
* a singly-linked list.
*/
#include "quicksort_linked_list.h"