Shortcut | Expanded | Description | Flutter Docs |
---|---|---|---|
alertDialog |
Alert Dialog | Creates a showDialog that returns with AlertDialog | View Docs |
animatedBldr |
Animated Builder | Creates an Animated Builder. The child widget is passed to the builder | View Docs |
aspectRatio |
AspectRatio | Creates an AspectRatio | View Docs |
build |
Build Method | Describes the part of the user interface represented by the widget. | |
column |
Column | Creates a Column Widget | View Docs |
container |
Container | Creates a Container Widget | View Docs |
customClipper |
Custom Clipper | Used for creating custom shapes | [View Docs](https://api.flutter. |
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
743511523 |
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
const express = require('express'); | |
const bodyParser = require('body-parser'); | |
const app = express(); | |
app.use(bodyParser.json()); | |
app.post('/webhook', (req, res) => { | |
const data = req.body.data.payload | |
console.log(`Start New message `); | |
console.log(data) | |
// console.log(data.from) |
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
/*Create db function to query a table or relational query*/ | |
CREATE OR REPLACE FUNCTION public.handle_get_user_info() | |
RETURNS TABLE(email text, fullname text) as $$ | |
BEGIN RETURN QUERY | |
SELECT | |
profiles.email, | |
profiles.fullname | |
FROM public.profiles WHERE profiles.id = auth.uid() | |
LIMIT 1; | |
END; |
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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
import "./IERC20.sol"; | |
import "./extensions/IERC20Metadata.sol"; | |
import "../../utils/Context.sol"; | |
/** | |
* @dev Implementation of the {IERC20} interface. |
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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/presets/ERC20PresetFixedSupply.sol"; | |
contract VolaToken is ERC20PresetFixedSupply { | |
constructor() ERC20PresetFixedSupply("Vola", "VOLA", 1000000000 * 10 ** decimals(), msg.sender) { | |
} |
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 | |
namespace App\Providers; | |
use Illuminate\Support\Collection; | |
use Illuminate\Pagination\LengthAwarePaginator; | |
class AppServiceProvider extends ServiceProvider | |
{ | |
public function boot() |
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:firebase_auth/firebase_auth.dart'; | |
import 'package:google_sign_in/google_sign_in.dart'; | |
import 'package:cloud_firestore/cloud_firestore.dart'; | |
import 'package:rxdart/rxdart.dart'; | |
class AuthService { | |
final GoogleSignIn _googleSignIn = GoogleSignIn(); | |
final FirebaseAuth _auth = FirebaseAuth.instance; | |
final Firestore _db = Firestore.instance; |
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 tagExtractString($string, $start, $end) { | |
$string = " ".$string; | |
$init = strpos($string, $start); | |
if ($ini == 0) return ""; | |
$init += strlen($start); | |
$len = strpos($string, $end, $init) - $init; | |
return substr($string, $init, $len); | |
} |
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
const headings = [ ... document.querySelectorAll('h1') ] | |
[{id: 1}, {id: 2}].map(x => x.id) | |
// [1,2] | |
// By @coderitual | |
// https://twitter.com/coderitual/status/1112297299307384833 | |
// Remove any duplicates from an array of primitives. |