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 / index.php
Created February 19, 2015 23:27
How I load the current song on my Twitch Stream
<script src="//code.jquery.com/jquery-1.11.2.min.js"></script>
<style type="text/css">
body {
width: 305px;
overflow: hidden;
max-height: 30px;
height: 27px;
}
</style>
<script type="text/javascript">
@LukeXF
LukeXF / api.luke.sx.md
Last active August 29, 2015 14:14
api.luke.sx examples

The Web API system - api.luke.sx

Minecraft UUID:

  • This you can be used to view the uptime of all Mojang related servers. I have combined this with the server checker to add a more diverse error reporting in some of my projects. Quite useful if you wish to see what is on fire at Mojang.

Minecraft Skin Viewer:

  • For including a visual representation of the user on forums and leaderboards of the players skin. Sizable from 20-250px for head, 70-250px for skins for maximum flexibility.

Minecraft Server Query:

@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']);
}
});
<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 / 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>" );
});
@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.

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 / Ilqno.markdown
Created October 20, 2014 21:17
An HTML/CSS email-friendly creation by Luke Brown
@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 / 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>