Skip to content

Instantly share code, notes, and snippets.

View quindariuss's full-sized avatar
🍊

Quin'darius Lyles-Woods quindariuss

🍊
View GitHub Profile
curl "https://www.foxnews.com/api/article-search?searchBy=categories&values=fox-news%2Fpolitics&size=30&from=30"
@quindariuss
quindariuss / flac_to_alac.sh
Created September 18, 2021 19:51
Convert all Flac files to Alac
for file in *.flac; do ffmpeg -i $file -vn -acodec alac ${file%.*}.m4a; done
@quindariuss
quindariuss / db.py
Created July 1, 2021 16:40
Assignment Four Database Access with Python
import sqlite3
from os.path import join, split
def dictionary_factory(cursor, row):
col_names = [d[0].lower() for d in cursor.description]
return dict(zip(col_names, row))
def getConnection():
this_dir = split(__file__)[0]
fname = join(this_dir, 'sqlite-sakila.sq')
@quindariuss
quindariuss / ogl_osx.md
Created May 14, 2021 19:42 — forked from v3n/ogl_osx.md
GLFW on OS X starting guide

OpenGL Development on OS X

While it's possible to download packages and install them manually, it's such a hassle. Fortunately for us, OS X has an unofficial package manager called http://brew.sh Let's install it. Open you Terminal and paste the following code:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Great. Homebrew will automatically install packages to /usr/local. Conveniently, that directory is already in your include and link paths.

import CodeScanner
import SwiftUI
struct CodeScanner: View {
@State private var isShowingScanner = false
var body: some View {
Button(action: {
self.isShowingScanner = true
}) {
@quindariuss
quindariuss / Passing Functions.swift
Created March 8, 2020 04:29
how to pass functions and make resuable buttons in swiftUI
struct ChildView: View {
var function: () -> Void
var body: some View {
Button(action: {
self.function()
}, label: {
Text("Button")
})
}
@quindariuss
quindariuss / Hex Color.swift
Created March 7, 2020 23:03
how to add color via hex with swiftUI
Text(text)
.color(UIColor.init(hex: "FFF"))
@quindariuss
quindariuss / Fragment
Last active March 6, 2020 22:37
Whaflwfsafsfasf
import SwiftUI
struct Logo: View {
var body: some View {
Image("color-fill-logo").resizable().frame(width: 280, height: 280)
}
}
struct Logo_Previews: PreviewProvider {
static var previews: some View {
@quindariuss
quindariuss / Using the C++ Standerd Library.cpp
Created October 16, 2019 16:24
How to implement the C++ Standerd Library
using namespace std;
int main{
}
@quindariuss
quindariuss / Include directive.cpp
Created October 16, 2019 16:22
Adding on to the Pre/Post Conditions Gist
#include <cmath>
//Pre-Condition: Enter any real number 'x'.
double sqrt(double x)
//Post-Condition: The function will return 'x' sqaured.