puts "Ruby".downcase.upcase.reverse
YBUR
using System; | |
using Microsoft.ML.Models; | |
using Microsoft.ML.Runtime; | |
using Microsoft.ML.Runtime.Api; | |
using Microsoft.ML.Trainers; | |
using Microsoft.ML.Transforms; | |
using System.Collections.Generic; | |
using System.Linq; | |
using Microsoft.ML; | |
using Microsoft.ML.Data; |
static class Extensions | |
{ | |
public static void ForEach<T>(this IEnumerable<T> source, Action<T> action) | |
{ | |
foreach (var item in source) | |
{ | |
action(item); | |
} | |
} | |
} |
require_relative "test_helper" | |
require "open-uri" | |
require "net/http" | |
class EmojiTest < Blog::Test | |
def test_no_emoji | |
posts.each do |post| | |
content = File.read(post) | |
refute_match /:[a-zA-Z0-9_]+:/, content, |
#I "../packages/SQLProvider.0.0.9-alpha/lib/net40" | |
#r "System.Data.dll" | |
#r "FSharp.Data.TypeProviders.dll" | |
#r "System.Data.Linq.dll" | |
open System.Data | |
open System.Data.Linq | |
open Microsoft.FSharp.Data.TypeProviders |
open System | |
open System.IO | |
Environment.CurrentDirectory <- __SOURCE_DIRECTORY__ | |
if not (File.Exists "paket.exe") then | |
let url = "https://github.com/fsprojects/Paket/releases/download/0.27.2/paket.exe" | |
use wc = new Net.WebClient() | |
let tmp = Path.GetTempFileName() | |
wc.DownloadFile(url, tmp) |
#I "../packages/SQLProvider.0.0.9-alpha/lib/net40" | |
#r "FSharp.Data.SqlProvider.dll" | |
open FSharp.Data.Sql | |
type sql = SqlDataProvider<ConnectionString = @"Server=JONWOOD4DDE\SQLEXPRESS;Database=northwind;Trusted_Connection=True", | |
DatabaseVendor = Common.DatabaseProviderTypes.MSSQLSERVER, | |
UseOptionTypes = true> | |
let context = sql.GetDataContext() |
type BankAccount() = | |
member val Balance = Option<float>.None with get, set | |
member this.openAccount() = | |
this.Balance <- Some 0.0 | |
this.Balance.Value | |
member this.closeAccount() = | |
this.Balance <- None |
public class Stock | |
{ | |
public string Symbol { get; set; } | |
public double Price { get; set; } | |
public DateTime DateRecieved { get; set; } | |
} |