Skip to content

Instantly share code, notes, and snippets.

View unisys12's full-sized avatar

Phillip Jackson unisys12

View GitHub Profile
@unisys12
unisys12 / gist:6b57fcb318317d0716ca
Created July 14, 2014 01:54
AssHat Config for TravisCI
<?php
$config = [
'css' => [
'build_path' => __DIR__ . '/../build/css',
'public_path' => __DIR__ . '/css/',
],
'js' => [
'build_path' => __DIR__ . '/../build/js',
@unisys12
unisys12 / gist:4084e1042c780f48cab7
Created July 17, 2014 16:43
PHP.INI for PHPNG installation
max_execution_time=600
memory_limit=128M
error_reporting=0
display_errors=0
log_errors=0
user_ini.filename=
realpath_cache_size=2M
cgi.check_shebang_line=0
zend_extension=opcache.so
@unisys12
unisys12 / Preferences.Sublime-Settings
Created July 27, 2014 14:08
Sublime Text User Settings
{
"color_scheme": "Packages/Color Scheme - Default/Monokai Bright.tmTheme",
"font_size": 10,
"spell_check": true,
"caret_style": "phase",
"line_padding_top": 2,
"line_padding_bottom": 2,
"bold_folder_labels": true,
"trim_trailing_white_space_on_save": true,
"remember_open_files": false,
@unisys12
unisys12 / console_output.bash
Created July 17, 2016 16:03
Nodejs POST Request Error
# bot.js not included here. starts to whole process. Just shows process has started.
Logging from bot.js
# Data sample grabbed from line 23 of logs.js
{"_id":"204255289342427136","server":"FFC_Test_Server","channel":"general","author":"Unisys1
2","author_id":"154928746636378112","message":"test message to MongoDB Server using Mongoose
","mentions":[],"timestamp":1468768655859}
# Line 52 of logs.js
Writing the data to the request
@unisys12
unisys12 / sortCharacter.js
Created March 13, 2017 12:26
Sorting Characters Based on Date Last Played
// Edited character summary object returned from Bungie API
var characters = [
{
"characterBase": {
"membershipId": "4611686018431328330",
"membershipType": 1,
"characterId": "2305843009319995052",
"dateLastPlayed": "2017-03-13T01:18:03Z",
"minutesPlayedThisSession": "57",
"minutesPlayedTotal": "19702",
@unisys12
unisys12 / Vagrantfile
Last active August 20, 2017 21:23
Vagrant config for private project
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
@unisys12
unisys12 / index.rb
Created October 12, 2019 16:28
Using MongoDB as a storage vessel for the D2 MobileWorldContentFile, I wanted to put together an aggregate of the activities...
require_relative 'list_activities'
include Activities
puts Activities::list_all
@unisys12
unisys12 / DashboardController.php
Created July 30, 2021 22:51
Passing Multiple Vars to View
<?php
namespace App\Http\Controllers;
use App\Models\User;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Http\Request;
const CLIENT_ROLE = 3;
const TRAINER_ROLE = 2;
module.exports = data = () => {
return [
{
atomicNumber: 1,
symbol: "H",
name: "Hydrogen",
atomicMass: "1.00794(4)",
electronicConfiguration: "1s1",
electronegativity: 2.2,
atomicRadius: 37,
@unisys12
unisys12 / periodic-table.json
Created September 6, 2021 14:28
periodic-table.json
[
{
"atomicNumber": 1,
"symbol": "H",
"name": "Hydrogen",
"atomicMass": "1.00794(4)",
"electronicConfiguration": "1s1",
"electronegativity": 2.2,
"atomicRadius": 37,
"ionRadius": "unknown",