Skip to content

Instantly share code, notes, and snippets.

On learning spree!

Rahul Patil r4hulp

On learning spree!
Block or report user

Report or block r4hulp

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
r4hulp / RemoveCookies.cs
Last active Aug 29, 2015
Code to remove cookies in Xamarin Android
View RemoveCookies.cs
if (Android.OS.Build.VERSION.SdkInt >= Android.OS.BuildVersionCodes.Lollipop)
r4hulp / AzureMobileAgent.cs
Created Aug 20, 2015
Logging out from Azure Mobile Services
View AzureMobileAgent.cs
r4hulp / index.html
Created Aug 20, 2015
Revisiting Knockout at
View index.html
<div data-bind='component: {
name: "message-editor",
params: { initialText: "Hello, world!" }
r4hulp / messageEdit.html
Created Aug 20, 2015
Revisiting Knockout at
View messageEdit.html
<message-editor params='initialText: "Hello, world!"'></message-editor>
r4hulp / web.config.xml
Last active Aug 29, 2015
Web Config for Reverse Proxy in IIS
View web.config.xml
<rule name="Route Requests from localhost api to Remote API url" stopProcessing="true">
<match url="^api/(.*)" />
<add input="{CACHE_URL}" pattern="^(https?)://" />
<action type="Rewrite" url="{R:1}" logRewrittenUrl="true" />
<set name="HTTP_ACCEPT_ENCODING" value="" />
r4hulp / CircleImageView.cs
Last active Mar 7, 2016
Round ImageView extension for Xamarin Android
View CircleImageView.cs
using Android.Content;
using Android.Content.Res;
using Android.Graphics;
using Android.Graphics.Drawables;
using Android.Util;
using Android.Views;
using Android.Widget;
namespace WrapCode.Util
r4hulp / myprofile.xml
Last active Aug 29, 2015
Sample Profile Layout
View myprofile.xml
<!-- Don't forget to add custom namespace in first xml element, otherwise get ready for exceptions and errors -->
<RelativeLayout xmlns:android=""
r4hulp / attr.xml
Created Aug 20, 2015
Custom attributes declaration for CircleImageView
View attr.xml
<?xml version="1.0" encoding="utf-8"?>
<declare-styleable name="CircleImageView">
<attr name="border" format="boolean"></attr>
<attr name="border_width" format="dimension"></attr>
<attr name="border_color" format="color"></attr>
<attr name="shadow" format="boolean"></attr>
r4hulp / GetPathToImage.cs
Last active Oct 26, 2015
GetPathToImage Xamarin's implementation
View GetPathToImage.cs
protected override void OnActivityResult(int requestCode, Result resultCode, Intent data)
if ((requestCode == PickImageId) && (resultCode == Result.Ok) && (data != null))
Uri uri = data.Data;
string path = GetPathToImage(uri);
r4hulp / GetPathToImage.cs
Last active Oct 26, 2015
Our implementation of GetPathToImage - Part 1
View GetPathToImage.cs
private string GetPathToImage(Android.Net.Uri uri)
ICursor cursor = this.ContentResolver.Query(uri, null, null, null, null);
string document_id = cursor.GetString(0);
document_id = document_id.Split(':')[1];
cursor = ContentResolver.Query(
You can’t perform that action at this time.