Skip to content

Instantly share code, notes, and snippets.

@Biromain
Biromain / tsconfig.json
Created October 12, 2021 07:26 — forked from frivolta/tsconfig.json
TsConfig Boilerplate
{
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"lib": ["dom", "es6", "es2017", "esnext.asynciterable"],
"sourceMap": true,
"outDir": "./dist",
"moduleResolution": "node",
"removeComments": true,
"noImplicitAny": true,

Would it be possible to include an iCal file attachment to the Access-A-Ride advance notification emails with a 30 minute window from the specified pickup time (that is the window in which Access-A-Ride drivers need to arrive)?

For example: if my Access-A-Ride is supposed to pick me up at 10:34 am from 1000 Broadway Ave and then again at 8:00 pm from 900 Jay St., include a calendar event (a .ics file) that would look similar to the following, attached to the advance trip notification:

BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
BEGIN:VEVENT
SUMMARY:Access-A-Ride Pickup
@Biromain
Biromain / ExternalAvailabilityChecker.php
Created April 19, 2019 19:20
Decorate AvailabitiyChecker. Create a new class `ExternalAvailabilityChecker` and place it, e.g., in `src/Inventory/Checker/ExternalAvailabilityChecker.php`. Then edit your `services.yaml` file and add lines from this Gist.
<?php
declare(strict_types=1);
namespace App\Inventory\Checker;
use Sylius\Component\Inventory\Checker\AvailabilityCheckerInterface;
use Sylius\Component\Inventory\Model\StockableInterface;
class ExternalAvailabilityChecker implements AvailabilityCheckerInterface
@Biromain
Biromain / filed_types_D8_output.txt
Created January 8, 2019 15:25 — forked from sobi3ch/filed_types_D8_output.txt
Drupal 8 filed types with descriptions
Label: Comments
Machine name: comment
Descritpion: This field manages configuration and presentation of comments on an entity.
Provider: comment
---
Label: Date
Machine name: datetime
Descritpion: Create and store date values.
Provider: datetime
---
@Biromain
Biromain / sketch-never-ending.md
Created June 12, 2018 08:36 — forked from Bhavdip/sketch-never-ending.md
Modify Sketch to never ending trial

###Sketch trial non stop

Open hosts files:

$ open /private/etc/hosts

Edit the file adding:

127.0.0.1 backend.bohemiancoding.com

127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com

@Biromain
Biromain / merge.js
Created December 12, 2017 09:10 — forked from icebob/merge.js
Merge GraphQL schemas & resolvers in modules
let moduleQueries = [];
let moduleTypeDefinitions = [];
let moduleMutations = [];
let moduleResolvers = [];
let files = config.getGlobbedFiles(path.join(__dirname, "**", "*schema.js"));
// Load schema files
files.forEach((file) => {
let moduleSchema = require(path.resolve(file));
@Biromain
Biromain / lamp-stack-osx-virtualhostx.md
Created September 4, 2017 07:43 — forked from pwenzel/lamp-stack-osx-virtualhostx.md
LAMP stack on OSX with Homebrew, built-in Apache, multiple PHP versions, VirtualhostX optional

This guide shows how to set up a PHP and MySQL development environment using OSX's built-in Apache, using Homebrew to install necessary components. With this strategy, you can use different versions of PHP for certain virtual hosts.

VirtualHostX is a convenient way to manage development sites, but not required.

Install PHP and MySQL with Homebrew

brew update
brew install php56
brew install php56-mcrypt
brew install mysql