Skip to content

Instantly share code, notes, and snippets.

View LiveBacteria's full-sized avatar
⏭️
Job Hunting

Tyler Poore LiveBacteria

⏭️
Job Hunting
View GitHub Profile
@LiveBacteria
LiveBacteria / library.sql
Created May 24, 2019 19:51
Databases Assignment | PostgresSQL
library=# SELECT * FROM books;
id | title | author
------+------------------------------------------+---------------------
1259 | Eloquent Ruby | Russell A. Olson
1593 | JavaScript: The Good Parts | Douglas Crockford
8982 | Designing Object-Oriented Software | Rebecca Wirfs-Brock
7265 | Practical Object-Oriented Design in Ruby | Sandi Metz
(4 rows)
@LiveBacteria
LiveBacteria / example.html
Created January 22, 2019 23:06 — forked from andrewlimaza/example.html
Print certain div / elements using window.print()
<script>
function printDiv(divName){
var printContents = document.getElementById(divName).innerHTML;
var originalContents = document.body.innerHTML;
document.body.innerHTML = printContents;
window.print();
document.body.innerHTML = originalContents;