Skip to content

Instantly share code, notes, and snippets.

View zacharyblank's full-sized avatar

Zach Blank zacharyblank

  • Hurry
  • Portland
View GitHub Profile
This file has been truncated, but you can view the full file.
[
{
"photo": "6b5aae4b-4c1d-487c-90d5-a636adc00956",
"business_name": "Susie Q Skin",
"contact_firstname": "Susan Badger",
"summary": "Natural skincare and tattoo aftercare",
"location": "{\"formatted_address\":\"Portland, Oregon 97222, United States\",\"placeID\":\"postcode.7752108143982160\",\"place_URL\":\"https://maps.google.com/?q=Portland+Oregon 97222+United States\",\"lat\":45.43,\"lng\":-122.58}",
"industry": ",Lifestyle & Personal Care",
"phone": "503-522-1709",
"email": "info@susieqskin.com",
pip install -g autonomous-ship
.-.
/ /
/ |
|\ ._ ,-"" `.
| |,,_/ 7 ;
`;= ,=( , /
|`q q ` | \_,|
.=; <> _ ; / ,/'/ |
';|\,j_ \;=\ ,/ `-'
`--'_|\ )
App::before(function($request)
{
header('Access-Control-Allow-Methods: GET, POST, PUT, OPTIONS');
header('Access-Control-Allow-Origin: *');
header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept, Authorization");
if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {
exit;
}
@zacharyblank
zacharyblank / gist:8326104
Created January 8, 2014 22:53
Custom Grant Type
<?php
/**
* OAuth 2.0 Password grant
*
* @package php-loep/oauth2-server
* @author Alex Bilbie <hello@alexbilbie.com>
* @copyright Copyright (c) 2013 PHP League of Extraordinary Packages
* @license http://mit-license.org/
* @link http://github.com/php-loep/oauth2-server
*/
@zacharyblank
zacharyblank / gist:7136073
Created October 24, 2013 12:08
OS X Mavericks Vagrant NFS workaround
config.vm.share_folder("api", "/vagrant/api", "./api", :owner => "www-data", :group => "www-data", :extra => "dmode=775,fmode=644")
~ (ruby 1.9.3p327) 💥 sudo pip install virtualenvwrapper
Password:
Downloading/unpacking virtualenvwrapper
Downloading virtualenvwrapper-4.6.0.tar.gz (89kB): 89kB downloaded
Running setup.py egg_info for package virtualenvwrapper
[pbr] Processing SOURCES.txt
warning: LocalManifestMaker: standard file '-c' not found
warning: no previously-included files found matching '.gitignore'
warning: no previously-included files found matching '.gitreview'
@zacharyblank
zacharyblank / timer.js
Created July 24, 2015 22:16
Angular Timer Directive
var timerDirective = function ($interval)
{
template: '<div>Seconds Elapsed: {{seconds}}</div>',
link: function($scope, element, attrs, controller) {
element.on('$destroy', function() {
$interval.cancel(controller.timerPromise);
});
},
controller: function ($scope){
$scope.seconds = 0;
this.get = function(data) {
var deferred = $q.defer();
resource.get(data, function(response) {
if (typeof response.data == 'object') {
deferred.resolve(new Venue(response.data));
} else {
deferred.reject();
}
}, function() {
@zacharyblank
zacharyblank / gist:3bd004a2f5c619a0441a
Created December 10, 2014 14:17
Email with domain regex
/^[a-z0-9!#$%&'*+/=?^_`{|}~.-]+@example\.com$/i