Skip to content

Instantly share code, notes, and snippets.

View pulpfree's full-sized avatar
💭
Enjoying the benefits of AWS Lambda and Golang

Ron Dyck pulpfree

💭
Enjoying the benefits of AWS Lambda and Golang
View GitHub Profile
@pulpfree
pulpfree / mergedconfig.html
Created May 4, 2012 12:22
Output of merged config
object(Zend\Config\Config)#53 (4) {
["allowModifications":protected]=>
bool(false)
["count":protected]=>
int(2)
["data":protected]=>
array(2) {
["di"]=>
object(Zend\Config\Config)#54 (4) {
["allowModifications":protected]=>
@pulpfree
pulpfree / README
Created December 23, 2012 17:48 — forked from joelambert/README
Drop in replace functions for setTimeout() & setInterval() that
make use of requestAnimationFrame() for performance where available
http://www.joelambert.co.uk
Copyright 2011, Joe Lambert.
Free to use under the MIT license.
http://www.opensource.org/licenses/mit-license.php
@pulpfree
pulpfree / README
Created December 23, 2012 21:05 — forked from joelambert/README
Drop in replace functions for setTimeout() & setInterval() that
make use of requestAnimationFrame() for performance where available
http://www.joelambert.co.uk
Copyright 2011, Joe Lambert.
Free to use under the MIT license.
http://www.opensource.org/licenses/mit-license.php
@pulpfree
pulpfree / OSX-php-install.md
Last active January 1, 2016 21:19
php install instruction for OS X Mavericks

PHP install on Fresh OS X Mavericks

Rename (or delete) existing php binaries

sudo mv /usr/bin/php /usr/bin/php.bak
sudo mv /usr/bin/php-config /usr/bin/php-config.bak
sudo mv /usr/bin/phpize /usr/bin/phpize.bak

Fetch brew taps and install php

AngularJS Floating Menu

Wanted to test creating a AngularJS directive for dragging an element containing other transcluded elements, mainly other draggable items as well as the accordion directive from AngularJS-UI-Bootstrap

A Pen by Ron Dyck on CodePen.

License.

@pulpfree
pulpfree / gist:6bcd4f63ae7a96f7a64a
Created May 6, 2014 13:15
apigiility file upload output
The $data var in POST (create) returns:
stdClass Object
(
[field_name] => slide_image
[file_type] => image/jpeg
[file_resize] => {"width":900,"height":700}
[name] => aaa
[caption] => aaa
[slideshow_id] => 53501394499c13a204d63af2
)
@pulpfree
pulpfree / delay-$watch
Last active August 29, 2015 14:08
Delay angularjs $watch response
// Taken from: http://stackoverflow.com/questions/20397253/implement-a-delay-on-scope-watch
var timeoutPromise;
var delayInMs = 0;
vm.isEdit = false;
$scope.$watch(function () {
return vm.editId;
}, function (currentValue) {
$timeout.cancel(timeoutPromise); //does nothing, if timeout alrdy done
server {
server_name www.theteachableproject.org;
return 301 $scheme://theteachbleproject.org$request_uri;
}
server {
listen 80;
listen 443 ssl;
server_name theteachableproject.org;
@pulpfree
pulpfree / baseResolvers.js
Created December 6, 2016 02:25 — forked from thebigredgeek/baseResolvers.js
Breed-able Resolvers
import { AlreadyAuthenticatedError, NotAuthenticatedError, NotAuthorizedError } from '../errors/functional';
import createResolver from '../lib/createResolver';
export const baseResolver = createResolver();
export const isAuthenticatedResolver = baseResolver.createResolver(
(root, args, context) => {
if (!context.user || !context.user.id) throw new NotAuthenticatedError();
}
<!DOCTYPE html>
<!--
Created using JS Bin
http://jsbin.com
Copyright (c) 2016 by yelouafi (http://jsbin.com/sodowa/9/edit)
Released under the MIT license: http://jsbin.mit-license.org
-->
<meta name="robots" content="noindex">