This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| namespace Ext | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| string a = null; | |
| string b = ""; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from sys import argv | |
| try: | |
| word = argv[1] | |
| for c in argv[1]: | |
| print(word) | |
| word = word[:-1] | |
| for c in argv[1]: | |
| word += c | |
| print(word) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Data.Entity; | |
| using System.Linq; | |
| using Moq; | |
| namespace Platform.Domain.Tests.Helpers | |
| { | |
| public class QueryableDbSetMock | |
| { | |
| public static IDbSet<T> GetQueryableMockDbSet<T>(params T[] sourceList) where T : class | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from datetime import date | |
| name = input("What's your name?") | |
| age = input("How old are you?") | |
| years = date.today().year + 100 - int(age) | |
| print("Well " + name + | |
| ", it seems like you are going to have 100 years by the year " + str(years)) |