Skip to content

Instantly share code, notes, and snippets.

View AlexBezuska's full-sized avatar

Alex Bezuska AlexBezuska

  • Louisville, Kentucky (KY)
View GitHub Profile
!function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.Splat=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
var Entity = _dereq_("./entity");
function AnimatedEntity(x, y, width, height, sprite, spriteOffsetX, spriteOffsetY) {
this.sprite = sprite;
this.spriteOffsetX = spriteOffsetX;
this.spriteOffsetY = spriteOffsetY;
Entity.call(this, x, y, width, height);
}
AnimatedEntity.prototype
@AlexBezuska
AlexBezuska / 2014 NCAA men's bracket JSON
Created March 19, 2014 21:31
2014 NCAA men's basketball tournament bracket in JSON format. In same order as bracket pdfs
{
"teams":{
"1":{
"seed":"1",
"name":"Florida",
"record":"32–2",
"rank":"1"
},
"2":{
"seed":"16",
/* MDP Color Pack */
$reports-light-blue: rgba( 94,125,172,1);
$reports-blue: rgba( 74,108,158,1);
$light-grey-blue: rgba( 70, 91,113,1);
$grey-blue: rgba( 58, 78, 99,1);
$mortenson-blue: rgba( 24, 79,166,1);
$make-it-grey: rgba( 70, 70, 70,1);
$dark-grey: rgba( 70, 70, 70,1);
$not-black: rgba( 27, 29, 30,1);
xcodebuild -target "~/projects/mine/Ejecta/Kick Bot.xcodeproj" -scheme "Ejecta" -configuration "Release" -sdk iphoneos7.1 -arch "armv7" CONFIGURATION_BUILD_DIR="TestBuild" ONLY_ACTIVE_ARCH=NO
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ "
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
alias ls='ls -GFh'
//works on my local machine, white screens the server
echo str_replace( ['<ul>','</ul>'], '', $string );
//works great on both
echo str_replace( array('<ul>','</ul>'), '', $string );
@AlexBezuska
AlexBezuska / google translate beatboxing
Created April 12, 2014 05:39
Sounds for google translate beatboxing
/*
zk
bschk
pv
bk
tk
{
"email": null,
"stripeToken": "1413rffqe3f1e1fwefwert1t1we",
"stripeShippingName": "A Test User",
"stripeShippingAddressLine1": "1we2e12",
"stripeShippingAddressZip": "62650",
"stripeShippingAddressState": "IL",
"stripeShippingAddressCity": "Jacksonville",
"stripeShippingAddressCountry": "United States",
"products": [
@AlexBezuska
AlexBezuska / PHP JSON POST ( using Curl ) Function
Last active August 29, 2015 14:00
with Javascript console error/status reporting
function postJSONtoURL($data, $url, $v=false){
$content = json_encode($data);
if($v){ echo "<script>console.log('JSON you are posting:\\n ".$content."\\n');</script>"; }
if($v){ echo "<script>console.log('URL you are posting to\\n ".$url."\\n');</script>"; }
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_HEADER, false);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HTTPHEADER, array("Content-type: application/json"));
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $content);
@AlexBezuska
AlexBezuska / gist:e80ccef1464209ae0c53
Created July 2, 2014 13:33
Setup and run multiple ghost blogs
Apache config:
<VirtualHost *:80>
ProxyPreserveHost On
ProxyRequests Off
ServerAlias [your domain or subdomain here]
ProxyPass / http://localhost:2368/
ProxyPassReverse / http://localhost:2368/
</VirtualHost>