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 | |
$apiEndpoint = 'https://api.na1.insightly.com/v3.1/Contacts'; | |
$apiKey = 'your-api-key'; | |
// | |
// Create a new contact | |
// | |
$data = [ |
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 | |
| |
use Illuminate\Http\Request; | |
use Illuminate\Http\Response; | |
| |
class UserSettingsController extends Controller | |
{ | |
// Do not expose a secret key | |
public const API_KEY = 'a0080664-f443-49b7-8cf8-582f25cfd0e6'; | |
|
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 declare(strict_types=1); | |
namespace CultuurNet\UDB3\ReadModel; | |
final class OfferDocumentRepository implements DocumentRepository | |
{ | |
/** | |
* @var DocumentRepository | |
*/ | |
private $eventDocumentRepository; |
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
->select('*') | |
->from('users u') | |
->where( | |
[ | |
'is_admin'=>true | |
] | |
) | |
->andWhere( | |
[ | |
'OR', |
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(new MaterialApp( | |
title: 'divider', | |
home: new ExpandedWidget(), | |
)); | |
} | |
class ExpandedWidget extends StatelessWidget { |
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 HorizontalSlidingPageRoute<T> extends MaterialPageRoute<T> { | |
HorizontalSlidingPageRoute({ | |
WidgetBuilder builder, | |
RouteSettings settings: const RouteSettings(), | |
maintainState: true, | |
}) | |
: super(builder: builder, settings: settings, maintainState: maintainState); | |
@override | |
Widget buildTransitions(BuildContext context, Animation<double> animation, |