Skip to content

Instantly share code, notes, and snippets.

View codyaweber's full-sized avatar

codyaweber

  • Lexington, KY
View GitHub Profile
@codyaweber
codyaweber / AuthenticationService.js
Created September 27, 2023 02:58
Microsoft.Authentication.WebAssembly.Msal/AuthenticationService.js
/*! For license information please see AuthenticationService.js.LICENSE.txt */
(()=>{
"use strict";
var e = {
4: (e,t,r)=>{
r.r(t),
r.d(t, {
AccountEntity: ()=>re,
ApiId: ()=>Se,
AuthError: ()=>J,
@codyaweber
codyaweber / form.js
Created July 28, 2020 04:54
React Form
const e = React.createElement;
const { useState, useEffect } = React;
function WebForm(props) {
const [hasPressedSubmit, setHasPressedSubmit] = useState(false);
const [name, setName] = useState("");
const [nameValid, setNameValid] = useState(false);
@codyaweber
codyaweber / UISegmentedControlBug.swift
Last active September 23, 2019 18:16
UISegmentedControl bug
//: A UIKit based Playground for presenting user interface
import UIKit
import PlaygroundSupport
class MyViewController : UIViewController {
private var segmentedControl : UISegmentedControl?
private var button : UIButton?
@codyaweber
codyaweber / dataManager.js
Created March 7, 2017 17:56
Server logic for moving Contentful CDA data to SQL database
/*
Top level management for running data pull - triggers
pull from Contentful and push to SQL database
*/
'use strict';
//Wrapper for Contentful client JS SDK
var contentful = require("./contentfulWrapper");
@codyaweber
codyaweber / index.js
Created March 7, 2017 16:32
Automatically download images from public unsplash API with search term.
var express = require("express");
var env = require("dotenv").load();
var unsplash = require("./unsplash");
var app = express();
var cluster = require("cluster");
var numCPUs = require("os").cpus().length;
if (cluster.isMaster) {