Skip to content

Instantly share code, notes, and snippets.

View djpeach's full-sized avatar
💻
Working

Daniel Peach djpeach

💻
Working
  • Greenlight Financial Technology
  • Indiana, United States
View GitHub Profile
@djpeach
djpeach / boilermake_2018_ideas.md
Created September 30, 2018 22:08
Ideas for apps we could do Boilermake 2018

StudyUp

  • Very similar to Quizlet
    • allows users to mark questions with varying flags
    • provides means of public sourcing official class notes
    • offline study
    • voice input? (with options)
  • Simple API?
    • Most logic would be on the front end
  • Mobile app needed
@djpeach
djpeach / Int.java
Last active November 19, 2018 03:47
STABLE Selection Sort that uses swapping
package com.danielpeach.S02_sorting.L02_selection;
public class Int {
private static int cP;
public int v;
public int p;
public Int(int v) {
@djpeach
djpeach / Dictionary.txt
Created November 20, 2018 19:22
Hashing program for 362
the
of
and
a
to
bb
in
is
just
j
@djpeach
djpeach / HackathonList.md
Created January 11, 2019 14:49
List of potential hackathon projects

Potential projects

  • Club Manager

    Clubs can be created, managed, and interact with members and admin staff.

  • Study Up (take two)

    Use firebase, much easier

@djpeach
djpeach / shell.c
Last active February 6, 2019 14:49
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#define MAX_LINE 80
int main(void) {
char *args[MAX_LINE/2 + 1]; // an array of 41 pointers to character arrays
int should_run = 1;
@djpeach
djpeach / functions.js
Last active March 1, 2019 14:27
Testimonials Slider
$('.testimonial-slider').slick({
dots: true,
infinite: true,
autoplay: true,
autoplaySpeed: 5000,
arrows: true,
appendArrows: $('.testimonial-slider-footer'),
prevArrow: "<button type='button' class='slick-arrow prev-arrow'><i class='fa fa-angle-left' aria-hidden='true'></i></button>",
nextArrow: "<button type='button' class='slick-arrow next-arrow'><i class='fa fa-angle-right' aria-hidden='true'></i></button>"
});
#include <iostream>
#include <queue>
#include <cctype>
int main (int argc, char *argv[]) {
if (argc < 2) {
std::cout << "please provide an expression" << std::endl;
return -1;
}
@djpeach
djpeach / CMakeLists.txt
Created July 15, 2019 16:16
Default cmakelists for sfml pi dev
cmake_minimum_required(VERSION 3.7)
project(project_name LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(SFML_DIR "~/lib/SFML")
find_package(SFML 2.5.1 COMPONENTS graphics audio REQUIRED)
cmake_minimum_required(VERSION 3.7)
project(game LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(SFML 2.5.1 COMPONENTS system window graphics audio network REQUIRED)
#we add the executable of the program

DO NOT skip the MinGW or SFML steps, but any other steps you should be fine to skip as long as you have done them before. I don't recommend it though. For example, you may want to uninstall CMake and reinstall it, etc.

Install Git Bash

  • From here: https://git-scm.com/download/win
  • Run, and proceed throught install steps Be sure to select the option "Use Git and optional Unix tools from Command Prompt"
  • Do not change any other values
  • Git Bash will henceforth be called the terminal
  • Pin Git Bash to taskbar