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
<div class="rating"> | |
<span>☆</span><span>☆</span><span>☆</span><span>☆</span><span>☆</span> | |
</div> | |
<div> | |
<p id="output"></p> | |
</div> | |
<script> | |
let ratingStars = [...document.querySelectorAll('.rating span')].map((s, i) => { |
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 leanne | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.WriteLine("Enter name!"); | |
var name = Console.ReadLine(); |
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
#r "System.IO.Compression" | |
#r "System.IO.Compression.FileSystem" | |
open System.IO | |
open System.IO.Compression | |
let path = "**path**" | |
let dir = new DirectoryInfo(path) | |
dir.GetFiles() |
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
package sample | |
import kotlin.reflect.KClass | |
interface ICat { | |
} | |
class Felix : ICat | |
{ |
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
<script src="https://www.gstatic.com/firebasejs/7.1.0/firebase-app.js"></script> | |
<script src="https://www.gstatic.com/firebasejs/5.0.3/firebase-firestore.js"></script> | |
<script src="https://www.gstatic.com/firebasejs/5.0.3/firebase-auth.js"></script> | |
<script src="https://code.jquery.com/jquery-1.12.4.js" crossorigin="anonymous"></script> | |
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js" crossorigin="anonymous"></script> | |
<script> | |
debugger; | |
$(document).ready(function() { | |
debugger; |
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
const cron = require("node-cron"); | |
const express = require("express"); | |
const nodemailer = require("nodemailer"); | |
const app = express(); | |
let transporter = nodemailer.createTransport({ | |
service: "gmail", | |
auth: { | |
user: "<[email protected]>", |
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; | |
using System.Runtime.CompilerServices; | |
namespace ReflectionInfo | |
{ | |
class Program | |
{ | |
static void LogMessage( | |
string logMessage, | |
[CallerFilePath] string callingFilePath = null, |
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
sealed class GoodDojo | |
{ | |
private readonly IList<Student> students; | |
public Sensei Sensei { get; } | |
public IEnumerable<Student> Students => this.students; | |
public GoodDojo(Sensei sensei) | |
{ |
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
sealed class BadDojo | |
{ | |
public IList<Student> Students { get; set; } | |
public Sensei Sensei { get; set; } | |
public string Summary => $"this dojo is run by {Sensei.Name} and has {Students.Count} students"; | |
} |
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
abstract class Person | |
{ | |
public string Name { get; set; } | |
protected Person(string name) | |
{ | |
Name = name; | |
} | |
} |