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
package main | |
import ( | |
"math" | |
"fmt" | |
) | |
//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | |
//::: ::: | |
//::: This routine calculates the distance between two points (given the ::: |
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 * as React from 'react'; | |
import { KeypadKey } from './KeypadKey'; | |
import './styles.less'; | |
export interface IKeypadProps | |
{ | |
onKeyPressed: (keyPressed: KeypadKeys) => void; | |
} |
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'; | |
import 'package:provider/provider.dart'; | |
void main() { | |
runApp(const SampleApp()); | |
} | |
class SampleApp extends StatelessWidget { | |
const SampleApp({super.key}); | |
@override |
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
using System; | |
using System.Collections.Generic; | |
using System.Net; | |
using System.Web.Script.Serialization; | |
namespace App.Service.Services | |
{ | |
public class FreeCurrencyConverterService : IFreeCurrencyConverterService | |
{ | |
private readonly String BASE_URI = "http://free.currencyconverterapi.com"; |
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
/** | |
* | |
* Detect Ad Blockers | |
* | |
* Copyright (c) 2017, 2019 Four And A Half Giraffes, Ltd. | |
* Permission is hereby granted, free of charge, to any person | |
* obtaining a copy of this software and associated documentation | |
* files (the "Software"), to deal in the Software without | |
* restriction, including without limitation the rights to use, | |
* copy, modify, merge, publish, distribute, sublicense, and/or sell |
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
void main() { | |
final String url = "http://www.clickspce.com?foo=bar&fizz=buzz&name=Sebastian"; | |
final Uri parsedUri = Uri.parse(url); | |
print(parsedUri.queryParameters['foo']); | |
print(parsedUri.queryParameters['fizz']); | |
print(parsedUri.queryParameters['name']); | |
print(parsedUri.queryParameters['probably_null']); | |
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
"use strict"; | |
// for better performance - to avoid searching in DOM | |
const inputElement = document.getElementById('input'); | |
const contentElement = document.getElementById('content'); | |
const statusElement = document.getElementById('status'); | |
// my color assigned by the server | |
var myColor = false; | |
// my name sent to the server |
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:convert'; | |
import 'package:dart_jsonwebtoken/dart_jsonwebtoken.dart'; | |
import 'package:http/http.dart' as http; | |
const _PATH_TO_SERVICES_JSON = './secrets/service_account.json'; | |
const _GOOGLE_TOKEN_EXCHANGE_URL = 'https://oauth2.googleapis.com/token'; | |
final _cachedToken = <String, DateTime>{}; | |
/// Gets OAuth2.0 access token from a service account json |
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:mirrors"; | |
class Product { | |
String type; | |
String brand; | |
String model; | |
Product(this.type, this.brand, this.model); | |
} |
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 ProfitekItem { | |
late final bool taxable1; | |
late final bool taxable2; | |
late final bool taxable3; | |
late final bool taxable4; | |
late final num? taxRate1; | |
late final num? taxRate2; | |
late final num? taxRate3; | |
late final num? taxRate4; |
NewerOlder