Skip to content

Instantly share code, notes, and snippets.

import java.util.Scanner;
public class DistanceCalculation{
public static void main(String[] args){
//create scanner
Scanner scanner = new Scanner(System.in);
//input coordinates, use double&nextdouble
System.out.print("Enter value of x Coordinate for Point 1:");
double x1 = scanner.nextDouble();
@robonxt
robonxt / Installing the Pebble app on iOS with Sideloadly.md
Last active November 6, 2024 21:32
Installing the Pebble app on iOS with Sideloadly - Rebble (Now)Official Installation Guide by robonxt

NOTICE:

Rebble have an official official guide based on this, so please follow their guide on their website at help.rebble.io/sideload-ios-app.

Please direct your questions and suggestions to the helpful people in the official Rebble Discord Server

This guide is in maintenance mode. I am only keeping this guide up as a archive and for those who stumble upon it through old links.

Thank you for all the support, and long live Pebble and Rebble!

@LukeZGD
LukeZGD / ios-downgrade-dualboot.md
Last active April 20, 2025 11:45
Downgrade and dualboot status of almost all iOS devices

Downgrade and dualboot status of almost all iOS devices

UPDATED: 2025-04-04

@gipert
gipert / itunes-on-arch-linux-guide.md
Created May 10, 2020 00:49
iTunes on (Arch) Linux: installation guide

Prerequisites

  1. Enable the multilib repository by editing /etc/pacman.conf
  2. Install WineHQ and some other optional dependencies:
    $ pacman -Syu wine
    $ pacman -S --asdeps lib32-mpg123 lib32-gnutls {lib32-,}gst-plugins-base-libs \
                         lib32-alsa-plugins lib32-libpulse lib32-openal
    $ yay -S lib32-unixodbc # or your favourite AUR helper
  3. We'll install a 64-bit version of iTunes, so no need to set WINEARCH

How to use github as a maven repository

In this how-to it is being explained how to create a maven repository on github and how to use an existing one.

Creating a repository

  1. Clone your original project to a new local repository (change GROUP-NAME and PROJECT-NAME) git clone https://github.com/GROUP-NAME/PROJECT-NAME.git PROJECT-NAME-maven2

  2. Go to the clonned repository (use your PROJECT-NAME-maven2) cd PROJECT-NAME-maven2

{
"Website": [],
"default": ["inherit.allow-vpns", "minehq.vpn.bypass"]
}
{
"Website": [],
"default": ["inherit.epic"]
}
@dumptruckman
dumptruckman / ActionBarUtil.java
Created January 19, 2016 15:08
A simple utility class for sending action bar messages.
/* Copyright (c) dumptruckman 2016
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package net.dawnofages.util;
import net.minecraft.server.v1_8_R3.IChatBaseComponent;
import net.minecraft.server.v1_8_R3.IChatBaseComponent.ChatSerializer;
import net.minecraft.server.v1_8_R3.PacketPlayOutChat;
@fernandezpablo85
fernandezpablo85 / git-maven-howto.md
Last active September 22, 2024 11:36
how to create your own maven repository on github

How to create a maven repository for your github project step by step

Clone your project in a separate folder

(note: replace ORGANIZATION and PROJECT)

git clone git clone [email protected]:ORGANIZATION/PROJECT.git my-repository

Cd into it

@fkaa
fkaa / ShaderHelper.java
Created January 28, 2012 07:15
Loads a specified shader from "/minecraft/shaders/"
package net.minecraft.src;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.nio.IntBuffer;
import static org.lwjgl.opengl.GL11.*;
import static org.lwjgl.opengl.GL20.*;
import org.lwjgl.opengl.ContextCapabilities;