Skip to content

Instantly share code, notes, and snippets.

View EvertonSilva's full-sized avatar

Everton Silva EvertonSilva

  • Muralis Tecnologia
  • Mogi das Cruzes - SP
  • 17:28 (UTC -03:00)
  • X @_evertonsilva
View GitHub Profile
@EvertonSilva
EvertonSilva / EA_BPMS_Node_Script.md
Created June 15, 2018 01:39 — forked from ejlp12/EA_BPMS_Node_Script.md
Jboss bpms, jbpm, brms, script, onexit, onentry

Get and set process variable:

// Set variable
kcontext.setVariable("XYZ", "9000001214"); 

// Get variable
System.out.println("\t##### Process variable XYZ: " + 
                  kcontext.getVariable("XYZ"));
                  
                
@EvertonSilva
EvertonSilva / gist:f702ddfa6ba851d53bbbd9c17e860c86
Created April 27, 2018 14:26 — forked from jaydson/gist:1780598
How to detect a click event on a cross domain iframe
var myConfObj = {
iframeMouseOver : false
}
window.addEventListener('blur',function(){
if(myConfObj.iframeMouseOver){
console.log('Wow! Iframe Click!');
}
});
document.getElementById('YOUR_CONTAINER_ID').addEventListener('mouseover',function(){
@EvertonSilva
EvertonSilva / contact.haml
Created January 28, 2017 00:45 — forked from wavesummit/contact.haml
An example sinatra app that uses pony and gmail to send an e-mail
.grid_12
%h1 Contact
%h2 Want to get in contact, have a question or just fancy a chat?
%p Fill out the form below
%form{:action => "/contact", :method => "post"}
%div{:style => "margin:0;padding:0;display:inline"}
%label{:for => "contact_subject"} Subject:
%br
%input#contact_subject{:name => "subject", :size => "30", :type => "text"}/
@EvertonSilva
EvertonSilva / nginx.default.conf
Created July 9, 2016 04:35 — forked from sumardi/nginx.default.conf
Install PHP-FPM, Nginx & MySQL on EC2 with Amazon Linux AMI
# Install linux update, followed by GCC and Make
sudo yum -y update
sudo yum install -y gcc make
# Install Nginx and PHP-FPM
sudo yum install -y nginx php-fpm
# Install PHP extensions
sudo yum install -y php-devel php-mysql php-pdo \
php-pear php-mbstring php-cli php-odbc \
<?php
add_action( 'wp_enqueue_scripts', 'enqueue_my_styles' );
function enqueue_my_styles() {
global $wp_styles;
// Load the main stylesheet
wp_enqueue_style( 'my-theme', get_stylesheet_uri() );
@EvertonSilva
EvertonSilva / gist:5916980
Created July 3, 2013 10:47 — forked from jmertic/gist:5847575
Interacting with the new RESTful Sugar Web Services in Node.js
var sys = require('util'),
rest = require('restler');
var baseurl = "<<instance URL>>/rest/v10"
// get oAuth token
var jsonData = {"grant_type":"password","username":"<<username>>","password":"<<password>>","client_id":"sugar"};
rest.postJson(baseurl+'/oauth2/token', jsonData).on('2XX', function(data) {
if ( data.error ) {
sys.puts("Error: " + data.error_message);