This file contains 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 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
// This widget is the root of your application. | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'Flutter Demo', |
This file contains 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
... | |
class _MyHomePageState extends State<MyHomePage> { | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
appBar: AppBar( | |
title: Text(widget.title), | |
), |
This file contains 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
... | |
class _MyHomePageState extends State<MyHomePage> { | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
appBar: AppBar( | |
title: Text(widget.title), | |
), |
This file contains 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 | |
class BowValetDriver extends ValetDriver | |
{ | |
/** | |
* Determine if the driver serves the request. | |
* | |
* @param string $sitePath | |
* @param string $siteName | |
* @param string $uri |
This file contains 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 { Injectable, InternalServerErrorException, Logger } from '@nestjs/common'; | |
import { ConfigService } from '@nestjs/config'; | |
import { HttpRequestService } from './http-request.service'; | |
interface ICinetpayConfig { | |
apikey: string; | |
siteId: string; | |
lang?: string; | |
currency?: string; | |
channels?: PaymentChannel; |
This file contains 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
/^\+225\d(?:0|1|5|7)\d{8}$/ |
This file contains 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 findMerchant(description: string): string | undefined { | |
const Merchants = { | |
Facebook: "fcbk,facebook,fb,facebk", | |
Netflix: "netflix,nl", | |
Tinder: "tinder,gotinder", | |
Amazon: "amzn,amazon", | |
Glovo: "glovo" | |
}; | |
const merchantsKeys = Object.keys(Merchants); |
This file contains 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 | |
// The circuit breaker class | |
class CircuitBreaker | |
{ | |
// The failure threshold | |
private $failureThreshold; | |
// The failure count | |
private $failureCount = 0; |
This file contains 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
class Account { | |
// The name of the account | |
name: string; | |
// The type of the account (e.g. asset, liability, etc.) | |
type: string; | |
// The balance of the account | |
balance: number; |
This file contains 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
/** | |
* Are all the values on p present on o | |
* @param {Object} o object to search | |
* @param {Object} p object of search values | |
* @param {Boolean} [c] are loose equality matches ok? | |
* @return {Boolean} whether there are partial matches | |
*/ | |
const partialMatch = (o, p, c) => | |
Object.keys(p).every(k => | |
p[k] && o[k] |
OlderNewer