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
// use this transport for "blob" data type | |
// http://artandlogic.com/2013/11/jquery-ajax-blobs-and-array-buffers/ | |
(function($){ | |
/** | |
* Register ajax transports for blob send/recieve and array buffer send/receive via XMLHttpRequest Level 2 | |
* within the comfortable framework of the jquery ajax request, with full support for promises. | |
* | |
* Notice the +* in the dataType string? The + indicates we want this transport to be prepended to the list | |
* of potential transports (so it gets first dibs if the request passes the conditions within to provide the |
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
function recursiveIterationKey(object,matchKey) { | |
var found=false; | |
for (var property in object) { | |
if (object.hasOwnProperty(property)) { | |
if (typeof object[property] == "object"){ | |
if(recursiveIterationKey(object[property])){ | |
found=true; | |
break; | |
} else if(matchKey==property) { | |
found = true; |
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
Object.prototype.join = function(glue, separator) { | |
var object = this; | |
if (glue == undefined) | |
glue = '='; | |
if (separator == undefined) | |
separator = ','; | |
return $.map(Object.getOwnPropertyNames(object), function(k) { return [k, object[k]].join(glue) }).join(separator); |
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
import Ember from 'ember'; | |
/* | |
Template: | |
<div style={{css-styles background-url='url("this/is/my/url")' color="red"}}>My Fill Color</div> | |
OR | |
<li id="{{index}}" style={{css-styles background-url=(concat 'url("' photo.thumbnail '")') }}></li> | |
*/ | |
export function cssStyles(params, hash) { |
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
qrcode.callback = function(data){ | |
jQuery('#qrdata').html(data); | |
} | |
var loadFile = function(event) { | |
var url = URL.createObjectURL(event.target.files[0]); | |
qrcode.decode(url); | |
}; |
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
#301 Redirects for .htaccess | |
#Redirect a single page: | |
Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
#Redirect an entire site: | |
Redirect 301 / http://www.domain.com/ | |
#Redirect an entire site to a sub folder | |
Redirect 301 / http://www.domain.com/subfolder/ |
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
<?php | |
/** | |
* Initial Setup of file | |
* Garbage collection sucks, we should have a time check during read and auto destroy/not recover old sessions | |
*/ | |
class DB_Sessions | |
{ | |
var $session_life = 300; | |
var $sessiontable = 'sessions'; |
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
using nfs fails, default works. | |
macOS Sierra 10.12.1 | |
VirtualBox 5.1.10 | |
Vagrant 1.9.1 | |
Virtualbox Guest Additions 5.1.10 | |
plugins... | |
vagrant-bindfs 1.0.2 | |
vagrant-vbguest 0.13.0 |
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
disabled everything from install and IP still not working. |
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
vagrantfile: | |
target: local | |
vm: | |
provider: | |
local: | |
box: puphpet/centos65-x64 | |
box_url: puphpet/centos65-x64 | |
box_version: '0' | |
chosen_virtualizer: virtualbox | |
virtualizers: |