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 / 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 / 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 / functions.php
Last active August 29, 2015 14:22
Jleeto
<?php
/**
* convert each of the APIs from JSON to Array
* @param string
* @return array
*/
function convertAPI($url) {
$api = $url;
$api_response = file_get_contents($api); // get content of url
@LukeXF
LukeXF / functions.php
Created June 27, 2015 22:21
A PHP Test - Complete the functions
<?php
// Testing
// please fill-in the body of the functions
// using methods to produce the suggested output
/* config */
$db['host'] = "localhost";
$db['name'] = "luke_lsm";
$db['user'] = "luke_lsm";
@LukeXF
LukeXF / gist:a785b395be0a784f43a4
Created June 27, 2015 22:31
A PHP skill test
<?php
// please fill-in the body of the functions
// using methods to produce the suggested output
/* function tests */
//echo remove_nonAtoZ("BA'3Ndf$%^A&*(nN)A")."</br>"."</br>";
//echo first_char_caps('TEST DATA bleh Orange')."</br>"."</br>";
//echo date_8_hours_ago()."</br>"."</br>";
//echo table_columns(array('apple', 'orange', 'monkey', 'potato', 'cheese', 'badger', 'turnip'), 2)."</br>"."</br>";
//
@LukeXF
LukeXF / csgo.php
Last active August 29, 2015 14:24
CSGO Store CSS - http://demo.luke.sx/csgo/
<html>
<head>
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
<link href='//fonts.googleapis.com/css?family=Open+Sans:700,400|Roboto:400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.js"></script>
<link rel="stylesheet" type="text/css" href="style.css">
<?php
// Handles the site functions
class Accounts extends siteFunctions
{
/**
* load all Instagram accounts that belong to the logged in user
*
* @param integer session id
@LukeXF
LukeXF / boats.json
Last active November 4, 2017 22:13
A big list of boats
{
"AB Inflatables": {},
"ALLcraft": {},
"AMF Alcort": {},
"Abbott Boats": {},
"Able": {},
"Achilles Inflatable Craft": {},
"Action Craft Boats": {},
"Action Marine Inc.": {},
"Active Thunder Boats": {},
@LukeXF
LukeXF / test.json
Last active November 5, 2017 06:14
{
userId: "",
name: "",
make: "",
model: "",
year: 2001,
value: 1000,
type: "",
text: "",
photos: ["url", "url"],
<h3>Recently Added Boats</h3>
<h6 class="hidden-sm-up swipe-to-see-more">Swipe to see more</h6>
<div class="owl-carousel owl-theme">
{{#each config.homePageBoats}}
<div class="item">
<a href="listing/{{this.uniqueId}}">