Skip to content

Instantly share code, notes, and snippets.

💭
Coding

Ricardo Markiewicz Gazer

💭
Coding
Block or report user

Report or block Gazer

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Gazer
Gazer / demo.dart
Created Apr 25, 2019
SliderWidget API
View demo.dart
Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
SliderWidget(
icon: Icons.arrow_forward,
text: "Deslizá para transferir",
color: Colors.red,
onSubmit: (Function onFinish, Function onError) async {
await pause(const Duration(seconds: 1));
@Gazer
Gazer / PagerIndicator.java
Created Sep 19, 2016
A simple Page indicator for Android ViewPager
View PagerIndicator.java
package com.example;
import android.annotation.TargetApi;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Rect;
import android.os.Build;
import android.support.v4.view.ViewPager;
@Gazer
Gazer / 0_README.md
Last active Jan 6, 2016
Gradle tasks for code static code analysis on android apps.
View 0_README.md

Gradle Tasks for code static code analysis on android apps.

Credits to : https://github.com/artem-zinnatullin/qualitymatters

Usage :

  • Download all files on this GIST.
  • Put the XML files on your root directory under code_quality_tools/ folder.
  • Put the code_quality_tools.gradle file into your root project directory.
  • On each module you want to check add to the build.gradle the next line : apply from: '../code_quality_tools.gradle'
  • Run "gradlew check"
View on the activity
super.onViewCreated(view, savedInstanceState);
ButterKnife.inject(this, view);
callbackManager = CallbackManager.Factory.create();
facebookLoginButton.setFragment(this);
facebookLoginButton.registerCallback(callbackManager, presenter);
presenter.bindView(this);
@Gazer
Gazer / FragmentMVP.java
Created Dec 24, 2015
Comparación Android Normal vs Android MVP
View FragmentMVP.java
package it.patagonian.argentinamecopa.fragment;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
View Ear.groovy
// Creates a copy of the git tree into target directory to be included on the final EAR
// Use zipfileset(dir: "${warDest}/src", prefix: 'src') on your ant.ear task.
target(generateSourceCode: "Generates a src copy") {
depends(defineContextRoot)
ProcessBuilder ps=new ProcessBuilder("/usr/bin/git", "ls-tree", "--name-only", "-r", "HEAD");
def dir = "${projectTargetDir}/src"
new File(dir).mkdirs();
View gist:c0c002c25b1fc302674c
Log.d("Charset", "toString() : " + CharsetToolkit.getDefaultSystemCharset().toString());
Log.d("Charset", "displayName() : " + CharsetToolkit.getDefaultSystemCharset().displayName());
Log.d("Charset", "name() : " + CharsetToolkit.getDefaultSystemCharset().name());
Output :
D/Charset﹕ toString() : java.nio.charset.CharsetICU[UTF-8]
D/Charset﹕ displayName() : UTF-8
D/Charset﹕ name() : UTF-8
View MainActivity.groovy
@CompileStatic
public class MainActivity extends ActionBarActivity {
TextView textView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
textView = findViewById(R.id.text) as TextView;
@Gazer
Gazer / clean_noise.sh
Created May 28, 2014
Noise Removal using avconv and sox
View clean_noise.sh
#!/bin/sh
# Tested with :
# * avconv version 9.13-6:9.13-0ubuntu0.14.04.1,
# * SoX v14.4.1
#
# Just run clean.sh input_file.mp4 output_file.mp4
INPUT=$1
OUTPUT=$2
@Gazer
Gazer / distance.ino
Created Jan 31, 2014
Ejemplo sensor ultrasónico HC-SR04 con Arduino y NewPing
View distance.ino
#include <NewPing.h>
#define trigPin 2
#define echoPin 4
NewPing sonar(trigPin, echoPin, 800);
void setup() {
Serial.begin(9600);
}
You can’t perform that action at this time.