View clean.py
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
# for context: https://twitter.com/rdegges/status/1447066985213292544?s=20 | |
import csv | |
ORIG_FILE = 'contacts.csv' | |
NEW_FILE = 'contacts-clean.csv' | |
PHONE_NUMBER_INDEX = 41 |
View test.js
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
{ | |
ip: '8.8.8.8', | |
location: { | |
country: 'US', | |
region: 'California', | |
city: 'Mountain View', | |
lat: 37.40599, | |
lng: -122.078514, | |
postalCode: '94043', | |
timezone: '-07:00', |
View okta-server.js
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
const express = require("express"); | |
const okta = require("okta"); | |
const app = express(); | |
app.use(okta()); |
View test.js
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 "hi"; | |
test.call(); |
View list-users.js
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
client.listUsers(u => { | |
console.log(user); | |
}); |
View halloween.sh
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
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%} ' |
View sample-output.json
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
{ | |
"catchAll": "false", | |
"disposable": "false", | |
"dns": "OK", | |
"emailAddress": "r@rdegges.com", | |
"free": "false", | |
"mxs": [ "mail.protonmail.ch" ], | |
"smtp": "OK", | |
"validFormat": "OK" | |
} |
View index.html
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
<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)"> |
View app.js
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
/** | |
* 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;"; | |
} |
View index.html
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
<table class="table table-hover"> | |
<thead> | |
<tr> | |
<td>Rank</td> | |
<td>Name</td> | |
<td>Symbol</td> | |
<td>Price (USD)</td> | |
<td>1H</td> | |
<td>1D</td> | |
<td>1W</td> |
NewerOlder