Skip to content

Instantly share code, notes, and snippets.

View denstream-io's full-sized avatar
💭
Numbers don't lie

Dennis 'Lucius' Chimezie denstream-io

💭
Numbers don't lie
View GitHub Profile

Set the base image to Ubuntu must be first instruction - use docker search to find images

FROM ubuntu # <image>
FROM ubuntu:latest # - <image>:<tag>
FROM ubuntu:precise (LTS)

Set the maintainer info

@denstream-io
denstream-io / 0 functions&&variables.py
Last active September 4, 2023 15:57
HarvardX CS50 [CS50P] Problem Sets 2022
# INDOOR
input_ = input() # Prompt User for input
output = input_.lower() # Convert input to lower case
print(output) # Display output on screen
# PLAYBACK
@denstream-io
denstream-io / hello.py
Last active June 20, 2022 15:42
Hello, world
def main():
name = input("What's your name? ")
print(hello(name))
def hello(to="world"):
return f"hello, {to}"
if __name__ == "__main__":
main()
@denstream-io
denstream-io / 0_python_email.md
Created July 18, 2022 22:31 — forked from nickoala/0_python_email.md
Use Python to send and receive emails

Use Python to:

  • send a plain text email
  • send an email with attachment
  • receive and filter emails according to some criteria
@denstream-io
denstream-io / hello.php
Last active September 10, 2022 00:14
hello world php
<?php
function main() {
$name = (string)readline("What's your name? ");
echo hello($name);
}
function hello(string $to="world") {
return sprintf('hello, %s', $to);
}
main()
@denstream-io
denstream-io / credit.php
Created March 11, 2023 06:02
Credit with PHP #CS50X Harvard
<?php
function main() {
$len = 0;
$divisor = 10;
$ccn;
// Query user for card details
do
{
@denstream-io
denstream-io / vanilla-js-cheatsheet.md
Created May 12, 2023 20:06 — forked from thegitfather/vanilla-js-cheatsheet.md
Vanilla JavaScript Quick Reference / Cheatsheet