Skip to content

Instantly share code, notes, and snippets.

View mevlanaayas's full-sized avatar
🎯
Focusing

mevlana mevlanaayas

🎯
Focusing
View GitHub Profile
@mevlanaayas
mevlanaayas / docker-compose.yml
Created March 3, 2021 14:32
compose file for local elasticsearch+kibana
version: '2.2'
services:
es01:
image: docker.elastic.co/elasticsearch/elasticsearch:7.11.1
container_name: es01
environment:
- node.name=es01
- cluster.name=es-docker-cluster
- discovery.seed_hosts=es02,es03
- cluster.initial_master_nodes=es01,es02,es03
@mevlanaayas
mevlanaayas / gist:e2f2edb9ce6a36dcadb994f6a428ad33
Created February 6, 2021 13:00
celoaddresssmartcontract.txt
0xDC01dD7cfC3644B4F1d73d193CeDb5aC90975055
0xc0DdC26d1E14B557C378BcA157C8ac584f29bB13
Flutter Resources
Documentation: https://docs.flutter.io/
Github: https://github.com/flutter/flutter
StackOverflow: https://stackoverflow.com/questions/tagged/flutter
Gitter: https://gitter.im/flutter/flutter
Effective Dart Guide: https://www.dartlang.org/guides/language/effective-dart
Dart Tips: https://www.dartlang.org/resources/dart-tips
Flutter FAQ: https://flutter.io/faq/
Flutter Rendering: https://www.youtube.com/watch?v=UUfXWzp0-DU
Flutter Engine: https://github.com/flutter/engine/wiki
@mevlanaayas
mevlanaayas / apple_shortcuts_clone.dart
Last active September 30, 2019 07:51
Apple shortcuts main screen implementation with Flutter. Flutter: 1.9.1+hotfix.2, Dart: 2.50, Cupertino icons: 0.1.2
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class ShortcutsClone extends StatelessWidget {
@override
Widget build(BuildContext context) {
final bottomNavigationBar = CupertinoTabBar(
items: const <BottomNavigationBarItem>[
BottomNavigationBarItem(
icon: Icon(CupertinoIcons.collections),
@mevlanaayas
mevlanaayas / docker-compose.yml
Last active October 12, 2023 16:03
Docker compose file to run postgresql and mongodb locally
version: '3.1'
services:
docker-postgres:
image: postgres:11.1
container_name: docker-postgres
volumes:
- path/to/volume:/var/lib/postgresql/data
environment:
- POSTGRES_USER=docker
- POSTGRES_DB=docker
@mevlanaayas
mevlanaayas / advanced.sql
Last active March 25, 2020 12:11
SQLBolt, Learn SQL with simple, interactive exercises.
Expressions
SELECT particle_speed / 2.0 AS half_particle_speed
FROM physics_data
WHERE ABS(particle_position) * 10.0 > 500;
List all movies and their combined sales in millions of dollars ✓
@mevlanaayas
mevlanaayas / AddWithoutArithmeticOperator.java
Created July 28, 2018 07:57
Implementig integer add operation with ArrayList without any usages of arithmetic operations
import java.util.ArrayList;
import java.util.Scanner;
public class AddWithoutArithmeticOperator {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int numberOne = scanner.nextInt();
int numberTwo = scanner.nextInt();
int[] firstIntArray = new int[numberOne];
@mevlanaayas
mevlanaayas / my_qr.py
Last active September 27, 2019 21:01
MyQr usages and examples
myqr.run(
str(kr_id),
version=10,
level='H',
picture=os.getcwd() + '/square.jpg',
colorized=True,
contrast=1.0,
brightness=1.0,
save_name='sqr.jpg',
save_dir=os.getcwd()