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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <manifest> | |
| <remote fetch="https://gitlab.com/codeaurora-mirror/quic/la/" name="caf" review="codeaurora.org"/> | |
| <remote fetch="https://github.com/codeaurora-unofficial/" name="gh" review="github.com/codeaurora-unofficial"/> | |
| <remote name="aosp" | |
| fetch="https://android.googlesource.com" /> | |
| <default remote="caf" revision="LAW.BR.2.0_rb1.8"/> | |
| <project groups="pdk-cw-fs,pdk-fs" name="device/common" revision="ae0d194de6c50014772541ab5dbfebb279ae1c01" upstream="LAW.BR.2.0_rb1.8"/> | |
| <project groups="pdk" name="device/generic/arm64" revision="d3591759da5ebcde86571ef31cb801e4c628d72a" upstream="LAW.BR.2.0_rb1.8"/> | |
| <project groups="pdk" name="device/generic/armv7-a-neon" revision="1ebf1a0a8e7417c4826647f30d1dc66aedb2f9f3" upstream="LAW.BR.2.0_rb1.8"/> |
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
| const axios = require("axios"); | |
| const fs = require("fs"); | |
| const path = require("path"); | |
| const retry = require("axios-retry-after"); | |
| axios.interceptors.response.use(null, retry(axios)); | |
| axios.interceptors.response.use( | |
| null, | |
| retry(axios, { | |
| // Determine when we should attempt to retry |
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 numpy as np | |
| # plot them | |
| import matplotlib.pyplot as plt | |
| def y1(x): | |
| return -0.5761728296204 * x**2 + 24.7085930308683 * x - 24.6588309199104 | |
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
| // r/place automated pixel placing script, running directly in your browser | |
| // this script will keep placing a pixel at where you selected | |
| // How to use: | |
| // 1. Ensure you are using Chrome/Edge desktop browser (mobiles aren't supported, firefox might also work) | |
| // 2. open developer tool by pressing ctrl + shift + i (cmd + option + i if you are using a mac). this will open a sidebar | |
| // 3. find "Element" tab on the top of the sidebar, switch to this tab and press ctrl + f (cmd + f) to search | |
| // 4. search for "Reddit r/place" (without quotes), double click on that text, change it to whatever you want (yes whatever idk why we need to do that but otherwise the code would not work) | |
| // 5. In your r/place window, select a pixel that you want to place on | |
| // 6. Modify the color variable in the code below (default is 31, which is white) | |
| // 7. find "Console" tab on the top of the sidebar, switch to it, and copypasta this entire file after the ">" sign (usually at the bottom) |
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 tensorflow as tf | |
| import pandas as pd | |
| # download the two series from WorldBank (China Import/exports of goods and services, current US$) | |
| data = pd.read_csv('import_export.csv', index_col=0, header=None) | |
| # read the line "China" from the data | |
| china = data.loc['China'] | |
| # read the first row of china | |
| imports = china.iloc[0] | |
| exports = china.iloc[1] |
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
| #!/usr/bin/env python | |
| # coding=utf-8 | |
| # Copyright 2023 The HuggingFace Inc. team. All rights reserved. | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # |