This file contains hidden or 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 | |
// index.php - Simplified MCP Server entry point | |
// For demonstration, we'll use a simple routing mechanism. | |
// In a real application, you'd use a framework like Laravel, Symfony, etc. | |
$requestMethod = $_SERVER['REQUEST_METHOD']; | |
$requestUri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH); | |
$input = file_get_contents('php://input'); | |
$data = json_decode($input, true); // Decode the incoming JSON payload |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom"> | |
<Document> | |
<name>Volkstaat Boundary.kmz</name> | |
<StyleMap id="m_ylw-pushpin"> | |
<Pair> | |
<key>normal</key> | |
<styleUrl>#s_ylw-pushpin</styleUrl> | |
</Pair> | |
<Pair> |
This file contains hidden or 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
# | |
# Use cached node_modules for faster frontend compile times | |
# on envoyer.io | |
# | |
# Rationale: If you don't want to set up node_modules caching on | |
# every server you deploy to, this drop-in deployment hook serves | |
# a similar purpose. It will symlink every new release to a shared | |
# node_modules folder, cutting out the installation time. | |
# |
This file contains hidden or 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
# Prerequisites: | |
# 1. Have the laravel/vapor-cli dependency in your project, so that composer install catches it | |
# 2. Set the VAPOR_API_TOKEN environment variable to your Vapor API key | |
# Details in the documentation: https://docs.vapor.build/1.0/projects/deployments.html#deploying-from-ci | |
# This pipeline will build a PHP 7.2 environment with dependencies, run the standard | |
# phpunit tests, then deploy to the staging environment on Vapor. | |
image: php:7.2.22-alpine |
This file contains hidden or 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
function onOpen() { | |
var ui = SpreadsheetApp.getUi(); | |
ui.createMenu('Integrations') | |
.addItem('Fetch Harvest', 'fetchHarvestData') | |
.addToUi(); | |
} | |
function fetchHarvestData() { | |
// Update monthly, or read from another sheet |
This file contains hidden or 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 | |
// Ugly as sin, but gets the latest version URL for the app.js file | |
// The Vue app will query this every 60 seconds | |
Route::get('/version', function(){ | |
$manifest = file_get_contents(public_path('mix-manifest.json')); | |
$manifest = json_decode($manifest); | |
return response()->json([ | |
'latest' => $manifest->{'/js/app.js'} | |
]); |
This file contains hidden or 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
function onOpen() { | |
var ui = SpreadsheetApp.getUi(); | |
ui.createMenu('My Business') | |
.addItem('Refresh Timesheets', 'getTimesheets') | |
.addToUi(); | |
} | |
function getTimesheets() { | |
// Read API token and Workspace ID from Configuration tab |
This file contains hidden or 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 | |
function onStart() | |
{ | |
$flow = curl_init("https://prod-22.westeurope.logic.azure.com:443/..."); | |
curl_setopt($flow, CURLOPT_RETURNTRANSFER, TRUE); | |
curl_setopt($flow, CURLOPT_POST, TRUE); | |
curl_setopt($flow, CURLOPT_HTTPHEADER, [ | |
'Content-Type: application/json' |
This file contains hidden or 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 | |
namespace App\Http\Controllers; | |
use App\Http\Requests; | |
use Illuminate\Http\Request; | |
use App\Jobs\SendOpened; | |
class PixelController extends Controller |
NewerOlder