Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

r4dixx r4dixx

🎯
Focusing
Block or report user

Report or block r4dixx

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
@r4dixx
r4dixx / PULL_REQUEST_TEMPLATE
Created Apr 23, 2019 — forked from riggaroo/PULL_REQUEST_TEMPLATE
Pull request template format. Add this file to your .github folder
View PULL_REQUEST_TEMPLATE
<!--- Provide a general summary of your changes in the Title above -->
<!--- If there is no changelog entry, label this PR as trivial to bypass the Danger warning -->
## Description
<!--- Describe your changes in detail -->
## Motivation and Context
<!--- Why is this change required? What problem does it solve? -->
View Android app | Execute code at first run (and-or after upgrade)
private void executeAtFirstRun() {
final String PREFS_NAME = "MyPrefsFile";
final String PREF_VERSION_CODE_KEY = "version_code";
final int NO_EXIST = -1;
// Get current version code
int currentVersionCode = BuildConfig.VERSION_CODE;
// Get saved version code
SharedPreferences sharedPrefs = getSharedPreferences(PREFS_NAME, MODE_PRIVATE);
int savedVersionCode = sharedPrefs.getInt(PREF_VERSION_CODE_KEY, NO_EXIST);
// Check for first run or upgrade
@r4dixx
r4dixx / README-STUDENT.md
Last active Sep 21, 2018
Readme template for student projects
View README-STUDENT.md

Name

Description
Comment


About

Context and progress go here

Goal and requirements

@r4dixx
r4dixx / LICENSE.md
Last active Feb 20, 2018
MIT License
View LICENSE.md

The MIT License (MIT)

Copyright © 2018 Amaël Sikel (aka r4dixx)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION

@r4dixx
r4dixx / UDACITY DISCLAIMER.md
Last active Feb 26, 2018
Note for Udacity students
View UDACITY DISCLAIMER.md

NOTE FOR UDACITY STUDENTS

This project was submitted by Amaël Sikel aka r4dixx, as part of Udacity's Android Basics Nanodegree (Google Developer Challenge 2017-2018)

As stated in the Udacity Honor Code and Community Code of Conduct, any project and/or submission must be your own work:

"Any User of the Online Courses agrees that he or she: [...]

will not cheat on any homework assignment or exams for the Online Courses; will not share solutions to homework assignments or exams; [...] By using Udacity services, you commit yourself to:

You can’t perform that action at this time.