Skip to content

Instantly share code, notes, and snippets.

Avatar

Stephan Miller eristoddle

View GitHub Profile
View eula.html
<h1>End-User License Agreement ("Agreement")</h1>
<p>Last updated: March 25, 2020</p>
<p>Please read this End-User License Agreement carefully before clicking the "I Agree" button, downloading or using Boilerplate.</p>
<h1>Interpretation and Definitions</h1>
<h2>Interpretation</h2>
<p>The words of which the initial letter is capitalized have meanings defined under the following conditions. </p>
<p>The following definitions shall have the same meaning regardless of whether they appear in singular or in plural.</p>
View MainActivity.kt
package com.eristoddle.boilerplate
import android.content.Context
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
View activity_eula.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/eula_main">
<LinearLayout
android:id="@+id/header"
View EulaActivity.kt
package com.eristoddle.boilerplate
import android.content.Context
import android.content.Intent
import android.content.SharedPreferences
import android.os.Bundle
import android.text.Spanned
import androidx.appcompat.app.AppCompatActivity
import androidx.core.text.HtmlCompat
import com.google.android.material.snackbar.Snackbar
View activity_eula.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/eula_main">
<LinearLayout
android:id="@+id/header"
View eula.html
<h1>End-User License Agreement ("Agreement")</h1>
<p>Last updated: March 25, 2020</p>
<p>Please read this End-User License Agreement carefully before clicking the "I Agree" button, downloading or using Boilerplate.</p>
<h1>Interpretation and Definitions</h1>
<h2>Interpretation</h2>
<p>The words of which the initial letter is capitalized have meanings defined under the following conditions. </p>
<p>The following definitions shall have the same meaning regardless of whether they appear in singular or in plural.</p>
View MainActivity.kt
package com.eristoddle.boilerplate
import android.content.Context
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
View EulaActivity.kt
package com.eristoddle.boilerplate
import android.content.Context
import android.content.Intent
import android.content.SharedPreferences
import android.os.Bundle
import android.text.Spanned
import androidx.appcompat.app.AppCompatActivity
import androidx.core.text.HtmlCompat
import com.google.android.material.snackbar.Snackbar
@eristoddle
eristoddle / EulaActivity.kt
Last active Mar 26, 2020
Android Generic Eula Activity
View EulaActivity.kt
package com.eristoddle.boilerplate
import android.content.Context
import android.content.Intent
import android.content.SharedPreferences
import android.os.Bundle
import android.text.Spanned
import androidx.appcompat.app.AppCompatActivity
import androidx.core.text.HtmlCompat
import com.google.android.material.snackbar.Snackbar
@eristoddle
eristoddle / ImportController.php
Created Jan 10, 2020
Laravel CSV Import Controller
View ImportController.php
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Foundation\Auth\RegistersUsers;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Validator;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\DB;
You can’t perform that action at this time.