I made this self-reminder public for anyone who need PHP7+ running on older Macs, since I had to do some shaman things to make it work.
- Install Homebrew and ignore all the warnings that your Mac OSX is outdated, just follow the instuctions here:
{ | |
"editor.matchBrackets": "always", | |
"workbench.colorTheme": "Framer Syntax", | |
"workbench.iconTheme": "macos-modern-minimal-mono-icon-theme", | |
"editor.cursorStyle": "block", | |
"editor.fontSize": 15, | |
"editor.fontFamily": "JetBrains Mono", | |
"editor.fontWeight": "normal", | |
"editor.fontLigatures": "'zero'", | |
"editor.tabSize": 2, |
( function() { | |
if( ( "undefined" !== typeof window.orientation ) || ( -1 !== navigator.userAgent.indexOf( "IEMobile" ) ) ) { | |
window.addEventListener( "load", function() { | |
var elements = document.querySelectorAll( ".people-item" ); | |
var observer = new IntersectionObserver( function( entries ) { | |
entries.forEach( function( entry ) { | |
if( entry.isIntersecting ) { | |
entry.target.classList.add( "intersecting" ); | |
} | |
else { |
<?php | |
/** | |
* Creates new user with Administrator capabilities | |
* | |
* Put this code snippet to your theme's functions.php | |
* and change $username, $password and $email. The code | |
* checks if $username does not exist and creates a new | |
* user. | |
* |
I made this self-reminder public for anyone who need PHP7+ running on older Macs, since I had to do some shaman things to make it work.
/** | |
* Check ANY keys exist in an array | |
* | |
* @param $keys | |
* @param $array | |
*/ | |
function __any_keys_exist( $keys, $array ) | |
{ | |
foreach( $keys as $key ) { | |
if( isset( $array[ $key ] ) { |
# 'R' - to rename/move file/folder in the Tree View | |
'.tree-view': | |
'r': 'tree-view:rename' |
// UI Fonts | |
@ui-font-family: "IBM Plex Sans", "SF Pro Text", sans-serif; | |
@ui-font-size: 12px; | |
@editor-font-family: "IBM Plex Mono Zero", "SF Mono", monospace; | |
@editor-font-size: 14px; | |
@editor-line-height: 20px; | |
// Colors | |
@color-black: #111; | |
@color-blue: #007aff; // #4d78cc; |
; Disable <?hh | |
hhvm.hack.lang.look_for_typechecker = false | |
; Enable all PHP7 features | |
hhvm.php7.all = true | |
; Disable caching for static files | |
hhvm.server.expires_default = 1 | |
; Make errors pointing to index.php |
{ | |
"name": "", | |
"description": "", | |
"version": "", | |
"private": true, | |
"author": "Mikita Stankiewicz", | |
"scripts": { | |
"server": "php -S 127.0.0.1:8888 -t ./api/public", | |
"client": "webpack-dev-server --open", | |
"start": "npm run server", |