This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This specifies the deployment process on AWS ElasticBeanstalk for a Django app using npm and Postgres. | |
# | |
# The target environment should have access to a Postgres Database through environment variables. | |
# The environment can be setup using `eb create --database.engine=postgres` | |
# The necessary environment variables to access the database will be automatically defined on the | |
# instances of that environment. | |
# | |
# In addition, the target environment should define environment variables (django secret key ...). | |
# They can be manually defined using the AWS ElasticBeanstalk interface on the web. | |
# They can also be specified when creating the environment from command line, for example: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, ComponentRef, Directive, DynamicComponentLoader, TemplateRef, ViewContainerRef } from 'angular2/angular2'; | |
@Component({ | |
selector: 'spinner', | |
template: `<h1>spinner</h1>` // This will be displayed while loading. | |
}) | |
class Spinner { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define _ENABLE_ATOMIC_ALIGNMENT_FIX 1 | |
#include <iostream> | |
#include <thread> | |
#include <array> | |
#include <atomic> | |
#include <memory> | |
#include <Windows.h> | |
#include <variant> | |
#include <vector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define _ENABLE_ATOMIC_ALIGNMENT_FIX 1 | |
#include <iostream> | |
#include <thread> | |
#include <array> | |
#include <atomic> | |
#include <memory> | |
#include <Windows.h> | |
#include <variant> | |
#include <vector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include <vector> | |
using namespace std; | |
// This one uses a slightly different table | |
// It's probably easier to remember. | |
// The table LPS contains at LPS[i] the size of the Longest Proper Prefix of p[0..i] that is also a Suffix of p[0..i]. | |
vector<int> computeLPS(string& p) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState } from "react"; | |
import AuthenticationContext from "adal-angular"; | |
import "./App.css"; | |
// Use the AppId and redirectUri you get after registering your App in the Azure Portal. | |
// https://docs.microsoft.com/en-us/graph/auth-register-app-v2 | |
const authContext = new AuthenticationContext({ | |
clientId: "<AppId-from-azure-portal>", | |
popUp: false, | |
redirectUri: "http://localhost:8000", |