Skip to content

Instantly share code, notes, and snippets.

View GrieferPig's full-sized avatar
📯
dabstep goes womp womp

GrieferPig GrieferPig

📯
dabstep goes womp womp
  • University of California - Santa Cruz
  • Zephyr Heights, Equestria
  • 08:10 (UTC -07:00)
View GitHub Profile
<?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"/>
@GrieferPig
GrieferPig / gist:fa65998820828c856cf1779bc45c74b2
Created January 20, 2025 12:53
derpibooru image scrapper
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
import numpy as np
# plot them
import matplotlib.pyplot as plt
def y1(x):
return -0.5761728296204 * x**2 + 24.7085930308683 * x - 24.6588309199104
@GrieferPig
GrieferPig / script.js
Created July 21, 2023 15:59
r/place automated pixel placing script
// 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)
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]
#!/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
#