- Video: Andrew Clark: What's Next for React — ReactNext 2016 - YouTube
- Video: Scalable React app architecture [React Bangkok 2.0.0] - YouTube
- Building an Enterprise React Application, Part 1 | Lullabot
- How to avoid refactoring in your first React.js application | Andrej Gajdos
- React Best Practices & Patterns - Sean Saranga Amarasinghe
- React Best Practices and Useful Functions – Nessim Btesh – Medium
- 11 lessons learned as a React contractor – Hacker Noon
- [Characteristics of an
| import argparse | |
| from django.core.management.base import BaseCommand | |
| from django.db import connection | |
| class Command(BaseCommand): | |
| help = 'Renames app. Usage rename_app [old_name] [new_name] [classes ...]' | |
| def add_arguments(self, parser): |
Mobile Safari does not support position: fixed when an input focused and virtual keyboard displayed.
To force it work the same way as Mobile Chrome, you have to use position: absolute, height: 100% for the whole page or a container for your pseudo-fixed elements, intercept scroll, touchend, focus, and blur events.
The trick is to put the tapped input control to the bottom of screen before it activates focus. In that case iOS Safari always scrolls viewport predictably and window.innerHeight becomes exactly visible height.
Open https://avesus.github.io/docs/ios-keep-fixed-on-input-focus.html in Mobile Safari to see how it works.
Please avoid forms where you have several focusable elements because more tricks to fix position will be necessary, those were added just for demonstration purposes.
| [ | |
| { | |
| "name": "freeCodeCamp/freeCodeCamp", | |
| "description": "The https://freeCodeCamp.com open source codebase and curriculum. Learn to code and help nonprofits.", | |
| "stars": 266038, | |
| "type": "other" | |
| }, | |
| { | |
| "name": "twbs/bootstrap", | |
| "description": "The most popular HTML, CSS, and JavaScript framework for developing responsive, mobile first projects on the web.", |
Psql is a fully-fledged CLI client for Postgres, but most people are unaware of its many advanced features.
~/.psqlrc can be edited to persist any behavior or configuration settings you want between psql sessions. It behaves just like ~/.bashrc or ~/.vimrc, sourced at psql launch. See More out of psql for some interesting configurations.
If you have a long query to write and rewrite, you can use \e to edit your query in an editor.
Use \watch at the end of a query in order to automatically re-run the query every few seconds - great for monitoring while making changes elsewhere in your application architecture.
| // check version | |
| node -v || node --version | |
| // list locally installed versions of node | |
| nvm ls | |
| // list remove available versions of node | |
| nvm ls-remote | |
| // install specific version of node |
| from django.db import models | |
| class Member(models.Model): | |
| # RE: null vs blank | |
| # | |
| # NULL https://docs.djangoproject.com/en/1.10/ref/models/fields/#null | |
| # Avoid using null on string-based fields such as CharField and TextField because | |
| # empty string values will always be stored as empty strings, not as NULL. | |
| # |
While a lot of Node.js guides recommend using JWT as an alternative to session cookies (sometimes even mistakenly calling it "more secure than cookies"), this is a terrible idea. JWTs are absolutely not a secure way to deal with user authentication/sessions, and this article goes into more detail about that.
Secure user authentication requires the use of session cookies.
Cookies are small key/value pairs that are usually sent by a server, and stored on the client (often a browser). The client then sends this key/value pair back with every request, in a HTTP header. This way, unique clients can be identified between requests, and client-side settings can be stored and used by the server.
Session cookies are cookies containing a unique session ID that is generated by the server. This session ID is used by the server to identify the client whenever it makes a request, and to associate session data with that request.
*S
| #!/bin/bash | |
| iatest=$(expr index "$-" i) | |
| ####################################################### | |
| # SOURCED ALIAS'S AND SCRIPTS BY zachbrowne.me | |
| ####################################################### | |
| # Source global definitions | |
| if [ -f /etc/bashrc ]; then | |
| . /etc/bashrc |