Skip to content

Instantly share code, notes, and snippets.

View itsJarrett's full-sized avatar

Jarrett itsJarrett

View GitHub Profile
// ==UserScript==
// @name Upload CSV to Website
// @namespace jaboice.me
// @version 0.1
// @description Upload a CSV file to fill out a form and add items to cart
// @author JABOICE
// @match https://test.com/
// @grant none
// ==/UserScript==

Keybase proof

I hereby claim:

  • I am itsJarrett on github.
  • I am jarrett (https://keybase.io/jarrett) on keybase.
  • I have a public key whose fingerprint is 693C 72AE 1C9A BD6B 5204 3100 6549 5C01 9668 29AF

To claim this, I am signing this object:

Explaining git concepts

git

Git is a version control system used for tracking changes to files.

Initializing a git repository

To utilize the git version control system, one must first initialize a repository; a repository can be initialize by the command git init in your git console. To ensure a file is being tracked by git, one must add files to the repository by the command git add <FILENAME HERE>, this will stage the file in the current working branch.

@itsJarrett
itsJarrett / workshop-instructions.md
Last active September 27, 2018 02:19
Version Control Systems: Git - Workshop Instructions
  1. Navigate to the repo on GitHub
  2. Click on the 'Fork' button in the top right corner. GitHub will take some time to fork the repo.
  3. Navigate to the forked repo. Should be like https://github.com/<your_github_username>/
  4. Click on the green color 'Clone or download' button
  5. Copy the command given in the text box. Should be like https://github.com/<your_github_username>/.git
  6. Clone it on your local machine. git clone https://github.com/<your_github_username>/.git
  7. Navigate to the cloned directory cd
  8. List down the Remotes of the repo.
@itsJarrett
itsJarrett / code-of-conduct.md
Last active October 10, 2018 16:33
Open Source LB - Code of Conduct

Creating a Culture of Innovation

We aspire to create a culture where people work joyfully, communicate openly about things that matter, and provide great services for the people of the world. We would like our team and our community to reflect the diversity of our campus. We want to foster diversity of all kinds—not just the classes protected in law. Diversity fosters innovation. Diverse teams are creative teams. We need a diversity of perspective to create solutions for the real and urgent challenges we face.

This is the Open Source LB Code of Conduct. We follow all Equal Employment Opportunity laws, and our expectations are higher. We expect everyone we work with to adhere to the, even if they do not claim membership. We expect everyone who participates, attends Open Source LB events and meetings, or participates in online forums or other virtual collaboration to follow this code of conduct and the laws governing the community. This applies to all of our methods of communication: chatrooms, com

@itsJarrett
itsJarrett / Heli Cam with Locations!
Last active August 21, 2020 13:40
Title says all. Here is a screenshot >> https://i.imgur.com/H1zqgGf.jpg
-- FiveM Heli Cam by mraes, version 1.3 (2017-06-12)
-- Modified by rjross2013 (2017-06-23)
-- Further modified by Loque (2017-08-15) with credits to the following for tips gleaned from their scripts: Guadmaz's Simple Police Searchlight, devilkkw's Speed Camera, nynjardin's Simple Outlaw Alert and IllidanS4's FiveM Entity Iterators.
-- Config
local fov_max = 80.0
local fov_min = 5.0 -- max zoom level (smaller fov is more zoom)
local zoomspeed = 3.0 -- camera zoom speed
local speed_lr = 4.0 -- speed by which the camera pans left-right
local speed_ud = 4.0 -- speed by which the camera pans up-down
@itsJarrett
itsJarrett / Karel_Matrix.java
Last active September 29, 2016 13:27
Karel Matrix
public void coordinateChange(int xDestination, int yDestination) {
Direction initialDirection = getCurrentDirection();
int xDifference = xDestination - xCoordinate;
int yDifference = yDestination - yCoordinate;
if(xDifference > 0) {
faceThisDirection(East);
}
else if(xDifference < 0) {
@itsJarrett
itsJarrett / Karel_Checks.java
Created September 21, 2016 13:22
Karel Checks
public boolean isThereABotOnRtAndOnlyOneBeeperOnLeft() {
turnLeft();
move();
if (nextToABeeper()) {
pickBeeper();
if (nextToABeeper()) {
putBeeper();
turnAround();
move(2);
turnLeft();
@itsJarrett
itsJarrett / Karel_maze.java
Created September 21, 2016 04:27
Karel Maze Walker :)
public void mazeWalker() {
while (!facingEast()) {
turnLeft();
}
while (!nextToABeeper()) {
if(!frontIsClear()) {
turnLeft();
} else {
move();
turnRight();
@itsJarrett
itsJarrett / Line_Sorter.java
Last active September 21, 2016 04:16
Karel Line Sorter :)
public void lineSorter() {
int lineAmount = 0;
turnRight();
while (nextToABeeper()) {
lineAmount++;
move();
}
int lineHeigths[] = new int[lineAmount];
turnAround();
for (int i = 0; i < lineAmount; i++) {