Skip to content

Instantly share code, notes, and snippets.

View shanerbaner82's full-sized avatar
🎯
Focusing

Shane Rosenthal shanerbaner82

🎯
Focusing
View GitHub Profile

NativePHP: The Future of App Development is Here, and It's Mind-Blowing!

Unless you have been living under a rock for the last couple of weeks, you are probably already familiar with NativePHP. NativePHP, created by Marcel Pociot at BeyondCode, allows us Laravel Devs to leverage ALL the working knowledge we already have with Laravel to build native Mac, Windows, and Linux applications.

I recently saw Christopher Rumpel working on an app that let's you store the timezones of your friends so you can see what time it is at a glance. Follow along with me as we put together a Mac MenuBar application to know the local time of each member of your team.

@shanerbaner82
shanerbaner82 / Website.php
Created February 11, 2023 20:48
NOT MY CODE
<?php
namespace App\Models;
//use App\Http\Helpers\WebsiteHelper;
//use App\Services\GetChargeBeeSubscriptionsService;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
class Website extends Model
<wsdl:definitions xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://COMPANY.org/WtsmWS/ServiceRequests" xmlns:s1="http://COMPANY.com/WtsmWS/Common" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://COMPANY.org/WtsmWS/ServiceRequests">
<wsdl:types>
<s:schema elementFormDefault="qualified" targetNamespace="http://COMPANY.org/WtsmWS/ServiceRequests">
<s:import namespace="http://COMPANY.com/WtsmWS/Common"/>
<s:element name="CreateServiceRequest">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="NewServiceRequestInfo" type="tns:NewServiceRequest"/>
const palettes = [
["#3761d4","#f1ece7","#e1749a","#c74b51","#ebcc45","#5d8edf","#2f3379","#6f782b"],
["#577b88","#dd7c48","#f1dabf","#614379"],
["#d7d6d5","#bb4b41","#5a433d","#448db8"],
]
let size = 1000;
@shanerbaner82
shanerbaner82 / MintFunction
Created August 31, 2021 17:36
Mint w Gas
async mint(context, amount) {
const mintValue = web3.utils.toWei((amount * context.state.contractData.nftPrice).toString(), 'ether');
const contract = new web3.eth.Contract(ABI, process.env.CONTRACT_ADDRESS);
try {
const value = web3.utils.toHex(mintValue);
const data = contract.methods.mintFunction(amount).encodeABI();
const transactionParameters = {
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Http;
use Illuminate\Support\Facades\Storage;
class UploadToIpfs extends Command
{
<template>
<div>
<button @click="send">Fetch Results</button>
<div v-if="results">
<pre>
{{results}}
</pre>
</div>
</div>
</template>
<!DOCTYPE html>
<html lang="en" class="h-100">
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-177388097-1"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://js.stripe.com/v3/"></script>
<script>
window.dataLayer = window.dataLayer || [];

Keybase proof

I hereby claim:

  • I am shanerbaner82 on github.
  • I am sdrosenthal (https://keybase.io/sdrosenthal) on keybase.
  • I have a public key ASDVP4cTKFFRDfsLNUhQjuc0dYjJFRKx8xZKKaodsjjaaQo

To claim this, I am signing this object:

<!DOCTYPE html>
<html lang="en">
<head>
<title>
@yield('title')
</title>
<!-- META -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=11"/>