Skip to content

Instantly share code, notes, and snippets.

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 27, 2024 03:02
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@brenopolanski
brenopolanski / merge-pdf-ghostscript.md
Last active April 27, 2024 03:00
Merge multiple PDFs using Ghostscript

A simple Ghostscript command to merge two PDFs in a single file is shown below:

gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=combine.pdf -dBATCH 1.pdf 2.pdf

Install Ghostscript:

Type the command sudo apt-get install ghostscript to download and install the ghostscript package and all of the packages it depends on.

@holtgrewe
holtgrewe / thread_safe_queue.cpp
Created January 31, 2014 09:07
A simple thread-safe queue implementation based on std::list<> and C++11 threading primitives.
// A simple thread-safe queue implementation based on std::list<>::splice
// after a tip in a talk by Sean Parent of Adobe.
//
// Uses standard library threading and synchronization primitives together
// with a std::list<> container for implementing a thread-safe queue. The
// only special thing is that the queue uses std::list<>::splice in the
// locked region to minimize locked time.
//
// Also implements a maximal size and can thus be used as a buffer between
// the elements in a pipeline with limited buffer bloat.
@taskylizard
taskylizard / fmhy.md
Last active April 27, 2024 02:54
/r/freemediaheckyeah, in one single file (view raw)
@mygoare
mygoare / dns
Created April 15, 2015 04:11
public dns list
#公共DNS
##国外
- Google DNS: `8.8.8.8` `8.8.4.4`
- OpenDNS: `208.67.222.222` `208.67.220.220`
- OpenNIC: `106.186.17.181`(Japan) `128.199.248.105`(Singapore) `203.248.252.2`(Korea)
- Comodo Secure DNS: `8.26.56.26` `8.20.247.20`
- Norton DNS: `198.153.192.1` `198.153.194.1`
- Norton ConnectSafe DNS: `199.85.126.20` `199.85.127.20`
---
@pmhieu111
pmhieu111 / risc-zero-stark-to-snark-prover_attestation.log
Created April 26, 2024 17:58
Attestation for RISC Zero STARK-to-SNARK Prover MPC Phase 2 Trusted Setup ceremony
Hey, I'm pmhieu111-54319153 and I have contributed to the RISC Zero STARK-to-SNARK Prover MPC Phase2 Trusted Setup ceremony.
The following are my contribution signatures:
Circuit # 1 (stark_verify)
Contributor # 148
Contribution Hash: 6dc39ed5 f4fd739c 7b7ab37e 8f14b87c
645d496c 8ab780e1 947090f0 519dda69
15bd9d2e 2a2d5a22 db3eab8d dbf2efa2
f8b91c04 a8301777 6f98c2a6 3ac918f8
@IverCoder
IverCoder / office-guide.md
Last active April 27, 2024 02:48
Install and Activate Microsoft Office for Free - A Step-by-Step Guide

Please leave a star at the GitHub Gist mirror if this guide has helped you! You can also ask questions/assistance there.

Install and Activate Microsoft Office 365 for Free - A Step-by-Step Guide

This is a guide on how to install the latest version of Microsoft Office for free. For this method, we will use the Office Deployment Tool. The Microsoft Office Deployment Tool is a command-line program that IT managers use to configure and deliver Office products to PCs in their businesses, but in this guide, we will use it to install Microsoft Office with additional customization options and download it straight from Microsoft's servers.

NOTE: You will not need to repeat this step again to upgrade. Just keep your Office up to date and you will not have any issues.

NOTE: Make sure you have recently reloaded your number with at least 5GB of internet if you use your mobile internet through a hotspot to download. If your telecom

@adrianhajdin
adrianhajdin / .eslintrc.cjs
Last active April 27, 2024 02:46
Tailwind CSS Full Course 2023 | Build and Deploy a Nike Website
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:react-hooks/recommended',
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
@slikts
slikts / react-memo-children.md
Last active April 27, 2024 02:44
Why using the `children` prop makes `React.memo()` not work

nelabs.dev

Why using the children prop makes React.memo() not work

I've recently ran into a pitfall of [React.memo()][memo] that seems generally overlooked; skimming over the top results in Google just finds it mentioned in passing in a [React issue][regit], but not in the [FAQ] or API [overview][react-api], and not in the articles that set out to explain React.memo() (at least the ones I looked at). The issue is specifically that nesting children defeats memoization, unless the children are just plain text. To give a simplified code example:

const Memoized = React.memo(({ children }) => (<div>{children}</div>));
// Won't ever re-render
<Memoized>bar</Memoized>
// Will re-render every time; the memoization does nothing
class Utopia:
def __init__(self):
self.inventory = {
"一些音乐制作软体": True,
"一个卡的要死的iphone": True,
"一个有点破掉的鲨鱼": True,
"一箱过期零食": True,
"一个各种层面马上废弃的身体": True
}