Remove imagemagick
sudo apt-get --purge remove imagemagick
sudo apt autoremove
Install Required package:
sudo apt-get install build-essential
sudo apt-get install checkinstall
import { HttpClient } from '@angular/common/http'; | |
import { Injectable } from '@angular/core'; | |
import { environment } from '@env/environment'; | |
import { Network } from '@ionic-native/network/ngx'; | |
import { AlertController, Platform } from '@ionic/angular'; | |
import { Storage } from '@ionic/storage'; | |
import { forkJoin, from, Observable, of } from 'rxjs'; | |
import { finalize, switchMap } from 'rxjs/operators'; | |
import { StoredRequest } from '../../models/request'; |
import { Network } from '@ionic-native/network/ngx'; | |
import { AlertController, Platform } from '@ionic/angular'; | |
export class InitUserProvider { | |
disconnectSubscription: any; | |
connectSubscription: any; | |
networkStatus = true; | |
constructor(private network: Network, private platform: Platform) { |
#!/bin/sh | |
DATE=`date +%Y-%m-%d__%H-%M` | |
BACKUP_NAME=$DATE.tar.gz | |
DIR_TO_BACKUP='dir/to/backup' | |
# next differential backup | |
tar -czg snapshot.snar -f $BACKUP_NAME $DIR_TO_BACKUP |
Remove imagemagick
sudo apt-get --purge remove imagemagick
sudo apt autoremove
Install Required package:
sudo apt-get install build-essential
sudo apt-get install checkinstall
//Zoom/Pan Component | |
//by Rick Companje, Nov 1, 2018. | |
//Enjoy! | |
var img; | |
var w, h, tow, toh; | |
var x, y, tox, toy; | |
var zoom = .01; //zoom step per mouse tick | |
function preload() { |
/* If you've messed up and need to remove all the tables. */ | |
DROP TABLE listings.person CASCADE; | |
DROP TABLE listings.property CASCADE; | |
DROP TABLE listings.agency CASCADE; | |
DROP TABLE listings.agent CASCADE; | |
DROP TABLE listings.listing CASCADE; | |
DROP TABLE listings.offer CASCADE; |
/** | |
* @param {string} eventType | |
* @param {string} selector | |
* @param {function} callback | |
*/ | |
function on(eventType, selector, callback) { | |
document.body.addEventListener(eventType, function (event) { | |
if (event.target.matches(selector)) { | |
callback.call(event.target); | |
} |
<?php | |
// WC_Checkout | |
/** | |
* Add coupon lines to the order. | |
* | |
* @param WC_Order $order Order instance. | |
* @param WC_Cart $cart Cart instance. | |
*/ |
EIP 1011 - Hybrid Casper FFG proposes further reducing PoW block reward from 3 ETH to 0.6 ETH. The EIP briefly mentions that this is "because the security of the chain is greatly shifted from PoW difficulty to PoS finality and because rewards are now issued to both validators and miners." This document is to serve as an addendum to that statement, providing additional data, analysis, and arguments.
We aim to show that in Hybrid Casper FFG with an 80% reduction in block reward:
/* | |
* Add our Custom Fields to simple products | |
*/ | |
function mytheme_woo_add_custom_fields() { | |
global $woocommerce, $post; | |
echo '<div class="options_group">'; | |
// Text Field |