Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The copy to a clipboard has a few elements to it.

1. If you right click on an object in the console, you can store it as a global variable. This makes an exact copy of the object that is in the global scope.

2. They used $_ which is a shortcut to get the result of the last command. So in the example, temp9 was the last command, so $_ is a copy of temp9

3. The important bit is the copy(var) call. This will copy any var into your clipboard!

Hopefully this was helpful!



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: