Skip to content

Instantly share code, notes, and snippets.

Bruno Fernando dos Santos Silva 3runoDesign

Block or report user

Report or block 3runoDesign

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
3runoDesign /
Created Oct 22, 2018 — forked from avataru/
Eloquent relationships cheat sheet
3runoDesign / intro.markdown
Created Feb 4, 2018 — forked from tillsanders/intro.markdown
Laravel: drag-and-drop repositioning with auto-save of DB entries
View intro.markdown

Laravel: drag-and-drop repositioning with auto-save of DB entries

Use case: Database entries are represented in a table. By grabbing and moving a row up or down the table, you can change the entries' order/position. The changes are submitted automatically via ajax.

  • Uses jQueryUI (custom download: sortable is needed)
  • newly created elements are added to the top (see route /jobs/create)
View .htaccess
#Força a utilizar Cache-Control e Expires header
<IfModule mod_headers.c>
Header unset ETag
FileETag None
<IfModule mod_expires.c>
ExpiresActive on
ExpiresDefault "access plus 1 month"
ExpiresByType text/cache-manifest "access plus 0 seconds"
# Html
3runoDesign / functions.php
Created Sep 6, 2016 — forked from unfulvio/functions.php
WordPress HTML Minification Class to compress HTML (removal of whitespaces, line breaks, new lines, comments). Preserves script comments (if removed might break some javascripts like Google Analytics or Adsense) and IE specific tags.
View functions.php
/* Minifies HTML and removes comments (except IE tags and comments within script tags)
* To disable compression of code portions, use '<!--wp-html-compression no compression-->' tag
* @see
* @see
class WP_HTML_Compression
// Settings
View estados-cidades.json
"estados": [
"sigla": "AC",
"nome": "Acre",
"cidades": [
"Assis Brasil",

##Open Graph Code Snippet Put this in the header of your site. Update the info below with dynamic content leaving article as is.

<meta property="og:title" content="Site Title" />
<meta property="og:type" content="article" />
<meta property="og:image" content="Image URL" />
<meta property="og:url" content="Page URL" />
<meta property="og:description" content="Page Description" />
You can’t perform that action at this time.