Skip to content

Instantly share code, notes, and snippets.

View BrandonDyer64's full-sized avatar

Brandon Dyer BrandonDyer64

View GitHub Profile
@BrandonDyer64
BrandonDyer64 / AJAJ.java
Created April 25, 2016 15:44
Async Java and JSON. This is an AJAX like class for Android used to POST to servers.
import android.os.AsyncTask;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.ResponseHandler;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import java.util.Arrays;
import java.util.Random;
public class MLP {
public static final Random random = new Random(Driver.SEED + 1);
public static class MLPLayer {
float[] output;
<?php
include("../../bin/do_not_change/standard_validation_regex.php");
$table_type = "master_id_with_auto";
unset($field);
unset($index);
$table = "${master}_note";
<?php
include("../../bin/do_not_change/standard_validation_regex.php");
unset($field);
unset($index);
$table = "${master}_document";
$table_type = "master_id_with_auto";
<?php
include("../../bin/do_not_change/standard_validation_regex.php");
unset($field);
unset($index);
$table = "${master}_status";
$thing_display = preg_replace("/_/", " ", $table);
<?php
include("../../bin/do_not_change/standard_validation_regex.php");
unset($field);
unset($index);
$table = "${master}_status_update";
#!/bin/sh
echo "Installing"
wget -q -O build https://gist.githubusercontent.com/BrandonDyer64/f08efbfd4770204d255c03a1e6129a44/raw/build
echo "Setting perms"
sudo chmod -x build
sudo chmod 775 build
sudo chown apache.webadm build
echo "Finished Installation"
sudo ./build --update
#!/bin/sh
create_script_version="1.2.0"
# Version
if [ "$1" == "--version" ]
then
echo "$create_script_version"
exit 0
fi
@BrandonDyer64
BrandonDyer64 / build
Last active April 6, 2018 20:40
WM Table Build Script
#!/bin/sh
# A script to make our lives easier
# Place this script into the table_config_files directory of any WM project.
build_script_version="2.4.0"
# Version
if [ "$1" == "--version" ]
then
echo "$build_script_version"
/* Material Colors */
:root {
--blue: #2196F3; --blue-light: #BBDEFB; --blue-dark: #1976D2;
--light-blue: #03A9F4; --light-blue-light: #B3E5FC; --light-blue-dark: #0288D1;
--blue-gray: #607D8B; --blue-gray-light: #CFD8DC; --blue-gray-dark: #455A64;
--indigo: #3F51B5; --indigo-light: #C5CAE9; --indigo-dark: #303F9F;
--purple: #9C27B0; --purple-light: #E1BEE7; --purple-dark: #7B1FA2;
--deep-purple: #673AB7; --deep-purple-light: #D1C4E9; --deep-purple-dark: #512DA8;
--pink: #E91E63; --pink-light: #F8BBD0; --pink-dark: #C2185B;
--red: #F44336; --red-light: #FFCDD2; --red-dark: #D32F2F;