SASS Versions of
- Fontawesome 5
- Bootstrap 4
in Phoenix 1.3 and 1.4 via Webpack
| public function index(Request $request) | |
| { | |
| $sortBy = 'id'; | |
| $orderBy = 'desc'; | |
| $perPage = 20; | |
| $q = null; | |
| if ($request->has('orderBy')) $orderBy = $request->query('orderBy'); | |
| if ($request->has('sortBy')) $sortBy = $request->query('sortBy'); | |
| if ($request->has('perPage')) $perPage = $request->query('perPage'); |
SASS Versions of
in Phoenix 1.3 and 1.4 via Webpack
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <title>Add React in One Minute</title> | |
| </head> | |
| <body> | |
| <h2>Add React in One Minute</h2> | |
| <p>This page demonstrates using React with no build tooling.</p> |
| #---------------------------------------# | |
| # Project Ignores # | |
| #---------------------------------------# | |
| # Maven | |
| target/ | |
| pom.xml.tag | |
| pom.xml.releaseBackup | |
| pom.xml.versionsBackup | |
| pom.xml.next |
| version: '3' | |
| services: | |
| db: | |
| image: mysql:5.7 | |
| volumes: | |
| - db_data:/var/lib/mysql | |
| restart: always | |
| environment: | |
| MYSQL_ROOT_PASSWORD: somewordpress |
| FROM php:7.1-fpm-alpine | |
| RUN apk add --update \ | |
| autoconf \ | |
| g++ \ | |
| libtool \ | |
| make \ | |
| && docker-php-ext-install mbstring \ | |
| && docker-php-ext-install mysqli \ |
| <?php | |
| /** | |
| * The following example combines Fat-Free Framework | |
| * with the PHP Debugger (Toolbar) Tracy. | |
| * | |
| * @see https://github.com/bcosca/fatfree/issues/999 | |
| */ | |
| use Tracy\Debugger; |
Please note: there is an APT package called "fonts-powerline" which is tested and working for Ubuntu 20.04 which achieves the same outcome. Try "sudo apt install fonts-powerline"
If you're using Z Shell and a special prompt theme designed with Powerline fonts in mind, you'll need to install them on your machine. These are the most clear and cut-down instructions that I've found to work with Ubuntu 16.10 (also confirmed working for 17.04, 17.10, 18.04, 19.10) and all credit goes to renshuki's Ubuntu 14.04 + Terminator + Oh My ZSH with Agnoster Theme gist. I've extracted just the Powerline font instructions - my personal setup uses Prezto instead of Oh My ZSH (not included here).
cd ~
Sometimes you may want to undo a whole commit with all changes. Instead of going through all the changes manually, you can simply tell git to revert a commit, which does not even have to be the last one. Reverting a commit means to create a new commit that undoes all changes that were made in the bad commit. Just like above, the bad commit remains there, but it no longer affects the the current master and any future commits on top of it.
git revert {commit_id}
Deleting the last commit is the easiest case. Let's say we have a remote origin with branch master that currently points to commit dd61ab32. We want to remove the top commit. Translated to git terminology, we want to force the master branch of the origin remote repository to the parent of dd61ab32:
| 'use strict'; | |
| /* global XMLHttpRequest */ | |
| /* global process.env.API_IMGUR */ | |
| const querystring = require('querystring'); | |
| /** | |
| * Fetches a page of results from the Imgur API. | |
| * | |
| * @param {String} options.q Query |