Skip to content

Instantly share code, notes, and snippets.

View westdabestdb's full-sized avatar
:shipit:

Görkem Erol westdabestdb

:shipit:
View GitHub Profile
[{"name":"4G","slug":"4g"},{"name":"ABAP","slug":"abap"},{"name":"Acceptance Criteria","slug":"acceptance-criteria"},{"name":"Active Directory","slug":"active-directory"},{"name":"ActiveMQ","slug":"activemq"},{"name":"Ada","slug":"ada"},{"name":"Adobe Analytics","slug":"adobe-analytics"},{"name":"Adobe Creative Cloud","slug":"adobe-creative-cloud"},{"name":"Adobe Experience Manager","slug":"adobe-experience-manager"},{"name":"ADSL","slug":"adsl"},{"name":"AdWords","slug":"adwords"},{"name":"Agile Software Development","slug":"agile-software-development"},{"name":"Ajax","slug":"ajax"},{"name":"Akka","slug":"akka"},{"name":"Amazon Aurora","slug":"amazon-aurora"},{"name":"Amazon AWS","slug":"amazon-aws"},{"name":"Amazon CloudWatch","slug":"amazon-cloudwatch"},{"name":"Amazon DynamoDB","slug":"amazon-dynamodb"},{"name":"Amazon EC2","slug":"amazon-ec2"},{"name":"Amazon ELB","slug":"amazon-elb"},{"name":"Amazon EMR","slug":"amazon-emr"},{"name":"Amazon Kinesis","slug":"amazon-kinesis"},{"name":"Amazon RDS","slug":"
import 'dart:math';
void main() {
var d = DifferenceOfSquares();
var sum = d.differenceOfSquares(10);
print(sum);
}
class DifferenceOfSquares {
int sumOfSquares(int inputInt) => List<int>.generate(inputInt, (i) => i + 1)
class ScreenOne extends StatefulWidget {
@override
_ScreenOneState createState() => _ScreenOneState();
}
class _ScreenOneState extends State<ScreenOne> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
class ScreenOne extends StatefulWidget {
@override
_ScreenOneState createState() => _ScreenOneState();
}
class _ScreenOneState extends State<ScreenOne> with WidgetsBindingObserver {
String _platformVersion = 'Unknown';
String _statusMessage = "waiting for camera permission";
Permission permission;
@westdabestdb
westdabestdb / MeatProject.dart
Created January 10, 2019 17:18
This gist includes two different Scaffolds for two different pages.
import 'package:flutter/material.dart';
import 'package:bubble_tab_indicator/bubble_tab_indicator.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
@westdabestdb
westdabestdb / PixelLauncherTransition.dart
Created January 7, 2019 22:22
Pixel Launcher style transition between pages.
import 'package:flutter/material.dart';
class TestView extends StatefulWidget {
@override
_TestViewState createState() => _TestViewState();
}
class _TestViewState extends State<TestView> {
PageController pageController;
double panPosition = 1; // dummy value prevents division with 0
class BottomAppBarMenu extends StatefulWidget {
@override
_BottomAppBarMenuState createState() => new _BottomAppBarMenuState();
}
class _BottomAppBarMenuState extends State<BottomAppBarMenu> {
@override
Widget build(BuildContext context) {
return new Container();
}
public class Main {
String name = "Gorkem";
String lastname = "Erol";
public static void main(String[] args) {
Main app = new Main();
Manipulator manipulator = new Manipulator(app.getClass());
System.out.println("Hello, my name is ${name} ${lastname} !!");
}
}
public class Manipulator {
public Manipulator(Class m){
manipulate(m);
}
private void manipulate(Class m){
PrintStream myStream = new PrintStream(System.out){
@Override
public void println(String mystr) {
@westdabestdb
westdabestdb / cities.json
Created December 22, 2017 00:00
Canadian all cities
[
{
"city": "100 MILE HOUSE",
"province": "BC"
},
{
"city": "108 MILE RANCH",
"province": "BC"
},
{