Get and set process variable:
// Set variable
kcontext.setVariable("XYZ", "9000001214");
// Get variable
System.out.println("\t##### Process variable XYZ: " +
kcontext.getVariable("XYZ"));
Get and set process variable:
// Set variable
kcontext.setVariable("XYZ", "9000001214");
// Get variable
System.out.println("\t##### Process variable XYZ: " +
kcontext.getVariable("XYZ"));
| var myConfObj = { | |
| iframeMouseOver : false | |
| } | |
| window.addEventListener('blur',function(){ | |
| if(myConfObj.iframeMouseOver){ | |
| console.log('Wow! Iframe Click!'); | |
| } | |
| }); | |
| document.getElementById('YOUR_CONTAINER_ID').addEventListener('mouseover',function(){ |
| # Start git-daemon to make local repositories available through network. | |
| # see: https://www.kernel.org/pub/software/scm/git/docs/git-daemon.html | |
| git daemon --verbose --export-all --base-path=/path/to/RepoSuperFolder |
curl http://exemplo.com.br --cookie-jar cookie | grep csrf
The --cookie-jar option creates a cookie in a file called "cookie" xD. This cookie is needed to validate the POST request
The command above will output something like this
| .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"}/ |
| # 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 \ |
| Tux, | |
| Git, | |
| Apache Web Server, | |
| MySQL, | |
| Gnome, | |
| Gnu, | |
| Firefox, | |
| KDE, | |
| Blender, | |
| X.Org, |
| /** | |
| * Solution to exercise 4.3 | |
| * from Eloquent JavaScript Book, | |
| * Chapter 4 - Exercise 4.3 | |
| * | |
| * http://eloquentjavascript.net/04_data.html | |
| */ | |
| function arrayToList(arr) { | |
| var list = null; |
| <?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() ); |
Acabei de descobrir o Gist.io, um serviço que permite compartilhar conteúdo de maneira bem peculiar, sem registro, sem burocracia, se você tiver uma conta no GitHub já está pronto para começar. A ideia é bem simples crie um gist público no GitHub, adicione qualquer conteúdo utilizando Markdown salve e pronto! Para visualizar e compartilhar seu post basta utilizar a seguinte url gist.io/ID-do-seu-gist