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
| #!/usr/bin/env python3 | |
| import os, platform, time, webbrowser | |
| import requests | |
| from bs4 import BeautifulSoup | |
| URL = 'http://service.berlin.de/terminvereinbarung/termin/tag.php?termin=1&dienstleister%5B%5D=122210&dienstleister%5B%5D=122217&dienstleister%5B%5D=122219&dienstleister%5B%5D=122227&dienstleister%5B%5D=122231&dienstleister%5B%5D=122238&dienstleister%5B%5D=122243&dienstleister%5B%5D=122252&dienstleister%5B%5D=122260&dienstleister%5B%5D=122262&dienstleister%5B%5D=122254&dienstleister%5B%5D=122271&dienstleister%5B%5D=122273&dienstleister%5B%5D=122277&dienstleister%5B%5D=122280&dienstleister%5B%5D=122282&dienstleister%5B%5D=122284&dienstleister%5B%5D=122291&dienstleister%5B%5D=122285&dienstleister%5B%5D=122286&dienstleister%5B%5D=122296&dienstleister%5B%5D=150230&dienstleister%5B%5D=122301&dienstleister%5B%5D=122297&dienstleister%5B%5D=122294&dienstleister%5B%5D=122312&dienstleister%5B%5D=122314&dienstleister%5B%5D=122304&dienstleister%5B%5D=122311&dienstleister%5B%5D=122309&dienstleister%5B%5D=317869&die |
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 lightMachine = Machine({ | |
| id: 'light', | |
| initial: 'green', | |
| states: { | |
| green: { | |
| on: { | |
| TIMER: 'yellow', | |
| POWER_OUTAGE: 'flashingRed', | |
| } | |
| }, |
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 BASE_URL = "https://rickandmortyapi.com/api"; | |
| const HEADERS = { | |
| "Content-Type": "application/json", | |
| Accept: "application/json", | |
| }; | |
| function getCharacters( | |
| name | |
| ) { |
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 registerMachine = Machine({ | |
| id: 'intercomLogin', | |
| initial: 'unregistered', | |
| context: { | |
| retries: 0 | |
| }, | |
| states: { | |
| unregistered: { | |
| on: { |
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 axios from 'axios'; | |
| import { | |
| getAccessToken, | |
| getRefreshToken, | |
| } from '../auth/auth'; | |
| const api = axios.create({ | |
| baseURL: 'http://localhost:3000', | |
| timeout: 2000, | |
| headers: { |
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 {Image, View} from 'react-native'; | |
| import useImageCache from './useImageCache'; | |
| const CachedImage = ({uri, style, ...rest}) => { | |
| const source = useImageCache(uri); | |
| return source ? ( | |
| <Image source={{uri: source}} style={style} {...rest} /> | |
| ) : ( |
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 compose = (...fns) => x => fns.reduceRight((acc, fn) => fn(acc), x); |
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
| // gatsby-node.js | |
| const path = require('path'); | |
| const crypto = require('crypto'); | |
| const axios = require('axios'); | |
| const { createRemoteFileNode } = require(`gatsby-source-filesystem`); | |
| exports.sourceNodes = ({ actions: { createNode }, createNodeId }) => { | |
| const baseApiUrl = | |
| process.env.NODE_ENV === 'production' |
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" ?> | |
| <!-- SQL XML created by WWW SQL Designer, https://github.com/ondras/wwwsqldesigner/ --> | |
| <!-- Active URL: http://db.lewagon.com/ --> | |
| <sql> | |
| <datatypes db="mysql"> | |
| <group label="Numeric" color="rgb(238,238,170)"> | |
| <type label="Integer" length="0" sql="INTEGER" quote=""/> | |
| <type label="TINYINT" length="0" sql="TINYINT" quote=""/> | |
| <type label="SMALLINT" length="0" sql="SMALLINT" quote=""/> | |
| <type label="MEDIUMINT" length="0" sql="MEDIUMINT" quote=""/> |
NewerOlder