- Intro: https://www.youtube.com/playlist?list=PL697D36B35F92E9E4 (1)
- JS:
- Single page: https://developer.mozilla.org/en-US/docs/Web/JavaScript/A_re-introduction_to_JavaScript (2)
- Video: http://video.ch9.ms/ch9/DF01/97ECAC6F-5413-486A-B9D5-9EB60082DF01/MIX11HTM06_high_ch9.mp4 (5)
- Intermediate: http://ejohn.org/apps/learn (6)
- Philip Roberts: What the heck is the event loop anyway? https://www.youtube.com/watch?v=8aGhZQkoFbQ
This file contains 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
//Provide an implementation of the abstract class Nat that represents non-negative integers | |
// | |
//Do not use standard numerical classes in this implementation. | |
//Rather, implement a sub-object and sub-class: | |
// | |
//class Zero : Nat | |
//class Succ(n: Nat) : Nat | |
// | |
//One of the number zero, then other for strictly positive numbers. | |
namespace Nat |
This file contains 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
class ReverseForLookupItem : ForLookupItemBase | |
{ | |
public ReverseForLookupItem([NotNull] PrefixExpressionContext context, | |
[NotNull] LiveTemplatesManager templatesManager, | |
[CanBeNull] string lengthPropertyName) | |
: base("forR", context, templatesManager, lengthPropertyName) { } | |
protected override IForStatement CreateStatement(CSharpElementFactory factory, ICSharpExpression expression) | |
{ | |
... |
This file contains 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
# You should have pswatch installed (http://psget.net/directory/pswatch/) | |
# You need small modification to the FSharpKoans/PathToEnlightenment.fs to make sure that you will not need to press any key | |
# Comment out | |
# printf "Press any key to continue..." | |
# System.Console.ReadKey() |> ignore | |
# 1. Open separate powershell window | |
# 2. Make sure you are in FSharpKoans solution folder | |
# 3. Run watch_fsharpkoans.ps1 | |
# 4. Make both your visual studio and powershell window visitble at the same time | |
# 5. Enjoy! |
This file contains 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
процедура MergeSort (мод a: t) це | |
процедура Merge(арг a: t; Size: нат; рез b: t) це | |
змін i, j, k, r1, r2: нат; | |
поч | |
k <- 1; | |
поки k<=n повт | |
{визначення границь підмасивів} | |
i <- k; r1 <- i+Size-1; | |
якщо r1>n то r1 <- n кр; | |
j <- r1+1; r2 <- j+Size-1; |
This file contains 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
var Feedback = Backbone.Model.extend({ | |
url: '/feedback', | |
validate: function (attrs) { | |
var errors = []; | |
if (!attrs.email || attrs.email === '') { | |
errors.push({name: 'email', message: 'Please fill email field.'}); | |
} |
This file contains 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
public class Order { | |
public int Id { get; set; } | |
public DateTime OrderedAt { get; set } | |
public IList<OrderLine> OrderLines { get; set } | |
public Person Customer { get; set } | |
} | |
public class OrderLine { | |
public int Id { get; set; } | |
public int Count { get; set; } |
This file contains 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
/* | |
This example uses Scala. Please see the MLlib documentation for a Java example. | |
Try running this code in the Spark shell. It may produce different topics each time (since LDA includes some randomization), but it should give topics similar to those listed above. | |
This example is paired with a blog post on LDA in Spark: http://databricks.com/blog | |
Spark: http://spark.apache.org/ | |
*/ | |
import scala.collection.mutable |
This file contains 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
# -*- coding: utf-8 -*- | |
# Copyright (C) 2017 by Akira TAMAMORI | |
# This program is free software; you can redistribute it and/or modify it under | |
# the terms of the GNU General Public License as published by the Free Software | |
# Foundation, either version 3 of the License, or (at your option) any later | |
# version. | |
# | |
# This program is distributed in the hope that it will be useful, but WITHOUT |
This file contains 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
"Hopefully the third answer is right; but who knows, maybe I made a mistake; I’m just a human, I can throw exceptions as well." | |
"I am waving my hands on purpose here, this is very spaghetti like code. And spaghetti is great as food, but not good as code." | |
"flatMap will allow us to focus on the happy path. flatMap will take care of all the noise. flatMap is the dolby for programmers." | |
"Great programmers write baby code" | |
"it's obviously correct" |