-
Open Terminal
Ctrl+Alt+T
Download Firefox Developer Editiontar file
wget https://download.mozilla.org/?product=firefox-aurora-latest-ssl&os=linux64&lang=en-US
-
Copy tar file to
opt
sudo cp -rp firefox-35.0a2.en-US.linux-x86_64.tar.bz2
-
Open
opt
folder (cd /opt/
) and untar filesudo tar xjf firefox-35.0a2.en-US.linux-x86_64.tar.bz2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Reverse purchase in Google Analytics with Enhanced Ecommerce | |
// Source: https://support.google.com/analytics/answer/1037443?hl=en | |
var items = [ | |
{ | |
id: 573, // original ID | |
price: "57000.00", // original price | |
quantity: "-2500" // negative quantity | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Reverse purchase in Google Analytics with Enhanced Ecommerce | |
// Source: https://support.google.com/analytics/answer/1037443?hl=en | |
var items = [ | |
{ | |
id: 573, // original ID | |
price: "57000.00", // original price | |
quantity: "-2500" // negative quantity | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { src, dest, watch, series, parallel, lastRun } = require('gulp') | |
const pipeline = require('stream').pipeline | |
const fs = require('fs') | |
const sass = require('gulp-sass') | |
const changed = require('gulp-changed') | |
const imagemin = require('gulp-imagemin') | |
const flatten = require('gulp-flatten') | |
const gulpif = require('gulp-if') | |
const cssnano = require('gulp-cssnano') | |
const rename = require('gulp-rename') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState } from 'react'; | |
import PropTypes from 'prop-types'; | |
import { useInView } from 'react-intersection-observer'; | |
import clsx from 'clsx'; | |
import { imageUrlFor } from '../../lib/image-url'; | |
import styles from './picture-asset.module.scss'; | |
| |
const defaultBreakpoints = [1200, 1000, 800, 600, 400]; | |
const DEFAULT_MAX_WIDTH = 1780; | |
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:w="urn:schemas-microsoft-com:office:wordml" | |
xmlns:wx="urn:schemas-microsoft-com:office:auxHint"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>Preview</title> | |
<meta name="viewport" content="width=device-width,initial-scale=1"> |
Getting started:
Related tutorials:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// To remove an item from an array by id: | |
return state.filter(item => item.id !== action.id) | |
// To remove a key from an object by id: | |
let copy = Object.assign({}, state) // assuming you use Object.assign() polyfill! | |
delete copy[action.id] // shallowly mutating a shallow copy is fine | |
return copy | |
// (Bonus) The same with object spread operator proposal: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState, useMemo } from "react" | |
import { calculateTotals } from "./utils" | |
export default function SelectTickets({ | |
context: { workshopData, subscriberCode }, | |
send | |
}) { | |
let initialTicketsToPurchase = useMemo( | |
() => | |
workshopData.ticketTypes.reduce((ticketsToPurchase, type, index) => { |
NewerOlder