Skip to content

Instantly share code, notes, and snippets.

Avatar
🤓
Flutter + Android + iOS

Mariano Zorrilla mkiisoft

🤓
Flutter + Android + iOS
View GitHub Profile
@a-v-ebrahimi
a-v-ebrahimi / ShowAlert2Buttons
Last active Jan 25, 2019
Show alert with one, two or more buttons (android)
View ShowAlert2Buttons
public void onClick(View view) {
if(view == this.alertBtn){
alertDialog = new AlertDialog.Builder(this).create();
alertDialog.setTitle("Alert 1");
alertDialog.setMessage("This is an alert");
alertDialog.setButton("OK", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
return;
} });
}else if(view == this.alert2Btn){
@britannio
britannio / build.yaml
Last active Mar 2, 2021
Example build.yaml config for https://pub.dev/packages/build_runner using ferry, moor, freezed, json_serializable and injectable
View build.yaml
targets:
$default:
sources:
exclude:
- "**/components/**"
- "**/exceptions/**"
- "test/**"
builders:
gql_build|schema_builder:
@Aracem
Aracem / ParallaxPageTransformer.java
Last active May 17, 2021
Parallax transformer for ViewPagers that let you set different parallax effects for each view in your Fragments.
View ParallaxPageTransformer.java
package com.aracem.utils.animations.pagetransformation;
import org.jetbrains.annotations.NotNull;
import android.support.v4.view.ViewPager;
import android.view.View;
import java.util.ArrayList;
import java.util.List;
@slightfoot
slightfoot / squircle.dart
Last active Jul 11, 2021
Flutter Squircle Shape
View squircle.dart
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Squircle',
home: new Scaffold(
@Bhavdip
Bhavdip / sketch-never-ending.md
Created Oct 6, 2016
Modify Sketch to never ending trial
View sketch-never-ending.md

###Sketch trial non stop

Open hosts files:

$ open /private/etc/hosts

Edit the file adding:

127.0.0.1 backend.bohemiancoding.com
127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com
@dgp
dgp / youtube api video category id list
Created Jun 11, 2015
youtube api video category id list
View youtube api video category id list
2 - Autos & Vehicles
1 - Film & Animation
10 - Music
15 - Pets & Animals
17 - Sports
18 - Short Movies
19 - Travel & Events
20 - Gaming
21 - Videoblogging
22 - People & Blogs