Amina Semhar

Amina Semhar

1605447840

Google Fonts module for NuxtJS

@nuxtjs/google-fonts

Google Fonts module for NuxtJS

Features

Setup

  1. Add @nuxtjs/google-fonts dependency to your project
yarn add --dev @nuxtjs/google-fonts # or npm install --save-dev @nuxtjs/google-fonts
  1. Add @nuxtjs/google-fonts to the buildModules section of nuxt.config.js
{
  buildModules: [
    // Simple usage
    '@nuxtjs/google-fonts',

    // With options
    ['@nuxtjs/google-fonts', { /* module options */ }]
  ]
}

⚠️ If you are using Nuxt < v2.9 you have to install the module as a dependency (No --dev or --save-dev flags) and use modules section in nuxt.config.js instead of buildModules.

Using top level options

export default {
  buildModules: [
    '@nuxtjs/google-fonts'
  ],
  googleFonts: {
    /* module options */
  }
}

Options

families

  • Type: Object
  • Default: {}
{
  families: {
    Roboto: true,
    'Josefin+Sans': true,
    Lato: [100, 300],
    Raleway: {
      wght: [100, 400],
      ital: [100]
    },
  }
}

See https://developers.google.com/fonts/docs/css2#quickstart_guides

display

  • Type: String
  • Default: null

The font-display property lets you control what happens while the font is still loading or otherwise unavailable.

{
  display: 'swap' // 'auto' | 'block' | 'swap' | 'fallback' | 'optional'
}

See https://developers.google.com/fonts/docs/css2#use_font-display

subsets

  • Type: Array[String]|String
  • Default: []

Some of the fonts in the Google Font Directory support multiple scripts (like Latin, Cyrillic, and Greek for example). In order to specify which subsets should be downloaded the subset parameter should be appended to the URL.

See https://developers.google.com/fonts/docs/getting_started#specifying_script_subsets

prefetch

  • Type: Boolean
  • Default: true

This option inject <link rel =" dns-prefetch "href =" https://fonts.gstatic.com/ "/> into your project header.

See https://developer.mozilla.org/en-US/docs/Web/Performance/dns-prefetch

preconnect

  • Type: Boolean
  • Default: true

This option inject <link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin /> into your project header.

See https://developer.mozilla.org/en-US/docs/Web/Performance/dns-prefetch#Best_practices

preload

  • Type: Boolean
  • Default: true

This option inject <link rel="preload" as="style" href="https://fonts.googleapis.com/css2?family=Roboto" /> into your project header, optionally increase loading priority.

See https://developer.mozilla.org/pt-BR/docs/Web/HTML/Preloading_content

useStylesheet

  • Type: Boolean
  • Default: false

This option inject <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto" /> into your project header, recommended for projects that use the AMP module that removes scripts.

download

  • Type: Boolean
  • Default: false

This option you can download css and google sources for your local project. This means that your project will not depend on these external resources.

Note: The options below are only used when this option is enabled.

base64

  • Type: Boolean
  • Default: false

This option encode the fonts and inject directly into the generated css file.

inject

  • Type: Boolean
  • Default: true

This option inject the globally generated css file.

See https://nuxtjs.org/api/configuration-css/

overwriting

  • Type: Boolean
  • Default: false

This option prevents files from being downloaded more than once.

outputDir

  • Type: String
  • Default: this.options.dir.assets

Specifies the output directory for downloaded files.

stylePath

  • Type: String
  • Default: 'css/fonts.css'

Specifies the path of the css file to be generated.

fontsDir

  • Type: String
  • Default: 'fonts'

Specifies the directory where the fonts will be downloaded.

Note: This option is used if the base64 option is disabled.

fontsPath

  • Type: String
  • Default: '~assets/fonts'

Specifies the path of the fonts within the generated css file.

Note: This option is used if the base64 option is disabled.

Development

  1. Clone this repository
  2. Install dependencies using yarn install or npm install
  3. Start development server using npm run dev

Download Details:

Author: nuxt-community

Source Code: https://github.com/nuxt-community/google-fonts-module

#nuxtjs #vue #vuejs #javascript

What is GEEK

Buddha Community

Google Fonts module for NuxtJS

Google's TPU's being primed for the Quantum Jump

The liquid-cooled Tensor Processing Units, built to slot into server racks, can deliver up to 100 petaflops of compute.

The liquid-cooled Tensor Processing Units, built to slot into server racks, can deliver up to 100 petaflops of compute.

As the world is gearing towards more automation and AI, the need for quantum computing has also grown exponentially. Quantum computing lies at the intersection of quantum physics and high-end computer technology, and in more than one way, hold the key to our AI-driven future.

