Skip to content

Instantly share code, notes, and snippets.

View codistwa's full-sized avatar

Codistwa codistwa

View GitHub Profile
@codistwa
codistwa / loops.c
Last active February 23, 2022 15:25
Course source code: https://codistwa.com/guides/loops. More courses on https://codistwa.com
// ============================================================
// Simple for loop
// ============================================================
int fruits [3] = {1, 2, 3};
for (int i = 0; i < 3; i++)
printf("%d\n", fruits[i] * 2);
// ============================================================
// ============================================================
// Recursion with one parameter
// ============================================================
const factorial = (num) => {
if (num === 1) {
return 1;
}
return num * factorial(num - 1);
@codistwa
codistwa / sets.py
Last active February 23, 2022 15:24
Course source code: https://codistwa.com/guides/sets. More courses on https://codistwa.com
# ============================================================
# Definition
# ============================================================
set([0, 1, 2, 3])
# ============================================================
# Add an item
# ============================================================
// ============================================================
// Definition of a variable
// ============================================================
const welcome = 'Hello';
console.log(typeof(welcome)); // string
// ============================================================
// Types
// ============================================================
@codistwa
codistwa / fraud-detection.ipynb
Created December 21, 2022 16:02
Machine Learning Project : Credit Card Fraud Detection
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.