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
from rich.console import Console | |
from rich.panel import Panel | |
from rich.progress import Progress | |
from rich.columns import Columns | |
from rich.markdown import Markdown | |
from rich.table import Table | |
from rich import print | |
from rich.text import Text | |
from rich.json import JSON | |
from rich.prompt import Prompt, Confirm |
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 <stdio.h> | |
int main(int argc, char const *argv[]) | |
{ | |
int seconds, minutes, hours; | |
scanf("%d", &seconds); | |
hours = seconds / 3600; | |
minutes = (seconds % 3600) / 60; | |
seconds = (seconds % 3600) % 60; | |
printf("%d:%d:%d", hours, minutes, seconds); |
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 <stdio.h> | |
#include <string.h> | |
struct Student { | |
char name[100]; | |
int marks; | |
int roll; | |
float grade; | |
}; |
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 json | |
import re | |
import argparse | |
int_to_str_seperator = re.compile("([a-zA-Z]+)([0-9]+)") | |
parser = argparse.ArgumentParser() | |
parser.add_argument("molecular_formula",help="Give the molecular formula in the syntax 'C12|H12|OH1'") | |
args = parser.parse_args() |
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
:set number | |
:set relativenumber | |
:set autoindent | |
:set tabstop=4 | |
:set shiftwidth=4 | |
:set smarttab | |
:set softtabstop=4 | |
:set mouse=a | |
:set guicursor=n-v-c-i:ver1 | |
:set termguicolors |
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 numpy as np | |
from sklearn.model_selection import train_test_split | |
import pandas as pd | |
df = pd.read_csv( | |
'https://raw.githubusercontent.com/johnmyleswhite/ML_for_Hackers/master/02-Exploration/data/01_heights_weights_genders.csv') | |
df.head() | |
BinaryGenders = np.zeros(len(df)) |
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
package main | |
import ( | |
"database/sql" | |
"fmt" | |
"os" | |
_ "github.com/lib/pq" | |
"golang.org/x/crypto/bcrypt" | |
) |