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
View detectadblock.js
(function() {
function DetectAdBlock() {
this.adBlockDetected = false;
this.divBait = null;
this.iframeBait = null;
this.lightboxOverlay = null;
this.lightboxContent = null;
this.metricsBlock = false;
this.init();
}
View dots-slick.scss
.slick-dots {
@extend %inline-list;
display: block;
list-style: none;
padding: 0;
text-align: center;
width: 100%;
> li {
cursor: pointer;
View alias_base.sh
alias vup='current_path=$(pwd) && ~/Homestead && vagrant up && cd $current_path' # Alias to Vagrant up
alias vrl='current_path=$(pwd) && ~/Homestead && vagrant reload --provision && cd $current_path'# Alias to Vagrant reload
alias vhalt='current_path=$(pwd) && ~/Homestead && vagrant halt && cd $current_path'# Alias to Vagrant halt
alias vedit='current_path=$(pwd) && atom ~/.homestead/Homestead.yaml && cd $current_path' # Alias to edit the Homestead.yaml file
alias hostedit='current_path=$(pwd) && atom /etc/hosts && cd $current_path' # Alias to edit the hosts file
alias zshedit='current_path=$(pwd) && atom ~/.zshrc && cd $current_path' # Alias to edit the .zshrc file
@3runoDesign
3runoDesign / README.md
Last active Jan 12, 2019
Convert RAW to JPG
View README.md

Sheel para converter fotos .CR2 para .jpeg

View locations.js
var locations = [
['2479 Murphy Court', "Minneapolis, MN 55402", "$36,000", 48.87, 2.29, "property-detail.html", "assets/img/properties/property-01.jpg", "assets/img/property-types/apartment.png"],
['3398 Lodgeville Road', "Golden Valley, MN 55427", "$28,000", 48.866876, 2.309639, "property-detail.html", "assets/img/properties/property-02.jpg", "assets/img/property-types/apartment.png"],
['2479 Murphy Court', "Minneapolis, MN 55402", "$36,000", 48.874796, 2.299275, "property-detail.html", "assets/img/properties/property-03.jpg", "assets/img/property-types/construction-site.png"],
['3398 Lodgeville Road', "Golden Valley, MN 55427", "$28,000", 48.864194, 2.288868, "property-detail.html", "assets/img/properties/property-04.jpg", "assets/img/property-types/cottage.png"],
['3398 Lodgeville Road', "Golden Valley, MN 55427", "$28,000", 48.881187, 2.276938, "property-detail.html", "assets/img/properties/property-06.jpg", "assets/img/property-types/garage.png"],
['2479 Murphy Court', "Minneapo
View eventos.json
{
"events": [
{
"title": "Inicio da aula",
"date": "2016-10-01",
"type": "start-end"
},
{
"title": "Colação",
"date": "2016-10-04",
View functions.php
function remove_head_scripts()
{
remove_action('wp_head', 'wp_print_scripts');
remove_action('wp_head', 'wp_print_head_scripts', 9);
remove_action('wp_head', 'wp_enqueue_scripts', 1);
}
add_action('wp_enqueue_scripts', 'remove_head_scripts');
function remove_script_version($src)
{
@3runoDesign
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 http://forrst.com/posts/Wordpress_Minify_output_HTML-29q
* @see http://www.intert3chmedia.net/2011/12/minify-html-javascript-css-without.html
*/
class WP_HTML_Compression
{
// Settings
@3runoDesign
3runoDesign / README.md
Created Aug 8, 2016
Basic grid style based on Bootstrap and built on Bourbon and Neat.
View README.md

The goal is not to build a grid equal to the Bootstrap, but initial help to the grid without the use Bootstrap or Foundation.

@3runoDesign
3runoDesign / downsize.js
Created Aug 2, 2016
Reduzir proporcional
View downsize.js
function calculatesize() {
var origwidth;
var origheight;
var ratio;
var newwidth;
var newheight;
var roundto;
if (IsNumeric(document.resize.origwidth.value)) {
origwidth = parseFloat(document.resize.origwidth.value);
You can’t perform that action at this time.