Skip to content

Instantly share code, notes, and snippets.

=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')

Fenced code blocks inside ordered and unordered lists

  1. This is a numbered list.

  2. I'm going to include a fenced code block as part of this bullet:

    Code
    More Code
    
@DiegoTc
DiegoTc / CARD_CD_code.js
Last active October 15, 2019 04:19
Blinking a LED with BeagleBone Black
var b = require('bonescript');
var led = "P8_10";
var state = 0;
b.pinMode(led, 'out');
toggleLED = function() {
state = state ? 0 : 1;
b.digitalWrite(led, state);
};
@DiegoTc
DiegoTc / Fix_Skype_not_using_the_correct_system_theme_on_64bit.txt
Last active August 29, 2015 14:00
What to do after installing Ubuntu 14.04
sudo apt-get install gtk2-engines-murrine:i386
sudo apt-get install gtk2-engines-pixbuf:i386
@DiegoTc
DiegoTc / fiddle.html
Last active August 29, 2015 14:00 — forked from jadonk/fiddle.html
<h1>BoneScript Flot Demo</h1>
<div id="myplot" style="width:500px;height:300px;"></div>
<p><a href="https://gist.github.com/jadonk/9602198">fork me on github</a></p>
/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/*
Created on : Apr 24, 2014, 10:44:41 AM
Author : dturcios
*/
.container {
* {margin: 0; padding: 0;}
#lightbox {
margin: 10px auto;
width: 520px;
border-bottom: 1px solid #ccc;
}
#lightbox h1 {
text-transform: uppercase;
text-align: center;
#lightbox-shadow {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #000;
filter: alpha(opacity=100);
-moz-opacity: 0.75;
-khtml-opacity: 0.75;
@DiegoTc
DiegoTc / AtomPrereque
Last active August 29, 2015 14:01
Install_Atom
sudo apt-get install libgnome-keyring-dev
npm config set python /usr/bin/python2 -g