in OS X 10.4 to macOS sierra 10.12 and maybe higher!
Copy this entire code block and paste it into your terminal and push Return to create this file for you with correct permissions. It will (probably) ask for your password:
#!/usr/bin/env node | |
const fs = require('fs') | |
// Change your version you want. eg: 11.8.0 | |
var ggPlayServiceVersion = '11.8.0' | |
// Folder package library, find it in node_modules. | |
var folderLibrary = [ | |
'react-native-onesignal', | |
'react-native-admob', |
in OS X 10.4 to macOS sierra 10.12 and maybe higher!
Copy this entire code block and paste it into your terminal and push Return to create this file for you with correct permissions. It will (probably) ask for your password:
#!/usr/bin/env python | |
import asyncio | |
import json | |
import random | |
import sys | |
import time | |
import requests | |
import click | |
import mapbox |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft
, elem.offsetTop
, elem.offsetWidth
, elem.offsetHeight
, elem.offsetParent
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
<toolSet name="Code Checking"> | |
<tool name="Flake8" showInMainMenu="true" showInEditor="true" showInProject="true" showInSearchPopup="true" disabled="false" useConsole="true" showConsoleOnStdOut="false" showConsoleOnStdErr="false" synchronizeAfterRun="true"> | |
<exec> | |
<option name="COMMAND" value="/usr/local/bin/flake8" /> | |
<option name="PARAMETERS" value="--max-complexity 10 $FilePath$" /> | |
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$" /> | |
</exec> | |
<filter> | |
<option name="NAME" value="Filter 1" /> | |
<option name="DESCRIPTION" /> |
# -*- coding: utf-8 -*- | |
"""Add permissions for proxy model. | |
This is needed because of the bug https://code.djangoproject.com/ticket/11154 | |
in Django (as of 1.6, it's not fixed). | |
When a permission is created for a proxy model, it actually creates if for it's | |
base model app_label (eg: for "article" instead of "about", for the About proxy | |
model). |
# rsyslog v5 configuration file | |
#### MODULES #### | |
$ModLoad imuxsock # provides support for local system logging (e.g. via logger command) | |
$ModLoad imklog # provides kernel logging support (previously done by rklogd) | |
#$ModLoad immark # provides --MARK-- message capability | |
# Provides UDP syslog reception | |
$ModLoad imudp |
# Based on https://github.com/ansible/ansible/blob/devel/examples/playbooks/postgresql.yml | |
--- | |
- hosts: postgres.vm | |
sudo: yes | |
tasks: | |
- name: ensure latest postgres & postgis packages are latest | |
action: apt pkg=$item update_cache=yes state=latest | |
with_items: |