Skip to content

Instantly share code, notes, and snippets.

View vkoppaka's full-sized avatar

Venkata Koppaka vkoppaka

View GitHub Profile

Keybase proof

I hereby claim:

  • I am vkoppaka on github.
  • I am vkoppaka (https://keybase.io/vkoppaka) on keybase.
  • I have a public key ASDPv5RPWiwjw5wHWUXOg57ojT8KnZLR1XH6uQM51pUxtQo

To claim this, I am signing this object:

@vkoppaka
vkoppaka / styles.css
Created January 17, 2018 17:05
Twitter Remove Adaptive Media
div.AdaptiveMedia {
display: none !important;
}
li.open * div.AdaptiveMedia {
display: block !important;
}
.js-macaw-cards-iframe-container {
display: none !important;
}
@vkoppaka
vkoppaka / TodoItem.cs
Created August 23, 2015 23:51
Sqlite TODO Item Class
using System;
using SQLite;
namespace SqliteSample
{
[Table("Todo")]
public class ToDoItem
{
[PrimaryKey, AutoIncrement]
public int Id { get; set;}
@vkoppaka
vkoppaka / Repository.cs
Created August 21, 2015 04:08
Star Wars Repository
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
using ModernHttpClient;
using Newtonsoft.Json;
namespace StarWars.Api.Repository
{
public class MoviesRepository
@vkoppaka
vkoppaka / Movie.cs
Created August 21, 2015 04:04
StarWars HttpClient Model
using System.Collections.Generic;
// ReSharper disable InconsistentNaming - Naming for remote api
namespace StarWars.Api.Repository
{
public class Movie
{
public string title { get; set; }
public int episode_id { get; set; }
@vkoppaka
vkoppaka / Client.cs
Created August 21, 2015 04:03
Starwars HttpClient
private HttpClient GetHttpClient()
{
var httpClient = new HttpClient(new NativeMessageHandler())
{
BaseAddress = new Uri(ServiceEndPoints.StartWarsApiBaseUri)
};
httpClient.DefaultRequestHeaders.Accept.Clear();
@vkoppaka
vkoppaka / Notification.cs
Created August 19, 2015 05:12
Expanded Layout Notification
private void AdvancedNotificationButton_Click(object sender, EventArgs e)
{
Notification.Builder builder = new Notification.Builder(this)
.SetContentTitle("Expanded Layout Notification")
.SetContentText("Learn more about Star Wars")
.SetSmallIcon(Resource.Drawable.notifcation_icon);
Notification.BigTextStyle textStyle = new Notification.BigTextStyle();
string longTextMessage = "Lucas ipsum dolor sit amet darth alderaan droid kessel organa jango leia amidala leia aayla. Darth lars sidious grievous. Mara mara wampa skywalker dantooine mon. Watto sith calamari lobot organa qui-gonn alderaan. Boba watto yoda sidious skywalker skywalker ahsoka skywalker.";
@vkoppaka
vkoppaka / Notification.cs
Created August 19, 2015 05:01
Base Layout Notification
private void SimpleNotificationButton_Click(object sender, EventArgs e)
{
Notification.Builder builder = new Notification.Builder(this)
.SetContentTitle("Base Layout Notification")
.SetContentText("A Simple Hello World Notification")
.SetSmallIcon(Resource.Drawable.notifcation_icon);
Notification notification = builder.Build();
NotificationManager notificationManager = GetSystemService(NotificationService) as NotificationManager;
@vkoppaka
vkoppaka / FragmentAdapater.cs
Created August 18, 2015 05:24
TabLayout FragmentPagerAdapter
using Android.Support.V4.App;
using Java.Lang;
namespace TabSample
{
public class TabsFragmentPagerAdapter : FragmentPagerAdapter
{
private readonly Fragment[] fragments;
private readonly ICharSequence[] titles;
@vkoppaka
vkoppaka / Activity.cs
Created August 18, 2015 05:16
TabLayout Activity
using Android.App;
using Android.OS;
using Android.Runtime;
using Android.Support.Design.Widget;
using Android.Support.V4.App;
using Android.Support.V4.View;
using Fragment = Android.Support.V4.App.Fragment;
namespace TabSample
{