Кирилл In | Out | Вася In | Out | Миша In | Out | Витя In | Out | Андрей In | Out | |
---|---|---|---|---|---|---|---|---|---|---|
Пивко | +311 | -965 | +311 | +311 | -280 | +311 | ||||
Пиццы | +332 | +332 | -1660 | +332 | +332 | +332 | ||||
Банька | +1600 | -5000 | +1600 | +1600 | +1600 | -1000 | +1600 | -2000 | ||
Аэрохоккей | +40 | +40 | +40 | -50 | +40 | -150 | +40 | |||
Такси | +242 | -250 | +242 | -250 | +242 | +242 | -470 | |||
1972 | -5000 | 2525 | -2875 | 2525 | -300 | 2525 | -1430 | 2525 | -2470 |
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
{-# LANGUAGE FlexibleContexts #-} | |
{-# LANGUAGE LambdaCase #-} | |
module Main where | |
import Conduit | |
import Control.Monad.State | |
import Streamly | |
import qualified Streamly.Prelude as S | |
-- | reorder takes each N elements from a list and reverses them, e.g. |
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
(require 'projectile) | |
(require 'dash) | |
(require 'ede) | |
;; TODO: create weigh function which considers length of path and | |
;; amount of names like "inc", "include", "sdk", "lib" etc | |
(defun my-best-match (dir file-name) | |
(let* ((default-directory dir) | |
(all-files (projectile-current-project-files)) | |
(good-files (--filter (string-match file-name it) all-files))) |
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
(require 'dash) | |
(defun sk-theme-chooser--get-theme-package (theme) | |
(if (consp theme) (plist-get theme :package) | |
(intern (concat (symbol-name theme) "-theme")))) | |
(defun sk-theme-chooser--get-theme-list (theme) | |
(if (consp theme) (plist-get theme :themes) | |
(list theme))) |
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 rxtest; | |
import java.util.concurrent.TimeUnit; | |
import java.util.function.Function; | |
import rx.Observable; | |
import rx.subjects.PublishSubject; | |
public class RxTest { | |
/** |
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
class MapOnce<T, R> { | |
private final PublishSubject<R> subject = PublishSubject.create(); | |
private MapOnce(Observable<T> source, Function<T, R> func) { | |
source.subscribe((T data) -> { | |
R result = func.apply(data); | |
subject.onNext(result); | |
}); | |
} |
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
program Simple; {$APPTYPE CONSOLE} | |
type TProc = reference to Procedure; | |
var i: Integer; | |
arr: array[1..5] of TProc; | |
begin | |
for i := 1 to 5 do | |
arr[i] := | |
procedure begin | |
end; |
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
program capture_by_value; | |
{$APPTYPE CONSOLE} | |
{$R *.res} | |
uses | |
System.SysUtils; | |
type |
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
program frameobj_alloc; | |
{$APPTYPE CONSOLE} | |
{$R *.res} | |
uses | |
System.SysUtils; | |
const |
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
program inner_var; | |
{$APPTYPE CONSOLE} | |
{$R *.res} | |
uses | |
System.SysUtils; | |
type |