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:artcalendar/widgets/empty.dart'; | |
import 'package:flutter/material.dart'; | |
import 'badge.dart'; | |
class OverflowText extends StatefulWidget { | |
const OverflowText({ | |
Key? key, | |
required this.text, | |
required this.maxLength, | |
}) : super(key: key); |
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:artcalendar/models/enums.dart'; | |
import 'package:artcalendar/screens/artist_screen.dart'; | |
import 'package:artcalendar/screens/exhibition_detail_screen.dart'; | |
import 'package:artcalendar/screens/exhibitor_screen.dart'; | |
import 'package:firebase_dynamic_links/firebase_dynamic_links.dart'; | |
import 'package:get/get.dart'; | |
import 'package:uni_links/uni_links.dart'; | |
import 'constants.dart'; | |
import 'logger.dart'; |
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_dynamic_links/firebase_dynamic_links.dart'; | |
Future<String> getShortLink(String screenName, String id) async { | |
String dynamicLinkPrefix = 'https://example.app/share'; | |
final dynamicLinkParams = DynamicLinkParameters( | |
uriPrefix: dynamicLinkPrefix, | |
link: Uri.parse('$dynamicLinkPrefix/$screenName?id=$id'), | |
androidParameters: const AndroidParameters( | |
packageName: packageName, | |
minimumVersion: 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 Singleton { | |
Singleton._privateConstructor(); | |
static final Singleton _instance = Singleton._privateConstructor(); | |
factory Singleton() { | |
return _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
import 'dart:async'; | |
import 'dart:convert'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/services.dart'; | |
class Localization { | |
Localization(this.locale); | |
final Locale locale; |
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
def decorator_function(original_function): | |
def add_espresso(): | |
print("Add espresso") | |
return original_function() | |
return add_espresso | |
@decorator_function | |
def add_water(): |
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
def decorator_function(original_function): | |
def add_espresso(): | |
print("Add espresso") | |
return original_function() | |
return add_espresso | |
def add_water(): | |
print("Add Water") |
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 threading | |
from flask_api import status | |
from flask_restplus import Resource | |
from src.api.docs.const import * | |
q = queue.Queue() | |
class RequestHandling: |
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
def decorator_func(input_func): | |
def wrapper_func(): | |
return input_func() | |
return wrapper_func | |
def example(): | |
print("I'm example function") |
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
#include <stdio.h> | |
void add(int *a) { | |
*a = (*a) + 10; | |
} | |
int main(void) { | |
int a = 7; | |
add(&a); | |
NewerOlder