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 | |
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 |
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
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 \ |
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 (window) { | |
'use strict'; | |
function ReferenceSelector(ReferenceSvc, $compile) { | |
var directive = { | |
restrict: 'A', | |
replace: false, | |
transclude: true, | |
require: '^?ngModel' | |
}; |
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 (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'); | |