Skip to content

Instantly share code, notes, and snippets.

View JosiasAurel's full-sized avatar
🏠
Working from home

Josias JosiasAurel

🏠
Working from home
View GitHub Profile
@JosiasAurel
JosiasAurel / pascal triangle.c
Created June 4, 2022 03:47
My simple implemetation of pascal's triangle in C
#include <stdio.h>
int fact(int n) {
return n == 0 || n == 1 ? 1 : n*fact(n-1);
}
int main(int argc, char** argv)
{
int n;
printf("Enter the value of n : ");
@JosiasAurel
JosiasAurel / tic tac toe.c
Created June 3, 2022 19:06
Just my implemetation of tic tac toe game
#include <stdio.h>
#include <stdlib.h>
static char grid[3][3];
static char player1 = 'O';
static char player2 = 'X';
int winner = 0;
void printGameGrid();
@JosiasAurel
JosiasAurel / windowsterminal.json
Created August 9, 2021 14:36
Windows Terminal
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions":
[
{
"command":
{
"action": "copy",
"singleLine": false
},
@JosiasAurel
JosiasAurel / fashion-mnist.ipynb
Created March 25, 2021 09:55
Fashion Mnist .ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JosiasAurel
JosiasAurel / tf-basics.ipynb
Created March 23, 2021 22:20
tf basics.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JosiasAurel
JosiasAurel / image-optimizer.py
Created March 21, 2021 14:10
Script to optimize all images in a directory
from PIL import Image
import PIL
import os
import time
print("Started")
print("Optimizing...")
start_time = time.time()
@JosiasAurel
JosiasAurel / index.html
Created October 16, 2020 12:10
Tic Tac Toe
<div id="errors" style="
background: #c00;
color: #fff;
display: none;
margin: -20px -20px 20px;
padding: 20px;
white-space: pre-wrap;
"></div>
<div id="root"></div>
<script>
numbers = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]
for num in numbers:
if num % 15 == 0:
print("Fizz Buzz")
elif num % 3 == 0:
print("Fizz")
elif num % 5 == 0:
print("Buzz")
else:
print(num)
_='_=%r;print (_%%_)';print (_%_)