Remover arquivos deletados, faz um filtro:
- git diff --name-only --diff-filter=D -z | xargs -0 git rm --cached
Remover, parar de versionar arquivos individuais:
- git rm nameFileHere --cached
Exportar log de commit para csv:
| SELECT MIN(ID) as id, label as label_alt | |
| FROM table | |
| GROUP BY label | |
| ORDER BY MIN(ID) |
| <?php | |
| $address = 'avenida+gustavo+paiva,maceio,alagoas,brasil'; | |
| $geocode = file_get_contents('http://maps.google.com/maps/api/geocode/json?address='.$address.'&sensor=false'); | |
| $output= json_decode($geocode); |
| <? | |
| function mask($val, $mask) | |
| { | |
| $maskared = ''; | |
| $k = 0; | |
| for($i = 0; $i<=strlen($mask)-1; $i++) | |
| { | |
| if($mask[$i] == '#') | |
| { |
| <?php | |
| $current_user = wp_get_current_user(); | |
| /** | |
| * @example Safe usage: $current_user = wp_get_current_user(); | |
| * if ( !($current_user instanceof WP_User) ) | |
| * return; | |
| */ | |
| // echo 'Username: ' . $current_user->user_login . '<br />'; | |
| // echo 'User email: ' . $current_user->user_email . '<br />'; |
| function getWidth() | |
| { | |
| xWidth = null; | |
| if(window.screen != null) | |
| xWidth = window.screen.availWidth; | |
| if(window.innerWidth != null) | |
| xWidth = window.innerWidth; | |
| if(document.body != null) |
| #docs-homescreen-add { | |
| -webkit-border-radius: 50%; | |
| -moz-border-radius: 50%; | |
| border-radius: 50%; | |
| border: none; | |
| bottom: 24px; | |
| -webkit-box-shadow: 0px 2px 10px rgba(0,0,0,.3),0px 0px 1px rgba(0,0,0,.1),inset 0px 1px 0px rgba(255,255,255,.25),inset 0px -1px 0px rgba(0,0,0,.15); | |
| -moz-box-shadow: 0px 2px 10px rgba(0,0,0,.3),0px 0px 1px rgba(0,0,0,.1),inset 0px 1px 0px rgba(255,255,255,.25),inset 0px -1px 0px rgba(0,0,0,.15); | |
| box-shadow: 0px 2px 10px rgba(0,0,0,.3),0px 0px 1px rgba(0,0,0,.1),inset 0px 1px 0px rgba(255,255,255,.25),inset 0px -1px 0px rgba(0,0,0,.15); | |
| cursor: pointer; |
| //Formulário de adesão validar | |
| $('#formulario_adesao').validator().bind('onFail', function(e,errors){ | |
| var primeiroImput = false; | |
| if ('submit' == e.originalEvent.type) { | |
| $.each(errors, function() { | |
| var input = this.input; | |
| switch (input.attr('name')){ | |
| case 'idplano': | |
| $('#div-valor_titular').css('display', 'block'); break; | |
| case 'concodar_plano': $('#div-concodar_plano').css('display', 'block'); |
| <?php | |
| $thumb_id = get_post_thumbnail_id(); | |
| $thumb_url = wp_get_attachment_image_src($thumb_id,'thumbnail', true); |
| // -- include gulp | |
| var gulp = require('gulp'); | |
| // -- include plug-ins | |
| var jshint = require('gulp-jshint'); | |
| var changed = require('gulp-changed'); | |
| var imagemin = require('gulp-imagemin'); | |
| var concat = require('gulp-concat'); | |
| var stripDebug = require('gulp-strip-debug'); | |
| var uglify = require('gulp-uglify'); |
Remover arquivos deletados, faz um filtro:
Remover, parar de versionar arquivos individuais:
Exportar log de commit para csv: