View readonly-postgres-users.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-------------------------------------------- | |
-- login as superuser | |
-- use sample_database | |
-- do not allow users to create tables by default | |
REVOKE CREATE ON SCHEMA public FROM public; | |
-- application user | |
CREATE USER tablecreator; | |
ALTER USER tablecreator WITH ENCRYPTED PASSWORD 'password'; |
View mac-file-merge-diff-tool
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open /Applications/Xcode.app/Contents/Applications/FileMerge.app/ |
View misc.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------------ | |
for own key, generator of params | |
------------ | |
http://stackoverflow.com/questions/22001912/prettify-json-output-of-active-model-serializer-in-rails-console?answertab=active#tab-top | |
puts JSON.pretty_generate(FooSerializer.new(p).serializable_hash) |
View can-be.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
specify { expect(subject).to be_an_instance_of(described_class) } |
View no-tables.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="no-more-tables-container"> | |
<table class="no-more-tables-portrait-only"> | |
<thead> | |
<tr> | |
<td>Name</td> | |
<td>Phone</td> | |
<td>Email</td> | |
</tr> | |
</thead> | |
<tbody> |
View no-tables.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://css-tricks.com/responsive-data-tables/ | |
// https://css-tricks.com/examples/ResponsiveTables/responsive.php | |
// http://elvery.net/demo/responsive-tables/ | |
.no-more-tables-container { | |
@mixin no-more-tables-mixin { | |
// Force table to not be like tables anymore | |
table, thead, tbody, th, td, tr { | |
display: block; | |
} |
View two-tone-calendar-icon-text-all
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.two-tone-container { | |
background-color: #5bc0de; | |
border-radius: 5px 5px 5px 5px; | |
.two-tone-content { | |
padding-left: 10px; | |
display: inline-block; | |
color: #fff; | |
} |
View two-tone-calendar-icon-text-calendar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.two-tone-container { | |
background-color: #5bc0de; | |
border-radius: 5px 5px 5px 5px; | |
.two-tone-content { | |
padding-left: 10px; | |
display: inline-block; | |
} | |
.two-tone-content-cell:before { |
View run-pairs.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set PAIR_SIZE=3 | |
ruby pairs.rb people.txt | |
set /p=Hit Enter to quit... |
NewerOlder