Skip to content

Instantly share code, notes, and snippets.

View matheusgimenez's full-sized avatar

Matheus Gimenez Petroni matheusgimenez

View GitHub Profile
Projetor Epson PowerLite Pro G5900
Projetor Epson PowerLite Pro Z8000WUNL
Gravador de CDs e DVDs para autoloader Epson PP100
Scanner Epson GT-S55
Projetor Epson PowerLite 95
H4P2Bantes: �143,00
dps: 143,00
if nao existe
int(2352) Created : 2351
if thedata = false
the_data
array(3) { ["pa_model"]=> array(5) { ["name"]=> string(5) "Model" ["value"]=> string(61) "Straight H frame desk - 2 drawer fixed pedestal-Modesty panel" ["is_visible"]=> int(1) ["is_variation"]=> int(1) ["is_taxonomy"]=> int(0) } ["pa_color"]=> array(5) { ["name"]=> string(6) "Colors" ["value"]=> string(5) "Beech" ["is_visible"]=> int(1) ["is_variation"]=> int(1) ["is_taxonomy"]=> int(0) } ["pa_size"]=> array(5) { ["name"]=> string(4) "Size" ["value"]=> string(12) "725x1228x746" ["is_visible"]=> int(1) ["is_variation"]=> int(1) ["is_taxonomy"]=> int(0) } }
attr colors
array(1) { [0]=> string(5) "Beech" }
attr size
H4P2Bantes: �143,00
dps: 143,00
if nao existe
int(2336) Created : 2335
if thedata = false
array(3) { ["pa_model"]=> array(5) { ["name"]=> string(5) "Model" ["value"]=> string(61) "Straight H frame desk - 2 drawer fixed pedestal-Modesty panel" ["is_visible"]=> int(1) ["is_variation"]=> int(1) ["is_taxonomy"]=> int(0) } ["pa_color"]=> array(5) { ["name"]=> string(6) "Colors" ["value"]=> string(5) "Beech" ["is_visible"]=> int(1) ["is_variation"]=> int(1) ["is_taxonomy"]=> int(0) } ["pa_size"]=> array(5) { ["name"]=> string(4) "Size" ["value"]=> string(12) "725x1228x746" ["is_visible"]=> int(1) ["is_variation"]=> int(1) ["is_taxonomy"]=> int(0) } } H4MP2Bantes: �165,10
dps: 165,10
if nao existe
int(2338) Created : 2337
if thedata = true
jQuery(document).ready(function($) {
$('body').on('click', '.add-request-quote-button', function (){
setTimeout(function(){
$( ".close-reveal-modal" ).trigger( "click" );
}, 3000);
});
});
function add_default_favicon() {
if ( ! get_option( 'site_icon') ) {
echo '<link href="' . get_template_directory_uri() . '/ENDERECO-DO-ARQUIVO-DENTRO-DO-TEMA" rel="shortcut icon" />';
}
}
add_action( 'wp_head', 'add_default_favicon' );
@matheusgimenez
matheusgimenez / rails_resources.md
Last active August 29, 2015 14:25 — forked from jookyboi/rails_resources.md
Rails-related Gems and guides to accelerate your web project.

Gems

  • Bundler - Bundler maintains a consistent environment for ruby applications. It tracks an application's code and the rubygems it needs to run, so that an application will always have the exact gems (and versions) that it needs to run.
  • rabl - General ruby templating with json, bson, xml, plist and msgpack support
  • Thin - Very fast and lightweight Ruby web server
  • Unicorn - Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels.
  • SimpleCov - SimpleCov is a code coverage analysis tool for Ruby 1.9.
  • Zeus - Zeus preloads your Rails app so that your normal development tasks such as console, server, generate, and specs/tests take less than one second.
  • [factory_girl](h
@matheusgimenez
matheusgimenez / javascript_resources.md
Last active August 29, 2015 14:25 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@matheusgimenez
matheusgimenez / 0_reuse_code.js
Last active August 29, 2015 14:25
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
<?php
$request = wp_remote_get('URL DA REQUISICAO');
echo wp_remote_retrieve_body($request);
<?php
$request = wp_remote_get('URL DA REQUISICAO');