This file contains hidden or 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
| rialabs.directive('riaSsslider', function(){ | |
| return { | |
| restrict: 'A', | |
| link: function link ($scope, $element, $attrs){ | |
| var el = jQuery($element), | |
| ng = $scope; | |
| el.children().each(function(index, item){ | |
| ng.panes_length.push($(item).data('label') || ""); |
This file contains hidden or 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
| <!doctype html> | |
| <html> | |
| <head> | |
| <title></title> | |
| <meta charset="utf8"> | |
| <link rel="stylesheet" href="css/style.css"> | |
| </head> | |
| <body> |
This file contains hidden or 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
| { | |
| ID: 16551 | |
| } | |
| { | |
| user: { | |
| ID: 16551, | |
| amount_raised: 977.25 | |
| } | |
| } |
This file contains hidden or 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 checkAndConvertToUpper($input) | |
| { | |
| $columns_to_convert = array('descricao', 'logradouro', 'complemento', 'bairro', 'cidade'); | |
| array_walk($input, function(&$item, $key, $cols) | |
| { | |
| if(in_array($key, $cols)) | |
| { | |
| $item = strtoupper($item); | |
| } |
This file contains hidden or 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
| /** | |
| * gulpfile para automatizar a compilação feita com o Duo.js. | |
| * Author: Fabio Vedovelli <vedovelli@gmail.com> | |
| * http://vedovelli.com.br/ | |
| * Inspirado em https://github.com/mozilla/galaxy.js/blob/master/gulpfile.js | |
| */ | |
| var gulp = require('gulp'); | |
| /** |
This file contains hidden or 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
| var gulp = require('gulp'); | |
| var browserSync = require('browser-sync').create(); | |
| var sass = require('gulp-sass'); | |
| var exec = require('child_process').exec; | |
| gulp.task('browser-sync', function() { | |
| browserSync.init({ | |
| proxy: "dashboard.eastman.dev", | |
| notify: false |
This file contains hidden or 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
| var gulp = require('gulp'); | |
| var browserSync = require('browser-sync').create(); | |
| var uglify = require('gulp-uglify'); | |
| var exec = require('child_process').exec; | |
| var srcDir = './src/**/*.js'; | |
| var jsIn = './src/main.js'; | |
| var jsOut = './build/main.js'; | |
| gulp.task('default', ['browser-sync', 'duo', 'watch']); |
This file contains hidden or 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
| 1. Crie uma conta no Digital Ocean; | |
| 2. Crie um droplet Ubuntu (estas instruções são baseadas em Ubuntu) | |
| 3. Escolha o pacote LEMP para ser instalado com seu Ubuntu | |
| 4. Escolha ou associa sua chave publica para acesso ao servidor | |
| 5. Acesse seu server usando SSH (ssh root@<ip informado pelo DO>) |
This file contains hidden or 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
| @servers(['staging' => 'root@192.168.0.99', 'production' => 'root@192.168.0.100']) | |
| <?php | |
| $app_name = 'l5eka'; | |
| $app_path = '/var/www/vhosts/'.$app_name; | |
| $repo = 'https://github.com/vedovelli/l5eka'; | |
| $branch = 'aula4'; | |
| $keep = 6; | |
| $timezone = 'America/Sao_Paulo'; |
This file contains hidden or 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
| server { | |
| listen 80; | |
| server_name CHANGEME.app; | |
| root /var/www/vhosts/CHANGEME.app/public; | |
| index index.html index.htm index.php; | |
| charset utf-8; | |
| location / { |