Skip to content

Instantly share code, notes, and snippets.

View AliAkberAakash's full-sized avatar
🏠
Working from home

Ali Akber AliAkberAakash

🏠
Working from home
  • Delivery Hero SE
  • Berlin, Germany
  • 03:42 (UTC -12:00)
View GitHub Profile
{
"message":"Hello from the server!"
}
abstract class Remote {
void forward();
void reverse();
factory Remote(device) {
if (device is Fan) {
return _RemoteForFan(device);
} else {
return _RemoteForCurtain(device);
}
# Project identification
sonar.projectKey=<YOUR PROJECT KEY>
sonar.projectName=<YOUR PRROJECT NAME>
sonar.projectVersion=1.0
sonar.login=<YOUR LOGIN KEY>
# Source code location.
# Path is relative to the sonar-project.properties file. Defaults to .
# Use commas to specify more than one folder.
sonar.sources=lib
import 'dart:convert';
import 'package:core/controller/base_controller.dart';
import 'package:rxdart/rxdart.dart';
import 'package:stomp_dart_client/stomp.dart';
import 'package:stomp_dart_client/stomp_config.dart';
import 'package:stomp_dart_client/stomp_frame.dart';
import 'package:stomp_dart_client/stomp_handler.dart';
import 'package:unipet_mobile_refueling/app/di/setup_di.dart';
import 'package:unipet_mobile_refueling/app/module/pump_reserve/controller/pump_reserve_controller.dart';
class CustomTheme implements ThemeData{
final ThemeData _base;
CustomTheme(this._base);
static CustomTheme of(BuildContext context) => Theme.of(context) as CustomTheme;
@override
Color get accentColor => _base.accentColor;
class Solution {
fun containsDuplicate(nums: IntArray): Boolean {
return nums.size>nums.toSet().size
}
}
package com.example.helloworld.core.data.network
import android.content.Context
import com.example.helloworld.utils.ConnectivityAndInternetAccess
import retrofit2.*
import java.io.IOException
import java.lang.Exception
import java.lang.reflect.ParameterizedType
import java.lang.reflect.Type
/*
============================================================================
* Author : Ali Akber Aakash
* Email : ali852609@gmail.com
* Problem Name : Matrix Rotation
* Source : Cracking The Coding Interview - Gayle Laakmann McDowell
* Time Limit : 1.00 sec
============================================================================
*/
//traverse through the layers
for(int layer=0; layer<n/2; layer++)
{
int first = layer;
int last = n-layer-1;
//traverse through start to end
for(int i=first; i<last; i++)
{
//creating the offset
//traverse through the layers
for(int layer=0; layer<n/2; layer++)
{
int start = layer;
int end = n-layer-1;
//traverse through start to end
for(i = start; i < end; i++)
{
//perform the swap