- The AI Hierarchy of Needs
- The Rise of Data Engineer
- The Downfall of the Data Engineer
- A Beginner’s Guide to Data Engineering
- Part III
This file contains hidden or 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
#!/bin/sh | |
# | |
# usage: | |
# $ sh get_the_logs.sh [rds-instance-name] | |
# | |
function __describe_logs { | |
aws rds describe-db-log-files --db-instance-identifier $1 | |
} |
This file contains hidden or 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
// Pro Football Reference | Current NFL Injuries | |
// https://www.pro-football-reference.com/players/injuries.htm | |
var elements = document.getElementById("div_injuries"); | |
var injuries = elements.querySelectorAll("td[data-stat='injury_class']"); | |
var seasonEnding = Array.prototype.slice.call(classes).filter(el => el.textContent == "I-R"); | |
console.log(injuries.length); | |
console.log(seasonEnding.length); |
This file contains hidden or 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 unicodedata | |
def asciify(string, encoding='latin-1'): | |
"""Given an string with bytes coming from a DB or other ill-developed data | |
extraction, cleanup and return an ASCII string free of accentuations. | |
>>> asciify('Ba\xc3\xba') | |
'Bau' | |
>>> asciify('Bau') | |
'Bau' |
This file contains hidden or 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
(defn square [x] (* x x)) | |
(println (take 25 (map square (range)))) |
This file contains hidden or 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
// Original code: | |
// https://github.com/rodolfoghi/learn-rust/tree/master/raspberrypi-projects/password_generator | |
// | |
use rand::Rng; | |
use std::io; | |
fn main() { | |
let chars = "abcdefghijklmnopqrstuvxz1234567890!@#$%&*()-+=?;:.><.\\|{}[]"; | |
println!("Password Generator"); |
OlderNewer