Skip to content

Instantly share code, notes, and snippets.

@ufcpp
Created November 9, 2019 02:23
Show Gist options
  • Save ufcpp/0cc53f2231a78808d1d65d3027056e9c to your computer and use it in GitHub Desktop.
Save ufcpp/0cc53f2231a78808d1d65d3027056e9c to your computer and use it in GitHub Desktop.
dotnet try jupyter
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# 試しに\n",
"\n",
"数行の C# Script を書いてみる。"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"6"
]
},
"execution_count": 1,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"\"😊😂🤣\".Length"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"3"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"using System.Linq;\n",
"\"😊😂🤣\".EnumerateRunes().Count()"
]
}
],
"metadata": {
"kernelspec": {
"display_name": ".NET (C#)",
"language": "C#",
"name": ".net-csharp"
},
"language_info": {
"file_extension": ".cs",
"mimetype": "text/x-csharp",
"name": "C#",
"pygments_lexer": "csharp",
"version": "8.0"
}
},
"nbformat": 4,
"nbformat_minor": 4
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment