- Ppxlib (new)
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
| import * as request from "request"; | |
| import * as SendBird from "sendbird"; | |
| const sendbirdServiceUrl = "https://sendbird.reddit.com"; | |
| const sendbirdAppId = "2515BDA8-9D3A-47CF-9325-330BC37ADA13"; | |
| const userId = "t2_mv8j9bt"; // chatrev1 | |
| const accessToken = "49777998329-oof4CSA1jedsnu6pXgJj_SFIk7o"; | |
| // accessToken (bearer): | |
| // full (personalized) oauth2 access token (from web/installed reddit app): user id base 10 - oauth2 access token |
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
| .SWWNNWNNESENNWWNWSSWSWWWSEEEE | |
| .|N | |
| .|.SSWWSSESSSEENNESSEEEENENEEENWNWSWWWS | |
| .|.|.WW | |
| .|.|.|SEEWWN | |
| .|.|.| | |
| .|.|.NEN | |
| .|.|.|.WWW | |
| .|.|.|.|NN | |
| .|.|.|.|.W |
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
| module SICPInfSeries where | |
| -- SICP, exercise 3.59 | |
| integrateSeries :: Fractional a => [a] -> [a] | |
| -- integrateSeries s = helper s 1 | |
| -- where helper (a:as) n = a / n : helper as (n + 1) | |
| integrateSeries s = zipWith (/) s nats | |
| where nats = 1 : map (+1) nats | |
| expSeries :: Fractional a => [a] |
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
| diff --git a/src/gui/curses/gui-curses-chat.c b/src/gui/curses/gui-curses-chat.c | |
| index 7fb229e88..c65db3302 100644 | |
| --- a/src/gui/curses/gui-curses-chat.c | |
| +++ b/src/gui/curses/gui-curses-chat.c | |
| @@ -1244,8 +1244,10 @@ gui_chat_display_line (struct t_gui_window *window, struct t_gui_line *line, | |
| int read_marker_x, read_marker_y; | |
| int word_start_offset, word_end_offset; | |
| int word_length_with_spaces, word_length; | |
| + int num_split_lines, i; | |
| char *message_with_tags, *message_with_search; |
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
| golomb@(_:_:g) = 1 : 2 : 2 : concatMap (uncurry replicate) (zip g [3..]) | |
| -- golomb = 1 : 2 : g | |
| -- where g = 2 : concatMap (uncurry replicate) (zip g [3..]) |
- Heterogeneous containers in OCaml (archive
- ocaml-containers
CCMixmap- type accessor objects
- generalized-signatures
Hashtblexample- module signature only
- GADTs and associative container
- https://sympa.inria.fr/sympa/arc/caml-list/2013-07/msg00071.html
- typed key in value as well
- https://sympa.inria.fr/sympa/arc/caml-list/2013-07/msg00071.html
- Copy
OlderNewer