Skip to content

Instantly share code, notes, and snippets.

View rdegges's full-sized avatar

Randall Degges rdegges

View GitHub Profile
{
ip: '8.8.8.8',
location: {
country: 'US',
region: 'California',
city: 'Mountain View',
lat: 37.40599,
lng: -122.078514,
postalCode: '94043',
timezone: '-07:00',
@rdegges
rdegges / okta-server.js
Created August 21, 2019 21:09
Showcase an Okta Node Server #okta #javascript
const express = require("express");
const okta = require("okta");
const app = express();
app.use(okta());
@rdegges
rdegges / The Technical Interview Cheat Sheet.md
Last active August 3, 2019 16:21 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@rdegges
rdegges / test.js
Created May 20, 2019 21:46
This example shows you how to do X #okta #mfa
import "hi";
test.call();
@rdegges
rdegges / list-users.js
Created April 17, 2019 23:25
List Users in Okta Using Node #okta #mfa
client.listUsers(u => {
console.log(user);
});
@rdegges
rdegges / index.html
Created July 21, 2017 01:34
Crypto Compare styling.
<tbody>
<tr v-for="coin in coins">
<td>{{ coin.rank }}</td>
<td><img v-bind:src="getCoinImage(coin.symbol)"> {{ coin.name }}</td>
<td>{{ coin.symbol }}</td>
<td>{{ coin.price_usd | currency }}</td>
<td v-bind:style="getColor(coin.percent_change_1h)">
<span v-if="coin.percent_change_1h > 0">+</span>{{ coin.percent_change_1h }}%
</td>
<td v-bind:style="getColor(coin.percent_change_24h)">
@rdegges
rdegges / opencnam-v2-html-sample.sh
Created October 24, 2012 00:51
OpenCNAM V2 HTML Example
$ curl https://api.opencnam.com/v2/phone/+16502530000?format=html
GOOGLE INC
$ curl -H "Accept: text/html" https://api.opencnam.com/v2/phone/+16502530000
GOOGLE INC
@rdegges
rdegges / halloween.sh
Created October 20, 2017 18:13
Spooky Halloween Prompt
export PS1='
👻 %{$purple%}%n%{$reset_color%} in %{$limegreen%}%~%{$reset_color%}$(ruby_prompt_info " with%{$fg[red]%} " v g "%{$reset_color%}")$vcs_info_msg_0_%{$orange%} λ%{$reset_color%} '
@rdegges
rdegges / sample-output.json
Created October 16, 2017 02:31
Sample Output
{
"catchAll": "false",
"disposable": "false",
"dns": "OK",
"emailAddress": "r@rdegges.com",
"free": "false",
"mxs": [ "mail.protonmail.ch" ],
"smtp": "OK",
"validFormat": "OK"
}
@rdegges
rdegges / app.js
Created July 21, 2017 01:32
Crypt Compare getColor
/**
* Return a CSS color (either red or green) depending on whether or
* not the value passed in is negative or positive.
*/
getColor: (num) => {
return num > 0 ? "color:green;" : "color:red;";
}