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,
function print_table(node)
local cache, stack, output = {},{},{}
local depth = 1
local output_str = "{\n"
while true do
local size = 0
for k,v in pairs(node) do
size = size + 1
end

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
<?php
namespace App\Core\Doctrine\Trait;
use Doctrine\ORM\Mapping as ORM;
use Ramsey\Uuid\UuidInterface;
trait EntityIdTrait
{
/**
@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 / Deferrer.js
Last active June 11, 2018 09:05
Promise Deferrer React Component
import PropTypes from 'prop-types';
import React from 'react';
class Deferred extends React.Component {
static propTypes = {
promise: PropTypes.shape({
then: PropTypes.func.isRequired,
}).isRequired,
then: PropTypes.func.isRequired,
processComponent: PropTypes.element,
@Biromain
Biromain / .htaccess
Created January 18, 2018 09:54
gzip
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
</IfModule>
# Compression pour fichiers CSS