Skip to content

Instantly share code, notes, and snippets.

View ajoy39's full-sized avatar

Alec Joy ajoy39

  • Binghamton, NY
  • 08:08 (UTC -04:00)
View GitHub Profile
async function handleRequest(request) {
let url = new URL(request.url)
// make sure you set B2_BUCKET_NAME as an environment variable
let filename = url.pathname.substring(url.pathname.lastIndexOf('/')+1);
let escaped_name = encodeURIComponent(filename)
let escaped_path = url.pathname.replace(filename, escaped_name)
@ajoy39
ajoy39 / SocialiteController.php
Created October 28, 2020 18:26
Socialite Controller
<?php
namespace App\Http\Controllers;
use App\User;
use App\Services\RegistrationService;
use App\SocialiteAccount;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use Illuminate\Support\Str;
myApp.factory('cache', function(){
return{};
});
---
controller('benefitVerification', ['$scope', 'cache', '$location', function($scope, cache, $location) {
cache.patient = {
firstName: '',
lastName: '',
middleInitial: '',
SSN: '',
### Keybase proof
I hereby claim:
* I am ajoy39 on github.
* I am ajoy39 (https://keybase.io/ajoy39) on keybase.
* I have a public key whose fingerprint is DA17 BFAE 318A 2502 D4E0 64EE 5EC6 F91D 683E A86B
To claim this, I am signing this object:
Ingredients
1 Chicken Breast or your choice of protien
1 Can black beans
1 Green Pepper
1/2 an Onion, finely chopped
Lettuce or Spinach
Salsa
Salt
Pepper
Garlic
@ajoy39
ajoy39 / Random Number
Created November 25, 2014 19:57
Random Number Guessing Game
#Give a random number for the computer to guess.
num_input=int(input("Please enter a number for the computer to guess: "))
while num_input < 1 or num_input > 100:
if num_input > 100:
print("Please enter a number less than or equal to 100.")
if num_input < 1: