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
angular.module('myModule', ['ngRoute']) | |
.factory('MessageResolver', ['$q', '$timeout', function($q, $timeout) | |
{ | |
var deferred = $q.defer(); | |
$timeout(function() | |
{ | |
deferred.resolve(['Hello', 'world!']); |
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
import scala.collection.immutable.{Vector => $} | |
/** | |
* This is highly inspired by https://gist.github.com/pathikrit/a32e17832296befd6b94 | |
* Actually only main recurssion block is changed for better readability | |
* | |
* See also excellent Computerphile video https://www.youtube.com/watch?v=G_UYXzGuqvM | |
*/ | |
object Solver { | |
val n = 9 |
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
package pl.ayeo | |
import cats.effect.{ExitCode, IO, IOApp, Ref} | |
import cats.implicits.* | |
import fs2.* | |
import cats.effect.unsafe.implicits.global | |
import scala.concurrent.duration.* | |
object Fs2App extends IOApp { |
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
package pl.ayeo | |
import cats.effect.IO | |
import cats.effect.Ref | |
import cats.effect.std.Queue | |
import cats.effect.unsafe.implicits.global | |
import cats.syntax.all.* | |
import fs2.{Pipe, Stream} | |
import scala.concurrent.duration.* |
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
package pl.ayeo | |
import cats.effect.IO | |
import cats.effect.Ref | |
import cats.effect.std.Queue | |
import cats.effect.unsafe.implicits.global | |
import cats.syntax.all.* | |
import fs2.{Pipe, Stream} | |
import scala.concurrent.duration.* |
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
package pl.ayeo | |
import cats.effect.{IO, IOApp, Ref} | |
import cats.effect.std.Queue | |
import cats.effect.unsafe.implicits.global | |
import cats.syntax.all.* | |
import fs2.{Pipe, Stream} | |
import scala.concurrent.duration.* | |
object ActorApp extends IOApp.Simple { |
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
package pl.ayeo | |
import cats.effect.{IO, IOApp, Ref} | |
import cats.effect.std.Queue | |
import cats.effect.unsafe.implicits.global | |
import cats.syntax.all.* | |
import fs2.{Pipe, Stream} | |
import scala.concurrent.duration.* | |
import scala.util.Random |