I hereby claim:
- I am aalaap on github.
- I am aalaap (https://keybase.io/aalaap) on keybase.
- I have a public key whose fingerprint is F267 4132 B0A1 3A35 2D5F ECDE 2968 DF2C 0D0F 5E20
To claim this, I am signing this object:
/** | |
* This code is based on Nader Dabit's tutorial for custom Cognito authentication | |
* using AWS Amplify and React: https://www.youtube.com/watch?v=JaVu-sS3ixg&t=24s | |
* | |
* It's 99% the same as the video, but I've sprinkled a few niceties here and there. | |
*/ | |
import React, { useEffect, useState } from "react"; | |
import Amplify, { Auth, Hub } from "aws-amplify"; |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="author" content="Aalaap Ghag" /> | |
<title>Twitter’s Bootstrap with Ryan Fait’s Sticky Footer and Aalaap Ghag’s Responsive Padding Fix</title> | |
<link rel="stylesheet" href="css/bootstrap.min.css" /> | |
<link href="css/bootstrap-responsive.css" rel="stylesheet"> | |
<style> | |
html, body { |
""" | |
Run a Flask app in production or development/debug from the command line | |
If you wish to run a Flask app with Python instead of the `flask run` command, | |
this code provides an easier way to decide if you want to run it in production | |
or debug mode. | |
Usage: | |
python flaskserver.py dev # runs with debug set to True | |
python flaskserver.py # production mode |
<php | |
/** | |
* quickYouTubeId: Easy little function to get the video ID from any YouTube | |
* URL. | |
* | |
* I went through a lot of snippets that perform various kinds of RegEx and | |
* parse_url and what not, but I thought, since most YouTube video IDs are 11 | |
* characters, why not just look for the only 11-character string and extract | |
* that? I can't think of a YouTube URL that'll foil this match. Can you? | |
* |
<a href="javascript:(function(){$('body>div').toggle();})();">DeSOPAFy</a> |
I hereby claim:
To claim this, I am signing this object:
#include <iostream> | |
#include <sstream> | |
using namespace std; | |
/* supply words and strdoge() will echo the doge and strdog() will return the doge */ | |
string strdog(string so, string such, string very, string much); | |
void strdoge(string so, string such, string very, string much); |