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
.isDebugging .debug { | |
outline: 1px solid rgba(200, 100, 50, 0.9); | |
} | |
.isDebugging .debug * { | |
outline: 1px solid rgba(200, 100, 50, 0.9); | |
} |
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
const isZoningMigrationEnabled = | |
this.appContext.project.flags?.zonings?.["zoningMigration"] && | |
this.appContext.config.featureFlags["zoningV2Migration"]; |
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
import assert from "assert"; | |
var easyUnpack = (values: any[]): any[] => [ | |
values[0], | |
values[2], | |
values[values.length - 2], | |
]; | |
console.log("Example:"); | |
console.log(easyUnpack([1, 2, 3, 4, 5, 6, 7, 9])); |
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
import React, { useState, useContext } from 'react'; | |
import PropTypes from 'prop-types'; | |
import { | |
Grid, | |
List, | |
ListItem, | |
ListItemIcon, | |
ListItemText, | |
Collapse, | |
Typography, |
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
handleChange = (event) => { | |
const { target: { name, value } } = event | |
this.setState({ [name]: value }) | |
} |
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
import React from 'react' | |
import axios from 'axios'; | |
import { connect } from 'react-redux'; | |
import "@fullcalendar/core/main.css"; | |
import "@fullcalendar/daygrid/main.css"; | |
import "@fullcalendar/timegrid/main.css"; | |
import FullCalendar from '@fullcalendar/react' | |
import dayGridPlugin from '@fullcalendar/daygrid' | |
import timeGridPlugin from '@fullcalendar/timegrid' |
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
import React, { useEffect, useState } from 'react'; | |
import { connect } from 'react-redux'; | |
import RoomForm from '../../hooks/RoomHooks'; | |
import RoomServiceApi from './RoomServiceApi'; | |
const RoomUpdate = ({ update, formName, saveButton, roomId, children }) => { | |
const { inputs, setInputs } = useState({ | |
nombre_de_lits: '', | |
logement: 'Bengalow', | |
lit_simple: '', |
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
import { useState } from 'react'; | |
const RoomForm = (initialValues, callback) => { | |
const [inputs, setInputs] = useState(initialValues); | |
const handleSubmit = (event) => { | |
// If we are submitting from a modal, we don't want the RoomSearch page to reload, due to the default submit behaviour. | |
if (event && event.target && event.target.name === 'MODAL_FORM') event.preventDefault(); | |
// Then call back |
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
import React from "react"; | |
import { Modal, Button } from 'react-bootstrap'; | |
import Room from './Room.js'; | |
import RoomUpdate from './RoomUpdate'; | |
const RoomModal = (props) => { | |
const isEdit = props.editionMode; | |
const roomUpdate = ({title, action}) => { |
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
import weather | |
import smtp | |
''' | |
Send a greeting email to our customer email list | |
with the daily weather forecast and schedule | |
''' | |
def get_emails(): | |
# Reading emails from a file |