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
type Handler = Box<Fn(i32) -> i32>; | |
type Middleware = fn(Handler) -> Handler; | |
struct Router { | |
middleware: Vec<Middleware>, | |
} | |
impl Router { | |
pub fn new() -> Router { | |
Router { |
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
swagger: "2.0" | |
info: | |
description: "Swagger description of nhentai.net API." | |
version: "1.0.0" | |
title: "Nhentai.net API" | |
host: "nhentai.net" | |
tags: | |
- name: "search" | |
description: "Search books at nhentai.net" | |
- name: "book" |
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 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 main | |
import ( | |
"golang.org/x/net/proxy" | |
"log" | |
"net/http" | |
"net/url" | |
"os" | |
"time" |
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 main | |
type Optional(type T) struct { | |
p *T | |
} | |
func OptionalFrom(type T)(value T) Optional(T) { | |
return Optional(T){p: &value} | |
} |
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 main | |
import ( | |
"fmt" | |
"strings" | |
) | |
type Tuple(type A, B) interface { | |
Head() A | |
Tail() B |
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 main | |
import ( | |
"fmt" | |
) | |
type Context struct { | |
Max int | |
Max7 int | |
} |
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
через :: a -> a | |
через a = a | |
греку :: a -> a | |
греку a = a | |
в :: a -> a | |
в a = a | |
реке :: a -> a |
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 id = 1; | |
var users = []; | |
var i = 0; | |
while(i < 25) { | |
var req = API.groups.getMembers({"group_id":id,"count":1000, | |
"offset":i*1000,"fields":"sex, bdate, city, country, photo_50, photo_100, photo_200_orig, photo_200, photo_400_orig, photo_max, photo_max_orig, online, online_mobile, lists, domain, has_mobile, contacts, connections, site, education, universities, schools, can_post, can_see_all_posts, can_see_audio, can_write_private_message, status, last_seen, common_count, relation, relatives"}); | |
users.push(req.items); | |
i = i + 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
package main | |
type CacheNode[K, V any] struct { | |
key K | |
value V | |
prev *CacheNode[K, V] | |
next *CacheNode[K, V] | |
parent *FreqNode[K, V] | |
} |
OlderNewer