View timing.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by jasonbyrne on 8/30/14. | |
*/ | |
window.JCB = window.JCB || {}; | |
JCB.Timing = (function(){ | |
// Self | |
var me = {}; | |
// Private Properties |
View xYourHeart.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by jasonbyrne on 9/2/14. | |
*/ | |
var xYourHeart = (function(){ | |
// Self-reference | |
var xYourHeart = { | |
STATUS: { | |
PENDING: 0, | |
FAILURE: -1, |
View httpStatusCodes.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var HTTP_STATUS = { | |
'OK': 200, | |
'CREATED': 201, | |
'ACCEPTED': 202, | |
'NON_AUTHORITATIVE': 203, | |
'NO_CONTENT': 204, | |
'RESET': 205, | |
'PARTIAL_CONTENT': 206, | |
'MULTI_STATUS': 207, | |
'ALREADY_REPORTED': 208, |
View tweets.redactor.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Imperavi Redactor Plugin for Embedding Tweets | |
* for version >= 9.1 | |
* | |
* https://gist.github.com/jasonbyrne/6e96a907c781e90e0dbf | |
* | |
* @author Jason Byrne <jason.byrne@flocasts.com> | |
* @version 0.5.1 | |
* | |
* @forked https://gist.github.com/chekalskiy/7438084 |
View summernote-pastclean.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Summernote PasteClean | |
* | |
* This is a plugin for Summernote (www.summernote.org) WYSIWYG editor. | |
* It will clean up the content your editors may paste in for unknown sources | |
* into your CMS. It strips Word special characters, style attributes, script | |
* tags, and other annoyances so that the content can be clean HTML with | |
* no unknown hitchhiking scripts or styles. | |
* | |
* @author Jason Byrne, FloSports <jason.byrne@flosports.tv> |
View sumernote-fixedtoolbar.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Summernote Fixed Toolbar | |
* | |
* This is a plugin for Summernote (www.summernote.org) WYSIWYG editor. | |
* It will keep the toolbar fixed to the top of the screen as you scroll. | |
* | |
* @author Jason Byrne, FloSports <jason.byrne@flosports.tv> | |
* | |
*/ |
View q.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var q = (function() { | |
var me = this, | |
_callbacks = [], | |
_index = -1, | |
_nonePending = true; | |
me.then = function(callback) { | |
// Add this to the queue | |
_callbacks.push(callback); |
View datatable.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace JCB { | |
export enum SortStyle { | |
String, | |
Numeric, | |
CaseSensitiveString | |
} | |
export enum SortOrder { | |
ASC, |
View bandwidth.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
input_file=/var/log/openvpn/status.log | |
echo "" | |
echo "Reading $input_file" | |
echo "" | |
while read line; do | |
if [[ "$line" = *,* ]]; then | |
IFS=',' read -ra fields <<< "$line" #Convert string to array |
View temp-upload.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ ! $1 ]]; then | |
echo "No file provided" | |
exit | |
fi | |
if [ ! -f "$1" ]; then | |
echo "File does not exist" | |
echo "$1" | |
echo "" |
OlderNewer