- Reverse a String – Enter a string and the program will reverse it and print it out.
- Pig Latin – Pig Latin is a game of alterations played on the English language game. To create the Pig Latin form of an English word the initial consonant sound is transposed to the end of the word and an ay is affixed (Ex.: "banana" would yield anana-bay). Read Wikipedia for more information on rules.
- Count Vowels – Enter a string and the program counts the number of vowels in the text. For added complexity have it report a sum of each vowel found.
- Check if Palindrome – Checks if the string entered by the user is a palindrome. That is that it reads the same forwards as backwards like “racecar”
- Count Words in a String – Counts the number of individual words in a string. For added complexity read these strings in from a text file and generate a summary.
using System; | |
using System.Linq; | |
using Microsoft.CodeAnalysis.CSharp; | |
using Microsoft.CodeAnalysis.CSharp.Syntax; | |
using Microsoft.CodeAnalysis; | |
void Main() | |
{ | |
var code = @"namespace P | |
{ |
Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.
In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.
Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j
param($installPath, $toolsPath, $package, $project) | |
$projectFullName = $project.FullName | |
Write-Host "Copying Docs folder to the root of the solution: $projectFullName" | |
$fileInfo = new-object -typename System.IO.FileInfo -ArgumentList $projectFullName | |
$projectDirectory = $fileInfo.DirectoryName | |
$sourceDirectory = "$installPath\docs" | |
Write-Host $sourceDirectory |
// Add this to LinqPad "C# Program" | |
// Example use: | |
// Insead of this: (create a List<CS_POSITION>) | |
// CS_POSITIONs.InsertOnSubmit(position); | |
// This: | |
// positions.Add(position); | |
// | |
// Then instead of this: | |
// SubmitChanges() | |
// This: |
/* | |
To test that the Linux framebuffer is set up correctly, and that the device permissions | |
are correct, use the program below which opens the frame buffer and draws a gradient- | |
filled red square: | |
retrieved from: | |
Testing the Linux Framebuffer for Qtopia Core (qt4-x11-4.2.2) | |
http://cep.xor.aps.anl.gov/software/qt4-x11-4.2.2/qtopiacore-testingframebuffer.html | |
*/ |