Skip to content

Instantly share code, notes, and snippets.

View fentonmartin's full-sized avatar
:octocat:
Doing what I love..

Fenton Martin fentonmartin

:octocat:
Doing what I love..
View GitHub Profile
@fentonmartin
fentonmartin / temporary-email-address-domains
Created September 9, 2019 07:43 — forked from adamloving/temporary-email-address-domains
A list of domains for disposable and temporary email addresses. Useful for filtering your email list to increase open rates (sending email to these domains likely will not be opened).
0-mail.com
0815.ru
0clickemail.com
0wnd.net
0wnd.org
10minutemail.com
20minutemail.com
2prong.com
30minutemail.com
3d-painting.com
@fentonmartin
fentonmartin / FirebaseUtils.java
Created May 12, 2019 18:10
FirebaseUtils for Firebase Network Utils
package io.github.fentonmartin.network.firebase;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import com.google.android.gms.tasks.OnCompleteListener;
import com.google.android.gms.tasks.OnFailureListener;
import com.google.android.gms.tasks.OnSuccessListener;
import com.google.android.gms.tasks.Task;
import com.google.firebase.firestore.DocumentReference;
@fentonmartin
fentonmartin / gradle.properties
Created May 6, 2019 05:39
Configure gradle.properties for Android project
# Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override* any settings specified in this file.
# For more details on how to configure your build environment visit:
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
@fentonmartin
fentonmartin / TouchImageView.java
Created April 1, 2019 04:32 — forked from myinnos/TouchImageView.java
Android ImageView to include pinch zooming, panning, fling and double tap zoom.
import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.Configuration;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.PointF;
import android.graphics.RectF;
import android.graphics.drawable.Drawable;
import android.net.Uri;
@fentonmartin
fentonmartin / CustomItemClickListener.java
Created September 24, 2018 05:39 — forked from riyazMuhammad/CustomItemClickListener.java
Easy Implementation of RecyclerView custom onItemClickListener
public interface CustomItemClickListener {
public void onItemClick(View v, int position);
}
@fentonmartin
fentonmartin / biodata.html
Created July 19, 2018 19:43
SD: Quest 3 (2 Biodata)
<html>
<body>
<form method="post" action="biodata.php">
Nama
<input type="text" name="name"/>
</br></br>
Hobi
<input type="text" name="hobby"/>
</br></br>
<input type="submit" name="submit" value="Submit"/>
@fentonmartin
fentonmartin / clockangle.html
Last active July 19, 2018 19:44
SD: Quest 2 (3 Clock Angle)
<html>
<body>
<form method="post" action="clockangle.php">
Hour
<input type="text" name="hour"/>
</br></br>
Minute
<input type="text" name="minute"/>
</br></br>
<input type="submit" name="submit" value="Calculate Angle"/>
@fentonmartin
fentonmartin / compare.php
Created July 19, 2018 19:40
SD: Quest 1 (A2)
<?php
// Terdapat array bilangan acak contoh [-10,2,-5,-3,1,7,2,-7]
// buat algoritma untuk menemukan nilai penjumlahan (+) tebesar
// yang mungkin dari kedua buah bilangan.
// Dan sebutkan bilangan yang dimaksud.
$array = array(-10,2,-5,-3,1,7,2,-7);
// Print array
echo print_r($array, true);
@fentonmartin
fentonmartin / gist:daf6d2d1081638b3d2e2e21bdd9270dc
Created May 31, 2018 16:33
Installing Composer on Windows 10
Installing Composer on Windows 10 | Drive Marketing
Preface
First off, I have had a very long night. I had to get Composer installed on my computer in order to complete a mandate for a client and I ran into more stumbling blocks than I care to admit. In the end, though, I managed to learn a lot about how to install Composer on a Windows 10 machine and was able to perform a second install on my office desktop in about ten minutes.
The purpose of my writing this blog entry is to (hopefully) help any of you out there who have run into the same problem.
@fentonmartin
fentonmartin / laravellocal.md
Created May 31, 2018 16:32 — forked from hootlex/laravellocal.md
Run laravel project locally

##Windows users:

cmder will be refered as console

##Mac Os, Ubuntu and windows users continue here:

  • Create a database locally named homestead utf8_general_ci