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
#lang racket | |
(require plot) | |
(define (get-linear k) | |
(lambda (x) (+ x k))) | |
(define (get-square k) | |
(lambda (x) (* k (* x x)))) |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Diagnostics; | |
namespace Sort | |
{ | |
class Program |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace DoubleCheckingExample | |
{ | |
class Cache |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace DoubleCheckingExample | |
{ | |
class Cache |
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
function callcc(f, cc) { | |
f(function(x, k) { | |
cc(x); | |
}, cc); | |
} | |
function fuck(cc) { | |
console.log('first fuck'); | |
cc(function(cc) { | |
console.log('second fuck'); |
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
Что должно вернуться из GET /api/customers если в системе нет ни одного кастомера? | |
1. null | |
2. [] | |
3. | |
{ | |
"customers": null | |
} | |
4. | |
{ |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace AttributesExample | |
{ | |
static class Configuration | |
{ |
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
(define (partial func . args) | |
(lambda a | |
(apply func (append args a)))) | |
(define (sum a b) (+ a b)) | |
(define add5 (partial sum 5)) | |
(add5 10) |
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
(defun throw-zigulka () | |
(interactive) | |
(dolist (font-family (font-family-list)) | |
(let ((str font-family)) | |
(insert (propertize (concat "o/ o/ o/ o/ o/ o/ o/ o/ o/ o/ o/ o/ o/ o/ (" str ")") | |
'face `((:family ,font-family)))) | |
(newline)))) | |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace WithExample | |
{ | |
static class IEnumerableExtension | |
{ | |
public static IEnumerable<T> With<T>(this IEnumerable<T> collection, Func<IEnumerable<T>, IEnumerable<T>> proc) | |
{ |