Put these code in your app.
<style>
.fix-fouc {
opacity: 0;
/* use this one if you need more compatibility */
/* display: none; */
}
</style>
# Path to your oh-my-zsh installation. | |
export ZSH=~/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="robbyrussell" | |
# Uncomment the following line to use case-sensitive completion. |
# Thanks to this post: | |
# http://blog.ikato.com/post/15675823000/how-to-install-consolas-font-on-mac-os-x | |
$ brew install cabextract | |
$ cd ~/Downloads | |
$ mkdir consolas | |
$ cd consolas | |
$ curl -O http://download.microsoft.com/download/f/5/a/f5a3df76-d856-4a61-a6bd-722f52a5be26/PowerPointViewer.exe | |
$ cabextract PowerPointViewer.exe | |
$ cabextract ppviewer.cab |
/** | |
* GradientArray • Steps gradient. | |
* @author Siamak Mokhtari <hi@siamak.work> | |
* @date 06/21/16. | |
*/ | |
class GradientArray { | |
// Convert a hex color to an RGB array e.g. [r,g,b] | |
// Accepts the following formats: FFF, FFFFFF, #FFF, #FFFFFF | |
hexToRgb(hex) { | |
let r, g, b, parts; |
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://code.jquery.com/jquery-1.9.1.js"></script> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<h3>Image Validator: </h3> |
Put these code in your app.
<style>
.fix-fouc {
opacity: 0;
/* use this one if you need more compatibility */
/* display: none; */
}
</style>
import {Component, ElementRef, ViewChild} from '@angular/core'; | |
import {NavController, NavParams, ViewController} from 'ionic-angular'; | |
@Component({ | |
selector: 'page-image-preview-modal', | |
templateUrl: 'image-preview-modal.html', | |
}) | |
export class ImagePreviewModalPage { | |
@ViewChild('myImg') myImg:ElementRef; |
server { | |
listen 80; | |
server_name localhost; | |
root /Users/YOUR_USERNAME/Sites; | |
access_log /Library/Logs/default.access.log main; | |
location / { | |
include /usr/local/etc/nginx/conf.d/php-fpm; | |
} |
server { | |
listen 80; | |
index index.php index.html index.htm; | |
root /var/www/example/public/; | |
server_name example.com; | |
location ^~ /api { | |
try_files $uri /index.php?$query_string; | |
} |
sudo apt install vim zip unzip git node
git https://stackoverflow.com/questions/7335420/global-git-ignore
git config --global core.excludesfile '~/.gitignore'