Skip to content

Instantly share code, notes, and snippets.

View eric-unc's full-sized avatar
💭
Student

Eric Schneider eric-unc

💭
Student
View GitHub Profile
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"profiles":
@eric-unc
eric-unc / setup.sh
Last active January 20, 2020 20:35
echo "set number" > /usr/share/vim/vimrc # creates/edits file, sets line numbers
echo "set tabstop=4" >> /usr/share/vim/vimrc # sets tab length to 4
echo "set shiftwidth=4" >> /usr/share/vim/vimrc # ^ cont.
apt update # updates Ubuntu; needed to install tmux
apt install tmux
tmux
# This .gitignore file should be placed at the root of your Unity project directory
#
# Get latest from https://github.com/github/gitignore/blob/master/Unity.gitignore
#
/[Ll]ibrary/
/[Tt]emp/
/[Oo]bj/
/[Bb]uild/
/[Bb]uilds/
/[Ll]ogs/
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"profiles":
@eric-unc
eric-unc / dynamic.c
Last active February 27, 2020 04:50
/**
* This program's purpose is to demonstrate fundamental operations
* around dynamic memory w/ malloc, calloc, free, and realloc
*
* This was an in-class assignment made by Professor Kris Jordan, filled in by me. It's here just for reference.
*/
#include <stdio.h>
#include <stdlib.h>
// stdlib includes malloc, calloc, free, and realloc
// PID: 730314648
// I pledge the COMP211 honor code.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define ARRAY_SIZE 10000
int findlength(char *str);
// This program will convert a "minifloat" in the format of 8 bits into decimal representation, assuming a -3 exponent bias.
// For example, this will convert 01011001 to 6.25.
// THIS PROGRAM DOES NOT COVER SPECIAL CASES! I'm too lazy to add this, I spent enough time making this already.
// Author: Eric Schneider
package main
import (
"bufio"
"fmt"
"math"

Great ideas

(Feel free to ignore these, they are with few exceptions awful.)

  1. A voting system for playing music at a party (decent hackathon idea from 2/24).
  2. NSFW video game without malware (really awful idea from NC state friend).
  3. A Java library letting you do absurb things with Java Reflection, such as running a random static method (ridiculous idea, but would be cool to get experience making a library, using gradle, learning an API, etc).
  4. A universal music listener, like YouTube + Spotify + Apple Music + Soundcloud (decent idea).
  5. A tool that uses the laptop's camera to follow a pencil to generate notes automatically on the computer (decent idea but difficult to implement, also not necessarily more useful than CamScanner).
  6. Tarheelinder (name pending). A dating site for UNC students (not a great idea, dating sites already exist and have location settings).
  7. A hub for all UNC classes, with links to GroupMes, syllabuses, Piazza, information of some sort (decent idea, but hard to get people
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'airblade/vim-gitgutter'
Plugin 'tpope/vim-surround'
class Problem {
public static void main(String[] args) {
int x = 0;
int y = 5;
int z = 1;
x++;
y -= 3;
z = x + z;
x = y * z;
y %= 2;