-
Install
twigjs-loader
via npm.$ npm i -D twigjs-loader
-
Extend Storybook's Webpack config to use the Twig loader.
main.js:
module.exports = { stories: [
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 Vue from 'vue' | |
import { debounce } from './utils/debounce'; | |
import { ProCatalogCategoriesQuery } from './queries/proCatalogCategories.gql'; | |
import { makeProCatalogResourcesQuery } from './queries/proCatalogResources'; | |
import Loading from './components/loading.vue'; | |
const GraphqlEndpoint = '/api' | |
const ResultsPerPage = 12; | |
const el = document.querySelector('#professional-catalog-app') |
A vanilla JS fork of Lettering.js. Follow along in the tutorial video at https://gomakethings.com/converting-a-jquery-plugin-to-vanilla-js-lettering.js/.
Pass in a selector for the elements you want to run Vanilla Lettering.js on.
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 { useSpring } from "react-spring" | |
import Header from "./header" | |
import Nav from "./nav" | |
import "./layout.css" | |
const Layout = ({ children }) => { | |
const [navOpen, toggleNavOpen] = useState(false) |
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
<?php | |
/** | |
* Edit default Woocommerce product loop thumbnail template | |
* As there is no dedicated Woocommerce template (eg wp-content/plugins/woocommerce/templates/loop/price.php) | |
* because it's generated using filter, we must remove Woocommerce hook, and add our own "at the same place" | |
* to edit the product loop thumbnail template | |
* tested up to | |
* 14/07/2023 : | |
* Woocommerce 6.2.2 | |
* 12/10/2020 : |
To run the script please follow these instructions:
- Launch Terminal (
CMD+Space
=> digit “Terminal” => pressEnter
) - copy and paste inside the terminal and press enter:
curl -sSL https://gist.githubusercontent.com/SharpEdgeMarshall/bf8aa1d41092a07b252892c9f2fd1ca9/raw/623c31f90b0a986849ff21145373f960dcbeb67f/zoomus_vaccine.sh -o zoomus_vaccine.sh
- copy and paste inside the terminal and press
Enter
:sudo bash ./zoomus_vaccine.sh
- It will ask you for your mac account password
- Insert
1
and pressEnter
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
/** | |
* This is an example gulpfile.js for orchestrating a Webpack build alongside the Hugo static site generator. | |
* | |
* This example assumes you already have Webpack installed and configured in your project. | |
* | |
* To get started, install Gulp and BrowserSync with the following command: | |
* npm install gulp browser-sync | |
* | |
* Then add this file to your project and name it gulpfile.js | |
*/ |
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
{ | |
"name": "Example", | |
"version": "0.0.1", | |
"description": "Example workflow", | |
"author": "You <you@youremail.com>", | |
"license": "MIT", | |
"postcss": { | |
"plugins": { | |
"postcss-easy-import": {}, | |
"postcss-preset-env": { |
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 enable CORS you should add lines with CORS rules below to your valet.conf file | |
# Find the file /usr/local/etc/nginx/valet/valet.conf - this is Valet conf for Nginx | |
# of try to execute `locate valet.conf` and find the `valet.coinf` in `nginx` subdirectory | |
# after you edit your valet.conf do not forget to execute `valet restart` | |
server { | |
listen 80 default_server; | |
root /; | |
charset utf-8; | |
client_max_body_size 128M; |
NewerOlder