To use in dev environments
- after
python manage.py shell
from django.contrib.auth.models import User| import UIKit | |
| extension UITableView { | |
| func isCellVisible(section: Int, row: Int) -> Bool { | |
| guard let indexes = self.indexPathsForVisibleRows else { | |
| return false | |
| } | |
| return indexes.contains{ $0.section == section && $0.row == row } | |
| } |
| <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
| <xsl:output indent="yes" /> | |
| <xsl:strip-space elements="*" /> | |
| <xsl:template match="usx"> | |
| <html> | |
| <head> | |
| <meta content="utf-8" /> | |
| <link rel="stylesheet" href="bible.css" /> | |
| </head> |
| // Don't forget to prefix your category! | |
| #import <UIKit/UIKit.h> | |
| NS_ASSUME_NONNULL_BEGIN | |
| @interface UIWindow (PSPDFAdditions) | |
| #if TARGET_OS_UIKITFORMAC |
| //A quick way to generate valid URL to GET files hosted on private AWS S3 bucket | |
| //I didn't want to use an SKD so I followed the documentation to make my own and learn | |
| //The code is dirty, but since I couln't find anything online, | |
| //I figured this could be handy to someone | |
| //Requirements : Node and Crypto-js (install with npm install crypto-js) | |
| //Remote settings----------------------------------------------------------- |
| #!/bin/bash | |
| LOADING=false | |
| DEBUG=/dev/null | |
| usage() | |
| { | |
| cat << EOF | |
| usage: $0 [options] <DBNAME> |
Simple helper file for standard text sizes in material design. The sizes are provided by the material design documentation https://www.google.com/design/spec/style/typography.html#typography-roboto
Too many type sizes and styles at once can wreck any layout. A typographic scale is a limited set of type sizes that work well together, along with the layout grid. The basic set of styles are based on a typographic scale of 12, 14, 16, 20, and 34.
This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :