- Download macOS from somewhere. Easiest way is to use an existing mac to download it from the App Store.
- Use Unibeast or terminal installer to generate a usb installer
- Download Clover EFI Bootloader and run it against the USB you generated in step 2. This will configure the EFI partition on the USB and fix anything bad Unibeast might do. I recommend selecting the UEFI options and the RC scripts on target volume options.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.util.Log; | |
public final class LogManager { | |
public static final int VERBOSE = 0; | |
public static final int DEBUG = 1; | |
public static final int INFO = 2; | |
public static final int WARN = 3; | |
public static final int ERROR = 4; | |
public static final int WTF = 5; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ToolbarActivity extends AppCompatActivity { | |
// Set the flags that fit your needs | |
private static final int ENABLED_SCROLL_BEHAVIOR = AppBarLayout.LayoutParams.SCROLL_FLAG_ENTER_ALWAYS | AppBarLayout.LayoutParams.SCROLL_FLAG_SCROLL; | |
private static final int DISABLED_SCROLL_BEHAVIOR = 0; | |
private static final int SCROLL_DOWN = 1; | |
//Injected via ButterKnife (http://jakewharton.github.io/butterknife) | |
@InjectView(R.id.toolbar) | |
Toolbar toolbar; | |
@InjectView(R.id.recyclerview) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.fewlaps.quitnow; | |
import android.content.ActivityNotFoundException; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.net.Uri; | |
import java.util.ArrayList; | |
import java.util.List; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style>.embed-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; height: auto; } .embed-container iframe, .embed-container object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }</style> | |
<div class='embed-container'> | |
<iframe src='{{ scheme }}://player.vimeo.com/video/{{ video_id }}' frameborder='0' webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.content.Context; | |
import android.support.annotation.NonNull; | |
import android.support.annotation.Nullable; | |
import android.support.v7.widget.RecyclerView; | |
import android.util.AttributeSet; | |
import android.view.View; | |
public class EmptyRecyclerView extends RecyclerView { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Copyright Grupo SCA 2014 (@SCA_Consultores) | |
Licensed under the GPL General Public License, Version 3.0 (the "License"), | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.gnu.org/licenses/gpl.html | |
Unless required by applicable law or agreed to in writing, software |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class UriUtil { | |
private final Context context; | |
private static final byte[] GIF89A_HEADER = {0x47, 0x49, 0x46, 0x38, 0x39, 0x61}; | |
@Inject | |
public UriUtil(Context context) { | |
this.context = context; | |
} | |
public boolean isGif(Uri input) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
if [ $# -eq 0 ] | |
then | |
echo "No word supplied" | |
fi | |
word=$1 | |
find . -type f -and -not -path '*/.git/*' -and -not -path '*/.svn/*' -exec grep -i -H "$word" {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//go to https://github.com/easternHong/vb-android-app-quality | |
//get the config file and put them into app/config/.. | |
apply plugin: 'pmd' | |
apply plugin: 'findbugs' | |
apply plugin: 'checkstyle' | |
task findbugs(type: FindBugs) { | |
description 'Run findbugs' | |
group 'verification' | |
classes = fileTree('build/intermediates/classes/debug/') |
OlderNewer