Skip to content

Commit bf2630f

Browse files
committed
PSQL
1 parent 1d0b3d6 commit bf2630f

29 files changed

Lines changed: 175 additions & 18 deletions

API/jwt.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Is JWT just a re-implementation of Rails signed cookie?
44

5-
* [Securing React Redux Apps With JWT Tokens](https://medium.com/@rajaraodv/securing-react-redux-apps-with-jwt-tokens-fcfe81356ea0#.8e8z55ik0)
5+
* [**Securing React Redux Apps With JWT Tokens**](https://medium.com/@rajaraodv/securing-react-redux-apps-with-jwt-tokens-fcfe81356ea0#.8e8z55ik0)
66
* [JWT with Redux](https://auth0.com/blog/2016/01/04/secure-your-react-and-redux-app-with-jwt-authentication/)
77
* [Implementing JWT in API: Real Use Case Example](https://medium.com/@jetruby/implementing-jwt-in-api-real-use-case-example-438742a7c5df#.104obz390)
88
* [**Using JSON Web Tokens to authenticate JavaScript front-ends on Rails**](http://zacstewart.com/2015/05/14/using-json-web-tokens-to-authenticate-javascript-front-ends-on-rails.html)

API/rails_api.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ Large software projects stand a slim chance of ever being finished. Build for co
3737
▶ curl -H "Content-Type: application/json; charset=utf-8" -d '{"user": {"name":"mech"}}' http://localhost:3000/users
3838
3939
▶ curl -H "Accept: application/json" -H "Content-Type: application/json" 'http://localhost:3000/users' -d '{??}'
40+
41+
▶ echo 'day=AM' | http --form http://localhost/leaves -v
42+
43+
▶ echo '{"day":"AM"}' | http --json http://localhost/leaves -v
4044
```
4145

4246
## API Wrapper and Serialisation

CSS/layout/intro.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
* [IBM Design Language - Layout](http://www.ibm.com/design/language/framework/visual/layout)
44

5+
https://css-tricks.com/full-width-containers-limited-width-parents/
6+
7+
https://cloudfour.com/thinks/breaking-out-with-viewport-units-and-calc/
8+
59
## Box Model
610

711
HTML elements generate rectangular box called the *element box*.

Database/Postgres/maintain.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Maintenance
2+
3+
* [Uber's switch to MySQL](https://eng.uber.com/mysql-migration/)
4+
5+
## Tools
6+
7+
* [pglogical - Next-gen replication system](https://2ndquadrant.com/en/resources/pglogical/)

Database/Postgres/query.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Interesting Queries
2+
3+
```sql
4+
SELECT c.key, c.x_key, c.tags
5+
x.name
6+
FROM context c
7+
JOIN x ON c.x_key = x.key
8+
WHERE c.key = ANY (ARRAY[145545, 223444, 3344443, -- 11,000 other keys --])
9+
AND c.x_key = 1
10+
AND c.tags @> ARRAY[E'blah'];
11+
```

Database/postgresql.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,9 @@ GIN is just a B-tree, with efficient storage of duplicates. If you have need for
217217

218218
## JSONB
219219

220+
* [When to use unstructured datatypes in Postgres–Hstore vs. JSON vs. JSONB](https://www.citusdata.com/blog/2016/07/14/choosing-nosql-hstore-json-jsonb/)
221+
* [Aggregating indeterminate JSON structures in Postgres](https://blog.steve.ly/aggregating-indeterminate-json-structures-in-postgres/)
222+
220223
JSONB does not store duplicate keys. It also clear whitespace. JSONB is stored as binary.
221224

222225
**Note**: JSONB will always perform a Seq Scan if you use the `->>` operator on a path that have no expression index. So if you don't know beforehand which keys you'll query, or if you can query any path, make sure you define an GIN index and use the `@>` that benefits from that index.
@@ -398,6 +401,7 @@ FROM payment;
398401

399402
## Performance
400403

404+
* [Reading a Postgres EXPLAIN ANALYZE Query Plan](https://robots.thoughtbot.com/reading-an-explain-analyze-query-plan)
401405
* [More on Postgres performance](http://www.craigkerstiens.com/2013/01/10/more-on-postgres-performance/)
402406
* [Handling growth with Postgres from Instagram](http://instagram-engineering.tumblr.com/post/40781627982/handling-growth-with-postgres-5-tips-from-instagram)
403407
* [Performance Tuning Queries in PostgreSQL](http://www.geekytidbits.com/performance-tuning-postgres/)
@@ -516,4 +520,5 @@ language sql;
516520
* [Postgres - The bits you haven't found](https://vimeo.com/61044807)
517521
* [PGCon 2014](https://www.youtube.com/watch?v=oQ1LSW31Y1A&list=PLWW0CjV-Tafa2jvcjihXwSvZZKsLAsb9Y#t=2492)
518522
* [dotScale - Databases The Long View](https://youtu.be/8wligryH_gY)
519-
* [Postgres present and future - PyCon 2016](https://www.youtube.com/watch?v=rYSSX8mdbMk)
523+
* [Postgres present and future - PyCon 2016](https://www.youtube.com/watch?v=rYSSX8mdbMk)
524+
* [Postgres in Production at GoCardless](https://www.youtube.com/watch?v=Tu-cf-Jki60)

Design (Product)/UI.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
> The little things matter
44
5+
https://medium.com/google-design/i-o-2016-our-definitive-guide-to-design-4d64d2db7150#.y8anp5jpk
6+
57
---
68

79
> The UI is part of user's digital body language - [How UI twist your words](https://medium.com/user-experience-design-1/facebook-and-how-uis-twist-your-words-4ceedc5fd93#.838m03i70)
@@ -115,6 +117,7 @@
115117
* Offer an opinion on your UI
116118
* Making decision has a cost
117119
* Use motion, not more content to show relationships. See Apple iOS motion.
120+
* Use motion to tell micro-story.
118121
* Design for flow, instead of screens. Too often we design for screens instead of study the exact flow. The unit of design is not screen. Think more in time-based manner. See Netflix UI.
119122
* Create a language of time for your product. See Google Material Design.
120123
* Design for time by designing with time-based tools.
@@ -129,6 +132,7 @@
129132
* Tell story, you are not designing screens or "lazy rectangles" - [The Perfect Design Tool](https://medium.com/user-defenders/the-perfect-design-tool-54e64428f2b#.f39n4mpia)
130133
* The focus of the solution circles around human beings, rather than interfaces or apps.
131134
* Adding a new feature doesn't just mean sticking it on top of the UI — you have to blend it with the existing design, with the user in mind. A feature needs to be added in a way that feels natural to the user. It can't be forced.
135+
* Demonstrating value before asking for something - Value proposition.
132136

133137
When it comes to the design of complex behaviors and interactions, we've found that focusing too early on pixel pushing, widget design, and specific interactions can get in the way of effectively designing a comprehensive framework in which all the product's behaviors can fit. Instead, we need to consider the big picture first and rendering our solutions in low-fidelity manner.
134138

@@ -297,6 +301,8 @@ There are a number of individual states at which interaction is possible. We cal
297301

298302
### Drop-down Editor
299303

304+
* [**You Know What? Fuck Dropdowns**](https://www.youtube.com/watch?v=hcYAHix-riY)
305+
300306
> Drop downs should be the UI of last resort - @lukew
301307
302308
* [**Tether**](http://github.hubspot.com/tether/docs/welcome/)
@@ -328,9 +334,14 @@ Anytime you have a list, you need to think about categorisation, grouping, filte
328334

329335
* [Infinite scrolling vs pagination](https://uxplanet.org/ux-infinite-scrolling-vs-pagination-1030d29376f1#.y3k6noa5p)
330336

337+
## Multimodal
338+
339+
Modality? Human is very good at multimodalities. They switches modalities rapidly in order to multi-task and survive.
340+
331341
# Videos
332342

333343
* [User Interface (UX) Techniques](https://www.youtube.com/watch?v=7OSkB4BCx00)
334344
* [Why you're over-thinking your UI/UX](https://www.youtube.com/watch?v=Is2O666qDPs)
335345
* [Small Details, Big Impact By Yehuda Katz and Liz Baillie](https://www.youtube.com/watch?v=533rIdxPF10)
336-
* [Interaction Design in the Age of Hyperrealtime](https://vimeo.com/161169767)
346+
* [Interaction Design in the Age of Hyperrealtime](https://vimeo.com/161169767)
347+
* [Learning to speak Designer - Google I/O 2016](https://www.youtube.com/watch?v=80hrknwD74Q)

Design (Product)/process.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,11 @@ Users of your app are there to get things done. They build behavior patterns and
172172

173173
## Google Ventures (Design Sprints)
174174

175+
Sprint master - Read the room well, can pivot at any moment.
176+
177+
Time-boxing (Session)
178+
179+
* [**How design sprints are flexing for success - Google I/O 2016**](https://youtu.be/awKVQUcku4A?list=PLOU2XLYxmsILe6_eGvDN3GyiodoV3qNSC)
175180
* [**Sprint Stories**](https://sprintstories.com/)
176181
* [Why good storytelling helps you design great products](http://www.gv.com/lib/why-good-storytelling-helps-you-design-great-products)
177182
* [Google Ventures - How to set up your war room](http://www.fastcodesign.com/3028471/google-ventures-your-design-team-needs-a-war-room-heres-how-to-set-one-up)

DevOps/Docker/images/_jobline.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# _jobline
22

3+
Runbooks and Playbooks
4+
5+
http://nickjanetakis.com/blog/dockerize-a-rails-5-postgres-redis-sidekiq-action-cable-app-with-docker-compose
6+
37
## Amazon S3
48

59
* [Bucket policy?](https://forums.aws.amazon.com/thread.jspa?messageID=188183)

HR/data.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ Too many businesses regard data analytics as pertaining mainly to realizing valu
5353

5454
Yelp-like
5555

56+
```
57+
Focus - Narrow down
58+
Filter - Tune out noise
59+
Shift
60+
```
61+
5662
## Tags
5763

5864
* [Organizing Screens in Zeplin](https://medium.com/zeplin-gazette/organizing-screens-in-zeplin-with-tags-128dc3ed0749#.izjifd18v)

0 commit comments

Comments
 (0)