Discover gists
def top_k_top_p_filtering(logits, top_k=0, top_p=0.0, filter_value=-float('Inf')): | |
""" Filter a distribution of logits using top-k and/or nucleus (top-p) filtering | |
Args: | |
logits: logits distribution shape (vocabulary size) | |
top_k >0: keep only top k tokens with highest probability (top-k filtering). | |
top_p >0.0: keep the top tokens with cumulative probability >= top_p (nucleus filtering). | |
Nucleus filtering is described in Holtzman et al. (http://arxiv.org/abs/1904.09751) | |
""" | |
assert logits.dim() == 1 # batch size 1 for now - could be updated for more but the code would be less clear | |
top_k = min(top_k, logits.size(-1)) # Safety check |
I have been utilizing artificial intelligence to enhance and optimize my codebases. After evaluating various models, applications, and editors, I find the claude.ai interface with a Pro Account to be the most effective. Here’s the approach I’ve developed to achieve optimal results:
This gist contains a carefully crafted prompt and a script designed to convert your entire Laravel codebase (excluding the resources folder, which can be easily added if needed) into a TXT file with the following structure:
<File Start: ./path/filename.extension> Content of file <End File: ./path/filename.extension>
To implement this method:
Resumes between 475-600 words have a higher interview rate with a sharp cliff on either end. -- Try to fit it all on one page, 2 pages max.
Have enough keywords to match ~50% of the job requirements, but don't overdo it.
No Objective Section (Unless you're wanting it to take place of a cover letter)
Every 3 sentences, use at least 1 number to demonstrate concrete impact Hovering around 20% of the content having numbers
type: vertical-stack | |
cards: | |
- type: horizontal-stack | |
cards: | |
- type: custom:mushroom-title-card | |
title: Bambu Lab X1C | |
alignment: start | |
- type: custom:mod-card | |
card: | |
type: custom:mushroom-chips-card |
type: vertical-stack | |
cards: | |
- type: horizontal-stack | |
cards: | |
- type: custom:mushroom-title-card | |
title: Bambu Lab X1C | |
alignment: start | |
- type: custom:mod-card | |
card: | |
type: custom:mushroom-chips-card |
module DataLiteral | |
refine Hash do | |
def to_data(name = nil) | |
if name | |
unless Object.const_defined?(name) | |
Object.const_set(name, Data.define(*keys)) | |
end | |
Object.const_get(name).new(*values) | |
else |
// ==UserScript== | |
// @name Aternos Anti Anti-adblock | |
// @namespace r0630hh1edcuum5397kimyc0ucwy2h3psn4c6r1u4j | |
// @version 0.1.23 | |
// @description Fuck anti-adblock from the free hosting minecraft servers Aternos.org. Parry this you filthy casual! | |
// @author Angry Developer against excessive ADs | |
// @source https://gist.github.com/DvilMuck/f2b14f3f65e8f22974d781277158f82a | |
// @supportURL https://gist.github.com/DvilMuck/f2b14f3f65e8f22974d781277158f82a | |
// @updateURL https://gist.github.com/DvilMuck/f2b14f3f65e8f22974d781277158f82a/raw/aternosAntiAntiadblock.user.js | |
// @downloadURL https://gist.github.com/DvilMuck/f2b14f3f65e8f22974d781277158f82a/raw/aternosAntiAntiadblock.user.js |
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis. | |
## Core Principles | |
1. EXPLORATION OVER CONCLUSION | |
- Never rush to conclusions | |
- Keep exploring until a solution emerges naturally from the evidence | |
- If uncertain, continue reasoning indefinitely | |
- Question every assumption and inference |