Visit my blog or connect with me on Twitter
git init
or
<div id="qunit"></div> | |
<div id="qunit-fixture"></div> | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace CardGenerator | |
{ | |
/* | |
* Original instructions https://www.nerdwallet.com/blog/credit-cards/credit-card-numbers-valid-website-luhn-algorithm/ |
namespace Alphabet | |
{ | |
public class AlphabetTest | |
{ | |
public static readonly string Alphabet = "abcdefghijklmnopqrstuvwxyz0123456789"; | |
public static readonly int Base = Alphabet.Length; | |
public static string Encode(int i) | |
{ | |
if (i == 0) return Alphabet[0].ToString(); |
Visit my blog or connect with me on Twitter
git init
or
using System; | |
using System.Windows; | |
using System.Windows.Controls; | |
using System.Windows.Interactivity; | |
using System.Windows.Media; | |
using Microsoft.Phone.Controls; | |
namespace PhoneApp1 | |
{ | |
public class PanAndZoomBehavior : Behavior<FrameworkElement> |
public class TileCanvas : Canvas | |
{ | |
public static readonly DependencyProperty ImageSourceProperty = DependencyProperty.Register( | |
"ImageSource", | |
typeof(ImageSource), | |
typeof(TileCanvas), | |
new PropertyMetadata(null, ImageSourceChanged)); | |
private Size _lastActualSize; |
At the top of the file there should be a short introduction and/ or overview that explains what the project is. This description should match descriptions added for package managers (Gemspec, package.json, etc.)
Show what the library does as concisely as possible, developers should be able to figure out how your project solves their problem by looking at the code example. Make sure the API you are showing off is obvious, and that your code is short and concise.