Skip to content

Instantly share code, notes, and snippets.

View byronwade's full-sized avatar
🏠
Working from home

Byron Wade byronwade

🏠
Working from home
View GitHub Profile
@byronwade
byronwade / gist:6260300
Created August 18, 2013 07:01
can one of you point me in the right direction, ok so i want to make this script upload more then one file and have more checks also im trying to figure out hoe to sort out category's for each of the photos so that when i have to go threw the photos later to make sure there are no inappropriate things uploaded how would i do this to make it easi…
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>Thorbis | Pictures</title>
<link rel="shortcut icon" href="bin/favicon.ico" />
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,600,700" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="bin/lightbox/lightbox.css" />
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,600,700" rel="stylesheet" />
@byronwade
byronwade / index.php
Created August 19, 2013 23:31
i was wondering how i could add a scoring system to this stand-alone script for the game snake! im wanting to be able to let users input there username at the end and have a high score list set up next to the game table! how could i do this efficiently with the code i have set up here? the game is displayed here http://www.thorbis.com/snake/ can…
<!-- Lets make a simple snake game -->
<canvas id="canvas" width="750" height="300"></canvas>
<script>
$(document).ready(function(){
//Canvas stuff
var canvas = $("#canvas")[0];
var ctx = canvas.getContext("2d");
var w = $("#canvas").width();
var h = $("#canvas").height();
@byronwade
byronwade / gist:6346689
Created August 26, 2013 21:08
ok my footer link wont let me click on it can someone help! this is the live view: http://www.thorbis.com/beta/mytemplates/Rejoice/#
<html>
<head>
<link rel="stylesheet" href="css/thorbis_style.css" type="text/css">
<link rel="stylesheet" href="css/thorbis_fonts.css" type="text/css">
<link rel="stylesheet" href="css/animation.css" type="text/css"><!--[if IE 7]>
<link rel="stylesheet" href="css/thorbis_fonts-ie7.css"><![endif]-->
<nav id="nav">
<ul>
<li class="floatleft"><a href="#" class="color color-grey medium thorbis-menu"></a></li>
<li><a href="http://facebook.com/thorbisinc" class="color color-grey medium thorbis-facebook"></a></li>
@byronwade
byronwade / gist:6374295
Last active December 21, 2015 22:19
what i want to do is give EACH person there OWN 4 digit code that increments by 1 every time someone NEW signs up and it starts at 0001 and ends at 9999 how can i do this with the script i have?
<?php
$host = "**********"; // Host firstname
$name = "****************"; // Mysql userfirstname
$password = "***********"; // Mysql password
$db_name = "************"; // Database firstname
$tbl_name = "users"; // Table firstname
// Connect to server and select database.
mysql_connect("$host", "$username", "$password") or die("cannot connect");
mysql_select_db("$db_name") or die("cannot select DB");
// Get values from form
@byronwade
byronwade / gist:6518000
Last active December 22, 2015 19:09
why is my list not sorting
<!--/*****************************************************************************/
/*** Blog 1.0 by Byron Wade */
/*** www.thorbis.com | bcw1995@gmail.com */
/*** Follow Me On Twitter At @Thorbis */
/*** NO modifications of this script can be done without consulting me first! */
/*******************************************************************************-->
<!DOCTYPE html>
<html>
<head>
<input class="" type="text" value="Search" id="search">
<!--/*****************************************************************************/
/*** Blog 1.0 by Byron Wade */
/*** www.thorbis.com | bcw1995@gmail.com */
/*** Follow Me On Twitter At @Thorbis */
/*** NO modifications of this script can be done without consulting me first! */
/*******************************************************************************-->
<!DOCTYPE html>
<html>
<head>
<?php
$con=mysqli_connect("##########","thorbis","###############","thorbis");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
date_default_timezone_set('America/New_York');
?>
<?php
<?php
$con=mysqli_connect("##########","blogthorbis","##########","blogthorbis");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
date_default_timezone_set('America/New_York');
?>
<?php
<?php
$con=mysqli_connect("############","blogthorbis","##############","blogthorbis");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
date_default_timezone_set('America/New_York');
?>
<!DOCTYPE html>