Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Wafelack's full-sized avatar
👨‍💻
I make computer beep boop beep beep boop.

Wafelack Wafelack

👨‍💻
I make computer beep boop beep beep boop.
View GitHub Profile
@Wafelack
Wafelack / wngbuild.md
Last active October 23, 2020 14:52
Wng build semantic

Build.py

from wngbuild import * # Import all from wngbuild library

build = BuildProfile(files="src/*.c",output="build/custom/prog.exe" ); # setup the files to compile and the output file
build.cc = "C:\MinGW\bin\gcc.exe" # optional, by default "gcc" 
build.flags = "-W -Wall -Werror -Wextra" # optional

build.run() # run the compilation command
@Wafelack
Wafelack / wscript.md
Created October 7, 2020 11:18
wscript language syntax
fun foo(a: number, b: string) : string => {
    var moo = b, ": ", a;
    return moo;
}
$ Some comment
var titi = 0; $ number
for i (0;55;1) {
   moo += i;
}
@Wafelack
Wafelack / cloner.rs
Created August 10, 2020 12:33
github_cloner
use std::process::Command;
// Declaring public function clone_from_github
pub fn clone_from_github(repo: &str) /* Taking one paramater (a string slice) */ {
let mut full_link = String::from("https://github.com/"); //Declaring a new variable of type String that is mutable
full_link.push_str(repo); // Adding repo name at the end of the string
Command::new("git") //running git command