Skip to content

Instantly share code, notes, and snippets.

View jzeferino's full-sized avatar
:octocat:
󠀡

jzeferino jzeferino

:octocat:
󠀡
View GitHub Profile
public class RvUtil
{
public RvUtil (RecyclerView rv)
{
recyclerView = rv;
}
RecyclerView recyclerView;
IntPtr id_setNestedScrollingEnabled;
@devlead
devlead / Async.cake
Created July 9, 2017 18:43
Sample of using async await in a cake script using a AsyncHelper class to work with all async scenarios, currently needs "--Experimental" flag or to use the Cake.CoreCLR runner as a newer version of Roslyn is required for async to be recognized. Example invocation: cake .\AsyncHelper.cake -Experimental
#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())
@aloisdeniel
aloisdeniel / SnapLayout.cs
Created June 20, 2017 14:37
Snapped Horizontal UICollectionView in Xamarin.iOS
namespace SnapCollection
{
using UIKit;
using CoreGraphics;
public class SnapLayout : UICollectionViewFlowLayout
{
public SnapLayout()
{
this.ItemSize = new CGSize(300, 250);
@BoD
BoD / .travis.yml
Last active October 27, 2020 13:25
Travis build file for Android: the whole file
language: java
dist: trusty
jdk: oraclejdk8
before_cache:
# Do not cache a few Gradle files/directories (see https://docs.travis-ci.com/user/languages/java/#Caching)
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
@jzeferino
jzeferino / blocklist.txt
Created April 24, 2016 09:21 — forked from Cheesebaron/blocklist.txt
Blocklist for: https://chrome.google.com/webstore/detail/personal-blocklist-by-goo/nolijncfnkgaikbjbdaogikpmpbdcdef I hate stupid aggregators, which uses Stackoverflow QA etc. DIE DIE DIE!
28im.com
4byte.cn
acnenomor.com
adtandroid.blogspot.com
androidstackoverflow.blogspot.com
askmequest.gq
besttopics.net
bloglovin.com
c9q.net
codebaum.wordpress.com
@jzeferino
jzeferino / Zarcula.json
Last active March 14, 2016 14:27
Xamarin Studio Theme based on Darcula from Android Studio
{
"name":"Zarcula",
"version":"1.0",
"description":"Based on Darcula from Android Studio.",
"originator":"jzeferino",
"colors":[
{"name": "Background(Read Only)", "color":"#323232" },
{"name": "Search result background", "color":"#005F60" },
{"name": "Search result background (highlighted)", "color":"#007F80" },
{"name": "Fold Square", "color":"#74705E", "secondcolor":"#323232" },
@JonDouglas
JonDouglas / xamarinandroidbindings.md
Last active March 12, 2024 10:36
Xamarin Android Bindings Troubleshooting

Approaching a Xamarin.Android Bindings Case

1. Investigation

One of the best ways to investigate a problematic Xamarin.Android Binding is to first ensure you have the proper tooling available:

@alexsinger
alexsinger / build.gradle
Last active July 10, 2019 04:42
Separate Crashlytics reporting for debug and release buildTypes using a Gradle build
// 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"
@brendanzagaeski
brendanzagaeski / gist:8602459
Created January 24, 2014 17:53
Some steps to try if Xamarin Studio says "Error updating Xcode project. Invalid parameter"
# Some steps to try if Xamarin Studio says "Error updating Xcode project. Invalid parameter"
1. Quit Xcode and Xamarin Studio.
2. Delete the `obj/` folder where Xamarin stores the generated Xcode files (or just the `obj/Xcode` folder, if you prefer)
3. Open the project in Xamarin Studio, and build the project.
4. Try to open the problematic XIB (or storyboard) file.
@snikch
snikch / gist:3661188
Created September 6, 2012 23:16
Find the current top view controller for your iOS application
- (UIViewController *)topViewController{
return [self topViewController:[UIApplication sharedApplication].keyWindow.rootViewController];
}
- (UIViewController *)topViewController:(UIViewController *)rootViewController
{
if (rootViewController.presentedViewController == nil) {
return rootViewController;
}