Skip to content

Instantly share code, notes, and snippets.

View Redeem-Grimm-Satoshi's full-sized avatar
🏠
Working from home!

Redeem Grimm Redeem-Grimm-Satoshi

🏠
Working from home!
View GitHub Profile
@Redeem-Grimm-Satoshi
Redeem-Grimm-Satoshi / shutdown.jl
Last active December 30, 2019 15:37
Platform Agnostic Shutdown Snippet Written In Julia
---
title: shutdown
tags: shellcommand,advance
---
Shutdown computer in a duration given by the user and message to be displayed stating the reason for shutdown.
Use variable `Sys.KERNEL` to handle differences between operating systems.
Use `@static` macro at beginning of expression for mutually exclusive subsets of isunix (Optional).
Use `run` function which take an object of type `osCommand` defined by enclosing a command string in backticks and execute
@Redeem-Grimm-Satoshi
Redeem-Grimm-Satoshi / download.jl
Last active January 14, 2020 20:35
Download Files On The Internet Using HTTP In Julia
# Author: Redeem Grimm
# Name : Download
# Purpose: Download Files On The Internet Using HTTP
using HTTP
function download(url,fileName)
HTTP.download(url,fileName)
end
@Redeem-Grimm-Satoshi
Redeem-Grimm-Satoshi / RPS.c
Created March 25, 2020 17:39
Rock-Paper-Scissor Game Written In C
/**
*Author: Redeem Grimm
*File Name: RPS.c
*Purpose: Play Rock, Paper, Scissors with the user
*
*/
#include <stdio.h>
@Redeem-Grimm-Satoshi
Redeem-Grimm-Satoshi / LakeLazyDays.c
Created March 25, 2020 17:46
Temperature And Suitable Sporting Activity
/**
*Author: Redeem Grimm
*File Name: LakeLazyDays.c
*Purpose: Tells The Sporting Activity Suitable For A Certain Temperature
**/
#include<stdio.h>
int main(){
@Redeem-Grimm-Satoshi
Redeem-Grimm-Satoshi / PowersOf2.c
Created March 25, 2020 17:51
Compute Powers Of 2
/**
*Author: Redeem Grimm
*File Name: PowersOf2.c
*Purpose: Computes The Powers Of Two
**/
#include<stdio.h>
int main(){
//variables
@Redeem-Grimm-Satoshi
Redeem-Grimm-Satoshi / Quadratic.c
Created April 23, 2020 15:37
Solve Quadratic Equation Using Numerical Approach
/*
Author: Redeem Grimm
Date: April 20
Purpose: Solves Quadratic Equation Using Numerical Approach
*/
//variable declaration
float a,b,c,rRoot,root1,root2,discriminant,compute1,compute2;
@Redeem-Grimm-Satoshi
Redeem-Grimm-Satoshi / GuessingGame.c
Created April 23, 2020 19:57
Play Guessing With Your Computer!
/*
Author: Redeem Grimm.
Date: Can't Remember, But Wrote This Code Before The Pandermic.
Purpose: Play Guessing Game Against The Computer
*/
#include<stdio.h>
#include<stdlib.h>
int main(){
//random num generator