Skip to content

Instantly share code, notes, and snippets.

View Sadin's full-sized avatar
👽
Go

Zach Snyder Sadin

👽
Go
View GitHub Profile
@Sadin
Sadin / guide.md
Created April 5, 2017 05:55
Get broadcom-wl working on Fedora.

sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

sudo dnf install -y akmods "kernel-devel-uname-r == $(uname -r)"

sudo dnf install -y broadcom-wl

sudo akmods

sudo reboot

@Sadin
Sadin / installing-oh-my-zsh-fedora.md
Last active April 4, 2018 20:14 — forked from jshcrowthe/installing-oh-my-zsh-fedora.md
Installing Oh My ZSH oh Fedora 25+

Installing oh-my-zsh on Fedora

Oh-my-zsh is an extension of the traditional z shell that is extensible via community created plugins (Plugins found here: oh-my-zsh github repo). It is, in my opinion, a breath of fresh air in comparison to the traditional bash shell.

DO THE FOLLOWING IN ORDER

Installing ZSH (using dnf)

The first step for this install is getting zsh we will do this via yum. From your terminal:

<21:54:50> "Kria": yo zach does this look right
<21:55:22> "Kria": it generates a character list of a specified amount of letters to later be used in the creation of a boggle board
<21:55:31> "Kria": char* Game::getLetters(int x){
char letters[x];
int random;
char vowelList[5] = "AEIOU";
char consList[21] = "BCDFGHJKLMNPQRSTVWXYZ";
int vowels = rand() % x + 1;
for (int i = 0;i<vowels;i++) {
random = rand() % 5;
public class Quiz
{
public static void main( String [] args )
{
String[][] cities = {{"New York", "LA", "San Francisco", "Chicago"},
{"Munich", "Stuttgart", "Berlin", "Bonn"},
{"Paris", "Ajaccio", "Lyon"},
{"Montreal", "Ottawa", "Vancouver" }};
// System.out.println( cities[3][2] );
<dallbee> Today, for the next 30 mins, you have your first learning task
<dallbee> we'll be loosely following: https://docs.python.org/3/reference/index.html
<dallbee> So your first task: Make a button which prints random strings to the command line
<dallbee> it should build on top of main.py
<dallbee> and you should have a "gen_random" function
<dallbee> which takes an argument of which random characters to use
<dallbee> and how long the string should be
(.venv) [sadin@localhost osc0]$ sudo pacman -S gtk3
warning: gtk3-3.18.9-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
Packages (1) gtk3-3.18.9-1
Total Installed Size: 67.37 MiB
Net Upgrade Size: 0.00 MiB
##
## Arch Linux repository mirrorlist
## Generated on 2016-03-10
##
## United States
Server = http://mirrors.abscission.net/archlinux/$repo/os/$arch
Server = http://mirrors.acm.wpi.edu/archlinux/$repo/os/$arch
Server = http://mirrors.advancedhosters.com/archlinux/$repo/os/$arch
Server = http://mirrors.aggregate.org/archlinux/$repo/os/$arch
@Sadin
Sadin / Error.txt
Last active February 26, 2016 02:53 — forked from Argygle/minesweeper
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
at Minesweeper.main(Minesweeper.java:14)
// Writing and Utilizing Methods & Classes Part 1: Student Class
// Zach Snyder
public class Student
{
// instance variable
private String name;
private String soc;
private double gpa;
Linux 4.2.3-300.fc23.x86_64 (localhost.localdomain) 02/02/2016 _x86_64_ (8 CPU)
09:59:56 PM CPU %usr %nice %sys %iowait %irq %soft %steal %guest %gnice %idle
09:59:56 PM all 1.40 0.02 10.55 0.25 0.00 0.05 0.00 0.00 0.00 87.72
09:59:56 PM 0 0.05 0.00 81.10 0.00 0.00 0.31 0.00 0.00 0.00 18.53
09:59:56 PM 1 2.10 0.03 0.74 0.45 0.00 0.01 0.00 0.00 0.00 96.67
09:59:56 PM 2 2.33 0.04 0.69 0.52 0.00 0.00 0.00 0.00 0.00 96.42
09:59:56 PM 3 2.40 0.03 0.61 0.31 0.00 0.00 0.00 0.00 0.00 96.65
09:59:56 PM 4 1.43 0.03 0.52 0.28 0.00 0.13 0.00 0.00 0.00 97.62
09:59:56 PM 5 1.05 0.01 0.30 0.28 0.00 0.00 0.00 0.00 0.00 98.36