Skip to content

Instantly share code, notes, and snippets.

View jamesxsc's full-sized avatar

James Conway jamesxsc

View GitHub Profile
@jamesxsc
jamesxsc / nios2_test_pattern.c
Last active January 23, 2025 20:03
A test program leveraging inputs and outputs on the DE-10 FPGA development board running a NIOS2 soft processor
//#ifdef NOTDEF
#include <sys/alt_stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include "altera_avalon_pio_regs.h"
#include "system.h"
#define LED_MASK 0b0000001111111111
#define HEX_MASK 0b01111111
import java.text.DecimalFormat;
class Scratch {
public static void main(String[] args) {
try {
int interestPercentage = Integer.parseInt(args[0]);
int repaymentPercentage = Integer.parseInt(args[1]);
double repaid = calculateTotalRepaid(interestPercentage, repaymentPercentage);
@jamesxsc
jamesxsc / enignames.txt
Last active June 27, 2021 12:43
Enigmatica 2 Expert Item Names
dan200's Head, dnaS
,Zucchini Seed
,Zucchini Fries
,Zucchini Bread
,Zucchini Bake
,Zucchini
,Zombie Seeds
,Zombie Jerky
,Zombie Head
,Zombie Generator
package uk.tethys.coronasafety;
import org.bukkit.Bukkit;
import org.bukkit.Sound;
import org.bukkit.entity.Player;
import org.bukkit.event.Listener;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.scheduler.BukkitRunnable;
import java.util.HashMap;
fff
@jamesxsc
jamesxsc / .about.png
Last active June 5, 2020 17:38
about
.about.png