Skip to content

Instantly share code, notes, and snippets.

View d3lta-v's full-sized avatar
🏠
Working from home

Pan Ziyue d3lta-v

🏠
Working from home
  • FourierIndustries LLP
  • Singapore
View GitHub Profile
@d3lta-v
d3lta-v / gist:2908435
Last active October 6, 2015 01:07
TechnoPunish Fire Edition: This is TechnoPunish Fire Source code. Feel free to edit it. :) WARNING: Needs CraftBukkit APIs!
package com.github.sammy0025.TechnoPunishFire;
import java.util.logging.Logger;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;
@d3lta-v
d3lta-v / gist:3003450
Last active October 6, 2015 13:58
YAML Bukkit.yml Configuration: This is a glitched bukkit.yml, sent for technical inspection.
# This is the main configuration file for Bukkit.
# As you can see, there's actually not that much to configure without any plugins.
# For a reference for any variable inside this file, check out the bukkit wiki at
# http://wiki.bukkit.org/Bukkit.yml
#
# If you need help on this file, feel free to join us on irc or leave a message
# on the forums asking for advice.
#
# IRC: #bukkit @ esper.net
# (If this means nothing to you, just go to http://webchat.esper.net/?channels=bukkit )
@d3lta-v
d3lta-v / gist:4131154
Created November 22, 2012 13:24
HTML for trying out JavaScript code
<html>
<body>
<script>
//You can employ full-fledged JavaScript right here
//You can insert your code in between the script tags
</script>
</body>
</html>
@d3lta-v
d3lta-v / gist:4419533
Created December 31, 2012 12:50
Xcode Objective C Notes compiled by me
//
//Code snippets I've compiled together about how stuff should be done in XC0de
//Copyright (c) 2012 SST & StatiX Industries, Some Rights Reserved.
//Protected under the Kompimi copyright standards (encouraged for any form of reuse, critisism)
//
//For the header file
//This is how you should make a proper header file in XC0de
#import <UIKit/UIKit.h>
@d3lta-v
d3lta-v / gist:4714505
Last active December 12, 2015 04:28
Quadratic Equation Solver v1.0 by sammy0025/Pan Ziyue, written in Java
//After compiling (product after compiling should be QuadEquations.class)
//Usage in the UNIX Terminal is:
//java QuadEquations a b c
//Where a, b and c are in the following equation aX^2+bX+c=0
import java.lang.Math;
import java.lang.Double;
class QuadEquations
{
@d3lta-v
d3lta-v / gist:4714580
Created February 5, 2013 13:52
Quadratic Equation Solver by sammy0025/Pan Ziyue (JavaScript version)
var a = prompt("Enter the first number (aX^2), a is most likely 1");
var b = prompt("Enter the second number (bX), b can be a negative number");
var c = prompt("Enter the third number, a constant (c).");
var numerator = -1*b+Math.sqrt(Math.pow(b, 2)-4*a*c);
var numerator2 = -1*b-Math.sqrt(Math.pow(b, 2)-4*a*c);
var denominator = 2*a;
var answer1 = numerator/denominator;
var answer2 = numerator2/denominator;
@d3lta-v
d3lta-v / gist:5143676
Created March 12, 2013 15:07
IMPROVED Quadratic Equation solver, displays the general formula and shows how to write it. Also, changed input method from arguments to console input.
package quadEquationISR;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class QuadEquationISR
{
/**
@d3lta-v
d3lta-v / gist:5143708
Last active December 14, 2015 20:28
Guessing game written in Java, free to distribute. This is just the main .java file though.
package guessingGame;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class GuessingGame
{
/**
@d3lta-v
d3lta-v / gist:5675972
Created May 30, 2013 06:05
Javascript Singaporean NRIC validity checker
//*****************************************************************
// Singaporean NRIC validity checker
// Copyright (c) Pan Ziyue (@sammy0025)
//*****************************************************************
var icArray=new Array(7); //Array for storing individual IC strings
var icArray2=new Array(7); //Array for storing individual IC ints
var icNo = prompt("Enter your NRIC:");
if (icNo.length!=9)
@d3lta-v
d3lta-v / T.E.R.0.M. Specs
Last active December 19, 2015 18:39
List of hardware I used in my server computer, the T.E.R.0.M.
****************************************************************************
T.E.R.0.M. SPEC SHEET
Updated 15/07/2013
****************************************************************************
Casing: Cooler Master Elite 342 (Mini-Tower)
PSU: Cooler Master Elite Power (400W)
CPU: Intel i5-3450 (LGA1155 Socket)
CPU Cooler: Cooler Master Hyper TX3
GPU: NVIDIA GT 640 (Palit 1024MB version)
Motherboard: Asus P8H61-M LX (H61 Chipset)