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')
var gistPrefix = 'https://gist.github.com/',
// Cache document.write so that it can be restored once all Gists have been
// embedded.
cachedWrite = document.write,
body = $('body'),
// Map each p.gist to an object that contains the paragraph to be replaced
// and the Gist's identifier.
gists = $('a.gist').map(function(n, a) {
a = $(a);
var href = a.attr('href');
@ArgonCode
ArgonCode / pass_by.rb
Last active August 29, 2015 14:21
Pass by value vs. pass by reference
2.2.2 :001 > var1 = "hello"
=> "hello"
2.2.2 :002 > var2 = var1
=> "hello"
2.2.2 :004 > var2.upcase
=> "HELLO"
2.2.2 :005 > var2
=> "hello"
2.2.2 :006 > var1
=> "hello"
@ArgonCode
ArgonCode / keybase.md
Created October 8, 2015 19:50
keybase.md

Keybase proof

I hereby claim:

  • I am argoncode on github.
  • I am argon18z (https://keybase.io/argon18z) on keybase.
  • I have a public key whose fingerprint is 78B1 B475 7C67 9BB7 A999 85B9 78C8 0DC1 FA58 6258

To claim this, I am signing this object:

@ArgonCode
ArgonCode / dotfiles.sh
Created December 10, 2015 04:53 — forked from rands0n/dotfiles.sh
My files for Ubuntu 14.04
# cURL
apt-get install curl
# Git
apt-get install git
git config --global user.name "Randson Oliveira"
git config --global user.email "[email protected]"
git config --global color.ui auto
# ZSH and Oh My ZSH

Recommended Reading List for Developers 1st Half 2014

The Recommended Reading List is a valuable resource for technical professionals who want to thoroughly explore topics such as multi-core programming, embedded, security, and more. Dozens of industry technologists, corporate fellows, and engineers have helped by suggesting books and reviewing the list.

Books For Hardware Developers

Power and Thermal Management

  • Power Management in Mobile Devices - Findlay Shearer - Newnes - 9780750679589
  • Thermal and Power Management of Integrated Circuits - Arman Vassighi, Manoj Sachdev - Springer - 9781441938329
@ArgonCode
ArgonCode / tutsplus.md
Created February 10, 2016 15:52 — forked from ajmalafif/*udacity.md
Learn - tutsplus courses checklist
@ArgonCode
ArgonCode / node-npm_chrome
Created August 13, 2016 06:09
Node and NPM on Chromebook (Chrome OS)
Considering that you already have rootfs write access and and have switched on your chromebook to dev mode, it is possible to install NodeJS dev env on chromebook (keeping your OS to ChromeOS. This article is not about ChrUbuntu)
If you need help with dev mode and rootfs write access, consider following Chromium OS poking around article.
Download xz package and nodejs package from ArchLinux -
xz - http://www.archlinux.org/packages/core/i686/xz/
node - https://www.archlinux.org/packages/community/i686/nodejs/
There is a little ‘Download from mirror’ link on the page. If you don’t find, just Find on Page for word ‘download’. Both these downloaded packages should be in your Downloads folder that opens up when you open Chrome OS files app.
switch to terminal (Ctrl+Alt+T) will open terminal as one of the browser tabs.
type SHELL and hit enter as follows, and proceed

Basic JavaScript

JavaScript quirky quirks

  1. Comments
// This is an in-line comment.

/* This is a 
   multi-line comment */
  1. Data types