Quantum computing requires state-of-the-art tools to perform high-end computing. This is where TPUs come in handy. TPUs or Tensor Processing Units are custom-built ASICs (Application Specific Integrated Circuits) to execute machine learning tasks efficiently. TPUs are specific hardware developed by Google for neural network machine learning, specially customised to Google’s Machine Learning software, Tensorflow.

The liquid-cooled Tensor Processing units, built to slot into server racks, can deliver up to 100 petaflops of compute. It powers Google products like Google Search, Gmail, Google Photos and Google Cloud AI APIs.

#opinions #alphabet #asics #floq #google #google alphabet #google quantum computing #google tensorflow #google tensorflow quantum #google tpu #google tpus #machine learning #quantum computer #quantum computing #quantum computing programming #quantum leap #sandbox #secret development #tensorflow #tpu #tpus

What Are Google Compute Engine ? - Explained

What Are Google Compute Engine ? - Explained

The Google computer engine exchanges a large number of scalable virtual machines to serve as clusters used for that purpose. GCE can be managed through a RESTful API, command line interface, or web console. The computing engine is serviced for a minimum of 10-minutes per use. There is no up or front fee or time commitment. GCE competes with Amazon’s Elastic Compute Cloud (EC2) and Microsoft Azure.

https://www.mrdeluofficial.com/2020/08/what-are-google-compute-engine-explained.html

#google compute engine #google compute engine tutorial #google app engine #google cloud console #google cloud storage #google compute engine documentation

Embedding your <image> in google colab <markdown>

This article is a quick guide to help you embed images in google colab markdown without mounting your google drive!

Image for post

Just a quick intro to google colab

Google colab is a cloud service that offers FREE python notebook environments to developers and learners, along with FREE GPU and TPU. Users can write and execute Python code in the browser itself without any pre-configuration. It offers two types of cells: text and code. The ‘code’ cells act like code editor, coding and execution in done this block. The ‘text’ cells are used to embed textual description/explanation along with code, it is formatted using a simple markup language called ‘markdown’.

Embedding Images in markdown

If you are a regular colab user, like me, using markdown to add additional details to your code will be your habit too! While working on colab, I tried to embed images along with text in markdown, but it took me almost an hour to figure out the way to do it. So here is an easy guide that will help you.

STEP 1:

The first step is to get the image into your google drive. So upload all the images you want to embed in markdown in your google drive.

Image for post

Step 2:

Google Drive gives you the option to share the image via a sharable link. Right-click your image and you will find an option to get a sharable link.

Image for post

On selecting ‘Get shareable link’, Google will create and display sharable link for the particular image.

#google-cloud-platform #google-collaboratory #google-colaboratory #google-cloud #google-colab #cloud

Pink  Rosenbaum

Pink Rosenbaum

1597228207

Google Fixes Mysterious Audio Recording Blip in Smart Speakers

Google Home devices reportedly recorded noises even without the “Hey Google” prompt due to the inadvertent rollout of a home security system feature.

After Google Home users started receiving mysterious alerts when their fire alarms went off or their plates smashed in their homes, Google acknowledged that it accidentally rolled out a feature causing the smart devices to record sounds without the voice prompt.

Reports of the privacy faux pas began after one Reddit user reported earlier in August that Google sent him a phone notification saying that the smoke detector in his home had been triggered. Others said they were notified of possible glass breaking when some dishes broke or when they were watching television. These reported incidents surprised Google Home users as the devices are only supposed to record audio when prompted with specific commands, including “Hey Google” or “OK Google.”

Google for its part said that the alerts are part of a subscription service called “Nest Aware,” first launched in May. As part of this service, users of Google cameras, speakers and displays can pay for the devices to detect any “critical” sound in their home and send them an alert on their phones while they are away from their homes. But, while users can sign up for service, Google said that the feature was inadvertently turned on for some users.

“We are aware of an issue that inadvertently enabled sound detection alerts for sounds like smoke alarms or glass breaking on speakers that are not part of a Nest Aware subscription,” a Google spokesperson told Threatpost. “The issue was caused by a recent software update and only impacted a subset of Google Home, Google Home Mini, and Google Home Max speakers. We have since rolled out a fix that will automatically disable sound detection on devices that are not part of Nest Aware.”

#iot #privacy #adt #google #google home #google nest #google privacy #security #smart home

Sahil Kataria

Sahil Kataria

1598605747

Steps for Preparing Ads for your PPC Campaign using Google Adwords

Read the blog to get aware about the Steps required for Preparing Ads for your PPC Campaign using Google Adwords that will help to make you more money.

#learn google ads #steps to create google ads #google ads strategy #how to create google ads #tips for creating google ads