In the root of your project, add .gitlab-ci.yml with the configuration below.
image: node:latest
stages:| import { persist, PersistOptions } from "zustand/middleware" | |
| import { StateCreator, StoreApi, StoreMutatorIdentifier } from "zustand/vanilla" | |
| type DeferredPersistOptions<S extends object> = PersistOptions<S> & { | |
| hydrateOnResolve?: Promise<void> | |
| } | |
| const DEFAULT_GET_STORAGE = () => localStorage | |
| export default function deferredPersist< |
| version: '3' | |
| services: | |
| db: | |
| image: mysql:5.7 | |
| volumes: | |
| - db_data:/var/lib/mysql | |
| restart: always | |
| environment: | |
| MYSQL_ROOT_PASSWORD: somewordpress |
| var Types = new Map(); | |
| Types.set(Array, function(v) { | |
| var l = v.length; i = 0, a = Array(l); | |
| for (i; i<l; i++) { | |
| a[i] = v[i]; | |
| } | |
| return a; | |
| }); | |
| Types.set(Number, function(v) { | |
| return v * 1; |
| // Exemplo de requisição GET | |
| var ajax = new XMLHttpRequest(); | |
| // Seta tipo de requisição e URL com os parâmetros | |
| ajax.open("GET", "minha-url-api.com/?name=Henry&lastname=Ford", true); | |
| // Envia a requisição | |
| ajax.send(); | |
| // Cria um evento para receber o retorno. |
Git freak como sou, precisava compartilhar algo útil sobre ele, claro. E, já que não vejo muito por aí o pessoal usando, resolvi falar dos alias do git! É um recurso que eu uso muito, e nunca entendi porque muitas pessoas não são adeptas. 😕
Pelo nome você já deve perceber que os alias no git são atalhos. Atalhos pro quê? São atalhos para comandos do git e até comandos shell se você quiser. E é bem fácil cadastrar um alias:
$ git config --global alias.st status
#Setting up Nginx on Your Local System ###by Keith Rosenberg
##Step 1 - Homebrew The first thing to do, if you're on a Mac, is to install homebrew from http://mxcl.github.io/homebrew/
The command to type into terminal to install homebrew is:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
| #!/bin/bash -e | |
| function compressResource { | |
| gzip --best --stdout "$1" >"$1.gz" | |
| touch --no-create --reference="$1" "$1.gz" | |
| echo "Compressed: $1 > $1.gz" | |
| } | |
| function main { |
| [ | |
| {"name":"Alabama","alpha-2":"AL"}, | |
| {"name":"Alaska","alpha-2":"AK"}, | |
| {"name":"Arizona","alpha-2":"AZ"}, | |
| {"name":"Arkansas","alpha-2":"AR"}, | |
| {"name":"California","alpha-2":"CA"}, | |
| {"name":"Colorado","alpha-2":"CO"}, | |
| {"name":"Connecticut","alpha-2":"CT"}, | |
| {"name":"Delaware","alpha-2":"DE"}, | |
| {"name":"District of Columbia","alpha-2":"DC"}, |
Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.
For the sake of this example, let’s pretend the subfolder containing your site is named dist.
Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).