Example on how to run locally an AWS Lambda via API Gateway using localstack.
Based on...
<body class="antialiased sans-serif bg-gray-100"> | |
<div x-data="app()" x-init="[initDate(), getNoOfDays()]" x-cloak> | |
<div class="container mx-auto px-4 py-2 md:py-24"> | |
<!-- <div class="font-bold text-gray-800 text-xl mb-4"> | |
Schedule Tasks | |
</div> --> | |
<div class="bg-white rounded-lg shadow overflow-hidden"> |
<?php | |
/** | |
* Reference: | |
* - http://www.libnfc.org/api/examples_page.html | |
* - https://github.com/nfc-tools/libnfc/blob/master/examples/nfc-poll.c | |
* | |
* Tested: | |
* - PaSoRi RC-S330 | |
* | |
* Example Output: |
<x-filament-widgets::widget> | |
<x-filament::tabs x-data="{ activeTab: 'tab1' }" class="flex flex-col"> | |
<div class="mt-2 w-full flex flex-row"> | |
<x-filament::tabs.item alpine-active="activeTab === 'tab1'" tag="a" x-on:click="activeTab = 'tab1'"> | |
Tab 1 | |
</x-filament::tabs.item> | |
<x-filament::tabs.item alpine-active="activeTab === 'tab2'" tag="a" x-on:click="activeTab = 'tab2'" > | |
Tab 2 | |
</x-filament::tabs.item> |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>AR Demo</title> | |
<script src="https://aframe.io/releases/0.6.1/aframe.min.js"></script> | |
<script src="https://jeromeetienne.github.io/AR.js/aframe/build/aframe-ar.js"></script> | |
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script> | |
<meta name="apple-mobile-web-app-capable" content="yes"> | |
<script> | |
// We're going to register a custom event listener through a-frame that will fire |
Example on how to run locally an AWS Lambda via API Gateway using localstack.
Based on...
const {DisconnectReason, useMultiFileAuthState} = require("@whiskeysockets/baileys") | |
const util = require('util') | |
const makeWASocket = require('@whiskeysockets/baileys').default | |
async function connectZap(){ | |
const {state, saveCreds} = await useMultiFileAuthState("auth_info_baileys") | |
const sock = makeWASocket({ | |
printQRInTerminal : true, | |
auth:state | |
}) |
<?php | |
interface Pass { | |
public funcion execute(); | |
} | |
class Pass1 implements Pass{ | |
public funcion execute(){ | |
// todo | |
} |
<?php | |
$data = [ | |
[ | |
'id'=>2, | |
'name'=>'asd' | |
] | |
]; | |
$strutrura = new stdClass; |
{{$titulo}} | |
<script> | |
let variavel | |
function addField(field){ | |
variavel += `<input name="field[${field}]" />` | |
} | |
</script> |
<?php | |
use Illuminate\Support\ServiceProvider; | |
use Illuminate\Database\Eloquent\Builder; | |
use Illuminate\Support\Arr; | |
class AppServiceProvider extends ServiceProvider | |
{ | |
// ... |