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
using Android.Content; | |
using Android.Util; | |
using Android.Widget; | |
using Android.Runtime; | |
using System; | |
using Android.Text; | |
namespace Utils | |
{ | |
public class SuffixEditText : EditText |
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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
using System.Xml; | |
using System.Xml.Linq; | |
namespace GithubWikiDoc | |
{ |
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
// The following code allows an app to report Crashlytics crashes separately | |
// for release and debug buildTypes when using Gradle. This code should be inserted | |
// into the specified locations within your build.gradle (Module:app) file | |
// The buildTypes { } block should be inserted inside the android { } block | |
buildTypes { | |
release { | |
minifyEnabled false | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
ext.crashlyticsApiSecret = "release api secret" |
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
// The following code allows an app to report Crashlytics crashes separately | |
// for release and debug buildTypes when using Gradle. This code should be inserted | |
// into the specified locations within your build.gradle (Module:app) file | |
// The buildTypes { } block should be inserted inside the android { } block | |
buildTypes { | |
release { | |
minifyEnabled false | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
ext.crashlyticsApiSecret = "release api secret" |
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
#load "AsyncHelper.cake" | |
#r "System.Net.Http" | |
using System.Net.Http; | |
using System.Net.Http.Headers; | |
string url = "https://icanhazdadjoke.com/"; | |
var result = AsyncHelpers.RunSync( | |
async ()=> { | |
using(var client = new HttpClient()) |
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
#load "AsyncHelper.cake" | |
#r "System.Net.Http" | |
using System.Net.Http; | |
using System.Net.Http.Headers; | |
string url = "https://icanhazdadjoke.com/"; | |
var result = AsyncHelpers.RunSync( | |
async ()=> { | |
using(var client = new HttpClient()) |
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
#!/bin/bash | |
declare -a arr=("obj" "bin" "packages") # Remove/add folders you want to clean up. | |
read -p "Delete $(printf "%s, " "${arr[@]}")folders under $PWD? (y/n) " answer | |
case ${answer:0:1} in | |
y|Y ) | |
for folder in "${arr[@]}" | |
do | |
echo "Cleaning $folder" | |
find . -name $folder -type d -exec rm -rf {} + |
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 NoOverScrollViewPager extends ViewPager { | |
float lastX; | |
public BorderNoSwipeViewPager(Context context) { | |
super(context); | |
} | |
public BorderNoSwipeViewPager(Context context, AttributeSet attrs) { | |
super(context, attrs); |
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 RvUtil | |
{ | |
public RvUtil (RecyclerView rv) | |
{ | |
recyclerView = rv; | |
} | |
RecyclerView recyclerView; | |
IntPtr id_setNestedScrollingEnabled; |