Create and initialize your a directory for your Express application.
$ mkdir node-knex-demo
$ cd node-knex-demo
$ npm init| import { createContext, ReactNode, useEffect, useState } from 'react' | |
| type Theme = 'light' | 'dark'; | |
| type ThemeContextProviderProps = { | |
| children: ReactNode; | |
| } | |
| type ThemeContextType = { | |
| theme: Theme; |
| const url = '/wp-admin/admin-ajax.php' | |
| const data = { | |
| action: 'custom_action', | |
| token: document.querySelector('[name="token"]').value, | |
| name: document.querySelector('[name="name"]').value | |
| } | |
| customRequest(url, data) // ... |
| /* | |
| Hoje iremos MUDAR a vida da pessoa que não te responde no whatsappp... | |
| Que tal enviar mensagens pra ela até obter uma resposta?! | |
| Sensacional não acha?! Mas, somos devs, correto?! Então vamos automatizar esse paranauê! | |
| Para utilizar: | |
| - Abra o web.whatsapp.com; | |
| - Selecione a conversa que você quer; | |
| - Abra o console e cole o código que está no gist; |
| const r2 = require('r2') | |
| let doJsonThing = async (path, propname) => { | |
| let res = await r2(`http://api.com${path}`).json | |
| return res[propname] | |
| } |
| { | |
| "code": 200, | |
| "status": "Ok", | |
| "copyright": "© 2016 MARVEL", | |
| "attributionText": "Data provided by Marvel. © 2016 MARVEL", | |
| "attributionHTML": "<a href=\"http://marvel.com\">Data provided by Marvel. © 2016 MARVEL</a>", | |
| "etag": "753881c8c91423f73b142fce823cd81b44dce62a", | |
| "data": { | |
| "offset": 0, | |
| "limit": 25, |
| // App | |
| import { Component } from '@angular/core'; | |
| @Component({ | |
| selector: 'app', | |
| template: '<span>{{ sayHello() }}</span>', | |
| }) | |
| export class App { | |
| public name: string = 'John'; |
http://appcamp.io/courses/user-interface/layout-simple
http://thompsonemerson.github.io/ionic-collection/
## ionic examples
ionic start ionicApp
ionic start blankApp blank
ionic start tabsApp tabs