Version: 1.9.8
Platform: x86_64
First, install or update to the latest system software.
sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
var withProperty = [], els = document.getElementsByTagName('a'), i = 0; | |
for (i = 0; i < els.length; i++) { | |
if (els[i].hasAttribute('data-user_id')) { | |
ajaxObject = new XMLHttpRequest(); | |
ajaxObject.open("POST", "/ajax/user/karma/vote/", true); | |
ajaxObject.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); | |
ajaxObject.send('user=' + els[i].getAttribute('data-user_id') + '&karma_value=' + 2 + '&csrf_token=' + encodeURIComponent(globals.user.csrf_token)); | |
} | |
} |
<?php | |
$array = require_once('world_cities_array.php'); | |
var_dump("Test case elements count: " . count($array)); | |
class CJSON | |
{ | |
protected static function reduceString($str) | |
{ | |
$str = preg_replace(array( |
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |