Skip to content

Instantly share code, notes, and snippets.

View shadda's full-sized avatar
💭
Freaking out in a moon-age daydream, oh yeah.

Matt Wilson shadda

💭
Freaking out in a moon-age daydream, oh yeah.
View GitHub Profile
(function (window) {
'use strict';
var User = $resource('/user/:userId', {userId:'@id'});
var user = User.get({userId:123}, function() {
user.abc = true;
user.$save();
});
var References = $resource('/api/references/:type');
(function (window) {
'use strict';
function ReferenceSelector(ReferenceSvc, $compile) {
var directive = {
restrict: 'A',
replace: false,
transclude: true,
require: '^?ngModel'
};
@shadda
shadda / Dockerfile
Created October 1, 2015 20:41 — forked from kevtainer/Dockerfile
PHP5.6 latest FPM with Laravel 5.* deps and some stupid pecl stuff
FROM php:5.6-fpm
# compile + install xdebug
RUN curl -SL "http://xdebug.org/files/xdebug-2.3.3.tgz" -o xdebug.tar.xz \
&& mkdir -p /usr/src/xdebug \
&& tar -xof xdebug.tar.xz -C /usr/src/xdebug --strip-components=1 \
&& rm xdebug.tar.xz \
&& cd /usr/src/xdebug \
&& phpize \
&& ./configure \
@shadda
shadda / ccdl.command
Created November 17, 2021 03:30 — forked from ayyybe/ccdl.command
Adobe Offline Package Generator v0.1.2 (macOS only) --- No longer being updated.
#!/bin/bash
CYAN="$(tput bold; tput setaf 6)"
RESET="$(tput sgr0)"
clear
if command -v python3 > /dev/null 2>&1; then
if [ $(python3 -c "print('ye')") = "ye" ]; then
clear