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
def expect_cossim(n, approx=True): | |
""" | |
returns gamma(n / 2) / gamma((n + 1) / 2) / sqrt(pi) for positive integers. | |
""" | |
assert n > 0 | |
if approx: | |
# abs(error) < 1e-8 | |
if n >= 128000: | |
return np.reciprocal(np.sqrt(np.pi / 2 * n + 1)) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
-- General purpose Haskell functions to remember (Note I have ommited the typeclasses here for simplicity) | |
-- Bryan O'Sullivan, Don Stewart, and John Goerzen. Real World Haskell, O'Reilly Media, 2008 | |
-- Length of list | |
-- O(n) | |
-- ✅(empty list) -> total / safe | |
-- Python: len(list) | |
length :: [a] -> Int | |
-- Tells if a list is empty |
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
// ==UserScript== | |
// @name YouTube audio compressor | |
// @namespace https://vivelin.net/ | |
// @version 0.4 | |
// @description Adds an audio compressor option to YouTube videos. | |
// @author Vivelin | |
// @match https://*.youtube.com/* | |
// @updateURL https://gist.github.com/Vivelin/2321d17bf26016ceaed87d6d1a281881/raw/YouTube%2520audio%2520compressor.user.js | |
// @run-at document-idle | |
// @grant none |
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
// ==UserScript== | |
// @name YouTube - Hide Live Chat By Default | |
// @namespace https://gist.github.com/lbmaian/94824cef728917a53d3c6e6ea885469c | |
// @downloadURL https://gist.github.com/lbmaian/94824cef728917a53d3c6e6ea885469c/raw/youtube-hide-livechat.user.js | |
// @updateURL https://gist.github.com/lbmaian/94824cef728917a53d3c6e6ea885469c/raw/youtube-hide-livechat.user.js | |
// @version 0.14 | |
// @description Hide live chat by default on live streams | |
// @author lbmaian | |
// @match https://www.youtube.com/* | |
// @exclude https://www.youtube.com/embed/* |
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
In addition to a significant decrease in hepatic lipid accumulation in the IOE group, which inhibited energy intake by propionate enrichment, hepatic lipids were also significantly reduced in the mice in the IOP group, which was largely enriched with butyrate. Compared with the IOE group, IOP had a stronger regulatory effect on hepatic metabolism and triglyceride metabolism and higher levels of TCA cycle in the host. In addition, butyrate has the ability to promote browning of white adipose tissue (WAT) to brown adipose tissue (BAT).^[@ref39],[@ref40]^ WAT stores energy, whereas BAT uses energy for heating and consequently host energy expenditure increases.^[@ref41],[@ref42]^ However, adipose tissue weight does not change after WAT browning.^[@ref43]^ Therefore, the weight of adipose tissue of mice in the IOP group dominated by butyrate was greater than that of the mice in the IOE group dominated by propionate. | |
In conclusion ([Figure [7](#fig7){ref-type="fig"}](#fig7){ref-type="fig"}C), the improvement of ob |
OlderNewer