Skip to content

Instantly share code, notes, and snippets.

View ziizium's full-sized avatar

Habdul Hazeez ziizium

View GitHub Profile
@Kijimu7
Kijimu7 / MainMenu.fxml
Last active April 28, 2022 11:11
Exception in Application start method java.lang.reflect.InvocationTargetException
<?xml version="1.0" encoding="UTF-8"?>
<?import java.lang.*?>
<?import java.util.*?>
<?import javafx.scene.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<AnchorPane id="AnchorPane" prefHeight="200" prefWidth="320" xmlns:fx="http://javafx.com/fxml/1" fx:controller="controller.MainMenuController">
<children>

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

@quangnd
quangnd / reduceExamples.js
Last active November 24, 2023 19:57
Some examples about reduce() in Javascript
//Example 1 - Calculate average value of an array (transform array into a single number)
var scores = [89, 76, 47, 95]
var initialValue = 0
var reducer = function (accumulator, item) {
return accumulator + item
}
var total = scores.reduce(reducer, initialValue)
var average = total / scores.length
/*Explain about function
@nepsilon
nepsilon / git-change-commit-messages.md
Last active April 24, 2024 06:30
How to change your commit messages in Git? — First published in fullweb.io issue #55

How to change your commit messages in Git?

At some point you’ll find yourself in a situation where you need edit a commit message. That commit might already be pushed or not, be the most recent or burried below 10 other commits, but fear not, git has your back 🙂.

Not pushed + most recent commit:

git commit --amend

This will open your $EDITOR and let you change the message. Continue with your usual git push origin master.

@alexpchin
alexpchin / Setting_upa_new_repo.md
Last active April 25, 2024 15:27
Create a new repository on the command line

Setting up a new Git Repo

##Create a new repository on the command line

touch README.md
git init
git add README.md
git commit -m "first commit"

git remote add origin git@github.com:alexpchin/.git

@kshep
kshep / gist:3503798
Last active October 3, 2023 15:48
Show the last commit to each branch in a repo, sorted by date
% cd (your git repo)
% for remote in `git branch -r | grep -v master | grep -v develop`; do git checkout --track $remote ; done
# Once you have all branches....
% git for-each-ref --sort=-committerdate refs/heads/ --format='%(committerdate:short)%09 %(refname:short)%09 %(authorname)' | column -t
# ... or just show me the same info for all merged branches
// From http://baagoe.com/en/RandomMusings/javascript/
function Alea() {
return (function(args) {
// Johannes Baagøe <baagoe@baagoe.com>, 2010
var s0 = 0;
var s1 = 0;
var s2 = 0;
var c = 1;
if (args.length == 0) {