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
| #!/bin/sh | |
| # Sublime Text 3 Install (last update: Monday 13 March 2017) | |
| # | |
| # No need to download this script, just run it on your terminal: | |
| # | |
| # curl -L git.io/sublimetext | sh | |
| # Detect the architecture |
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
| // Usage: | |
| // get_id_by_slug('any-page-slug'); | |
| function get_id_by_slug($page_slug) { | |
| $page = get_page_by_path($page_slug); | |
| if ($page) { | |
| return $page->ID; | |
| } else { | |
| return null; | |
| } |
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
| <?php | |
| class Page_Object { | |
| public $ID; | |
| public $original_post; | |
| public $data = array(); | |
| public function __construct( $id ) { |
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:
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
| <div class="row" id="box-search"> | |
| <div class="thumbnail text-center"> | |
| <img src="img/cafe.jpg" alt="" class="img-responsive"> | |
| <div class="caption"> | |
| <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ab, quisquam?</p> | |
| </div> | |
| </div> | |
| </div> |
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
| {{-- file: /app/views/layouts/master.blade.php --}} | |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| {{-- Part: all meta-related contents --}} | |
| @yield('head-meta') | |
| {{-- Part: site title with default value in parent --}} | |
| @section('head-title') |
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
| { | |
| "directory": "vendor/bower_components" | |
| } |
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
| // require: $ npm install --save-dev del | |
| var gulp = require('gulp'); | |
| var elixir = require('laravel-elixir'); | |
| var del = require('del'); | |
| elixir.extend("remove", function(path) { | |
| gulp.task("remove", function() { | |
| del(path); | |
| }); |
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
| #!/bin/sh | |
| mv www/index.php index.php.saved | |
| rm -rf www/* | |
| # update project/ to your directory name | |
| cp -a project/public/* www | |
| cp project/public/.* www | |
| rm -rf www/index.php | |
| mv index.php.saved www/index.php |