Skip to content

Instantly share code, notes, and snippets.

View LukeXF's full-sized avatar
💻
Getting that bread

Luke Brown LukeXF

💻
Getting that bread
View GitHub Profile
@LukeXF
LukeXF / ConvertRam.html
Created August 30, 2014 13:14
A simple Gist to convert ram.
<div class="tab-pane" id="ramconvert">
<h3>Convert RAM</h3>
<p>While working with server pretty much every day, RAM allocation becomes a largely used featured in the day to day running of servers. I have adapted this script to provide a simple and easily to use tool to convert from the 4th smallest RAM values.</p>
<div class="row">
<div class="col-md-10">
<script language="JavaScript">
<!--
function byteConverter(){
document.converter.kb.value = document.converter.byte.value / 1024
document.converter.mb.value = document.converter.byte.value / (1024*1024)
@LukeXF
LukeXF / MinecraftUUID.php
Created August 30, 2014 14:18
A script to get get the Minecraft UUID from HTML form
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
<link href="../assets/css/style.css" rel="stylesheet">
@LukeXF
LukeXF / BetterMinecraftUUID.php
Created August 30, 2014 14:43
A better script that actually loads each time rather than some of the time.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
<link href="../assets/css/style.css" rel="stylesheet">
<title> Minecraft UUID puller </title>
<link href='http://fonts.googleapis.com/css?family=Lato:300,400' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
@LukeXF
LukeXF / GalacticServerHoverHomepage.js
Created September 4, 2014 01:59
A mainly JS based Gist that will dynamically change content on the site and leave it on the last loaded hover of what was selected.
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function()
{
$(".icon1").hover(
function () {
$( "i#changei" ).removeClass( "fa-toggle-off" );
$(".change1").text("");
$(".achange1").text("");
$(".change1").append("Secure & Protection");
@LukeXF
LukeXF / Ilqno.markdown
Created October 20, 2014 21:17
An HTML/CSS email-friendly creation by Luke Brown

Minetract Portfolio Example

Animation using the isotope.js features. This example would show the users projects on their portfolio

A Pen by Luke Brown on CodePen.

License.

@LukeXF
LukeXF / NirvanaTwitter.php
Last active August 29, 2015 14:09
A simple Gist to load the latest five Twitters from the Twitter API using the PHP SDK by j7mbo. This loads the NirvanaMC Twitter API
<?php
// Sets the JSON file
header('Content-Type: application/json');
// TWITTER STATS
// Loads the Twitter SDK system for PHP
require_once('TwitterAPI.php');
// Create our Application instance that allows connecting to Twitter.
@LukeXF
LukeXF / json
Created November 18, 2014 11:10
Get dat JSON doe
// Load the reduced steam API
var loadsteam = function(){
$.getJSON('api.php', function(data){
/*
var items = [];
$.each( data, function( key, val ) {
items.push( "<li id='" + key + "'>" + val + "</li>" );
});
<script>
function ServerStatus(serverip){
$.getJSON('http://mcapi.ca/query/' + serverip + '/players', function(json){
if (json.status !== true) {
$('#players').html("0");
} else {
$("#players").html(json.players.online);
}
});
}
@LukeXF
LukeXF / responce-time
Last active August 29, 2015 14:14
Kyle I love you
<script src="//code.jquery.com/jquery-1.11.2.min.js"></script>
<script>
function loveFunction(serverip){
$.getJSON('http://api.luke.sx/webping/' + serverip, function(json){
if (json.status !== true) {
$('#love').html("0");
} else {
$("#love").html(json['response-time']);
}
});