Skip to content

Instantly share code, notes, and snippets.

View CodeZombie's full-sized avatar
🌵

Jeremy Clark CodeZombie

🌵
View GitHub Profile
@CodeZombie
CodeZombie / asp.net_core_2019.txt
Last active November 7, 2019 20:39
ASP.Net CORE 2019 Quick setup
Add the following line to the ConfigureServices() in startup.cs:
services.AddMvc(option => option.EnableEndpointRouting = false);
In the Configure() method, remove the 'app.UseEndpoints()' call.
Replace that line with:
app.UseMvcWithDefaultRoute();
@CodeZombie
CodeZombie / e-step-calibration.txt
Created November 7, 2019 04:30
e-step calibration tutorial
Make a mark on your filament from some physical reference point.
Now extrude 100mm of filament.
Make a new mark on the filament from the same reference point.
Measure the distance between the two marks. This value will be x.
Your new e-steps/mm will be calculated with the following formula:
(100 / x) * <Your current e-steps/mm>
@CodeZombie
CodeZombie / multithread.c
Created November 6, 2019 23:43
File reading/parsing and Multithreading in Posix C
/*
Assignment Two
SYST30102 - Operating System Analysis and Design
Jeremy Clark, 2019
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
@CodeZombie
CodeZombie / part_a.c
Created October 3, 2019 22:43
forks_and_pipes
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
int main(int arc, char *argv[]) {
int fork_a = fork();
if(fork_a < 0) {
@CodeZombie
CodeZombie / 1.json
Last active April 15, 2019 00:46
pawfect_pairs_profile_data
{
"id": 1,
"name": "Puff",
"age": "4",
"breed": "Pitbull",
"long": -79.798302,
"lat": 43.325989,
"likes_you": false,
"picture": ["https://i.imgur.com/xAkHLcx.jpg", "https://i.imgur.com/eBspIMw.jpg", "https://i.imgur.com/5No83ys.jpg", "https://i.imgur.com/x0JqbWK.jpg", "https://i.imgur.com/OeO1TZr.jpg"]
}
@CodeZombie
CodeZombie / guide.txt
Last active May 14, 2020 16:29
React Native with React-Navigation, Windows 10 Setup Guide.
How to setup React Native and React-Navigation on your stupid Windows machine:
March 22nd, 2019
Step One: Dependencies
Get choco.
Next, install YARN on your system. This will streamline a lot of the process. Facebook forgets to mention
it but it makes your life a lot easier:
@CodeZombie
CodeZombie / ConWin.cpp
Last active March 19, 2019 23:44
rough console windowing system
/***************************************
* CONWIN: The CONsole WINdowing system
*
* Useful for making basic visual interfaces
* within limited console windows.
*
* Created March 2019, Jeremy Clark
* ****************************************/
namespace ConWin {
@CodeZombie
CodeZombie / Mrot.cpp
Created February 16, 2019 03:12
MROT: single-pin multiplex-friendly debounced rotary encoder library for arduino
/* Rotary encoder handler for arduino.
*
* Copyright 2011 Ben Buxton. Licenced under the GNU GPL Version 3.
* Contact: bb@cactii.net
*
*/
#include "Arduino.h"
#include "Mrot.h"
@CodeZombie
CodeZombie / entity_manager_subdivisions.js
Created November 24, 2018 22:23
ACID entity manager with subdivision collision and entity management. Doesnt quite work 100% yet but im storing this here just in case.
var Acid = Acid||{};
Acid.EntityManager = (function() {
var entities = []; //[x % 32][y % 32];
var subdivision_size = 32;
var IDIterator = 0;
return{
addEntity : function(entity_) {
if(entities[Math.floor(entity_.x % subdivision_size)] == undefined) {
@CodeZombie
CodeZombie / main.java
Created November 20, 2018 19:47
Reading and Writing Files Asynchronously in Android
package whatever.dude.who.cares;
import android.app.Activity;
import android.os.AsyncTask;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;
import android.widget.Toast;
import java.io.BufferedReader;