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 / MoviesAdapter.cs
Created August 12, 2015 05:37
Movies Adapter CardView
using System.Collections.Generic;
using Android.App;
using Android.Views;
using Android.Widget;
namespace CardViewSample
{
public class MovieAdapter : BaseAdapter<Movie>
{
private readonly Activity context;
@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 / RecyclerView.axml
Created August 15, 2015 16:00
RecyclerView Main AXML
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:local="http://schemas.android.com/apk/res-auto"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<include
android:id="@+id/toolbar"
layout="@layout/toolbar" />
<LinearLayout
android:orientation="vertical"
@vkoppaka
vkoppaka / ScriptRegister.js
Created April 28, 2012 02:18
Using TinyMCE Editor with ASP.NET MVC
<script src="/Scripts/tiny_mce/tiny_mce.js" type="text/javascript"></script>
@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 / Global.asax.cs
Created February 13, 2013 21:56
Global.asax.cs file that shows how to register custom formatter for Order Confirmation Template Formatter in Sitefinity Ecommerce
using System;
using System.Linq;
using Telerik.Microsoft.Practices.Unity;
using Telerik.Sitefinity.Abstractions;
using Telerik.Sitefinity.Data;
using Telerik.Sitefinity.Modules.Ecommerce.Orders.Interfaces;
namespace SitefinityWebApp
{
public class Global : System.Web.HttpApplication
@vkoppaka
vkoppaka / gist:4948736
Created February 13, 2013 21:57
A custom formatter class to add custom fields to the order confirmation email template
using System;
using System.ComponentModel;
using Telerik.Sitefinity;
using Telerik.Sitefinity.Ecommerce.Orders.Model;
using Telerik.Sitefinity.Modules.Ecommerce.Orders.Business;
using Telerik.Sitefinity.Modules.Ecommerce.Orders.Interfaces;
using Telerik.Sitefinity.Modules.Ecommerce.Orders.Web.UI.CheckoutViews;
namespace SitefinityWebApp
{
Another naming convention that I have been using off late is the "Should" convention. Steve Smith wrote a post about it at http://ardalis.com/unit-test-naming-convention. Following this convention makes it easier to read unit tests which they are running in a batch.
JustCode has an integrated unit test runner (http://www.telerik.com/products/justcode/unit-test-runner.aspx) which works like charm. If you dont want to deal with installing yet another software on your machine, this is perfect way to go about it. You can add NUnit via nuget package (http://nuget.org/packages/NUnit) and run tests via JustCode.
@vkoppaka
vkoppaka / gist:4248635
Created December 10, 2012 05:39
Get Countries SF
Config.Get<EcommerceConfig>().Countries.Values
.Where(x => x.CountryIsActive)
.OrderBy(x => x.Name)