Skip to content

Instantly share code, notes, and snippets.

View jgraup's full-sized avatar

Jesse Graupmann jgraup

View GitHub Profile
@jgraup
jgraup / SSH-Terminal-Common-Bash-ShellCommands.sh
Last active December 28, 2015 10:49
Reference for common shell commands through OSX Terminal
# Connect to Shell
ssh {url}
# List Directory Contents
ls
# Change Directory To
cd {directory}
@jgraup
jgraup / Google Spreadsheet Formulas
Last active December 28, 2015 17:59
Google Spreadsheet Formulas - Current Date and Time - Convert a City,State into Lat/Lon | Geocoding from: http://open.mapquestapi.com/geocoding/#parameters
## Current Date/Time in Cell
=NOW()
## GOAL: Convert A2 into lat/long cords in B2
## Geocoding from: http://open.mapquestapi.com/geocoding/#parameters
## Cells [A:Location] [B:Final GeoLocation]
@jgraup
jgraup / PHP-Common.php
Last active December 29, 2015 05:39
PHP - Common
## Start/Stop
<?php // StartPHP
doPHPFunction();
/*
?> // StopPHP
@import "elements.less";
@import url(http://fonts.googleapis.com/css?family=Lato:400,700);
@height : 50px;
@black : #000000;
@white : #ffffff;
@water : #2682D5;
@sky : #33CBE0;
@red : #DC3964;
@orange : #EC7547;
@jgraup
jgraup / unity3d-assetstore-publisher-feed.php
Last active October 3, 2022 11:00
PHP - Unity3D Asset Store Publisher Feed. You must supply your own secret key to use this, a key is generated per publisher at https://publisher.assetstore.unity3d.com/info.html
<?php
include_once ( 'unity3d-assetstore.php' );
// Doesn't matter what is used for the publisher name,
// the key still points to only one publisher.
$authArray = array (
'publisher' => '{PUBLISHER_NAME}'
'key' => '{PUBLISHER_KEY}',
);
@jgraup
jgraup / codepen-usage.php
Last active December 29, 2015 07:19
CodePen.io - Pulls CodePen.io User Feed
<?php
/**
* CodePen.io user feed example
*/
include_once("codepen.php");
if ((isset($_REQUEST['format']) && $_REQUEST['format'] == 'xml') ||
(isset($_REQUEST['output']) && $_REQUEST['output'] == 'xml') ) {
@jgraup
jgraup / directory-contents.php
Last active December 29, 2015 07:59
DirectoryContent - Return list of files and folders in directory including path and url.
<?php
/**
* DirectoryContent Class
*/
class DirectoryContent
{
/**
* @var $filename string
* @var $path string
<?php
require_once (__DIR__ . "/lib/Unirest.php");
$response = Unirest::post("http://httpbin.org/post", array( "Accept" => "application/json" ),
array(
"parameter" => 23,
"foo" => "bar"
)
);
<?php
// Turn off by using Errors::activate(false);
Errors::activate(true);
/**
* Class Errors
* @description Echo error info and store data in static variables when active
*/
class Errors
@jgraup
jgraup / Debug.php
Last active December 29, 2015 11:19
PHP - Debug class
<?php
Debug::Test("Testing... 1", ",2", ",3");
/*
[12:11:13] Testing... 1,2,3
[12:11:13] Testing Log
[12:11:13 WARNING] Testing Warn
[12:11:13 ERROR] Testing Error
[12:11:13 DUMP | array | Testing var_dump]