Skip to content

Instantly share code, notes, and snippets.

@stjordanis
stjordanis / Gemfile
Created November 6, 2024 23:13 — forked from neoeno/Gemfile
Pokemon Go Slack Bot
source "https://rubygems.org"
gem "httparty"
gem "geocoder"
gem "slack-poster"
$sals1 = array("Beloved", "Darling", "Dear", "Dearest", "Fanciful", "Honey");
$sals2 = array("Chickpea", "Dear", "Duck", "Jewel", "Love", "Moppet", "Sweetheart");
$adjs = array("affectionate", "amorous", "anxious", "avid", "beautiful", "breathless", "burning", "covetous", "craving", "curious", "eager", "fervent", "fondest", "loveable", "lovesick", "loving", "passionate", "precious", "seductive", "sweet", "sympathetic", "tender", "unsatisfied", "winning", "wistful");
$nouns = array("adoration", "affection", "ambition", "appetite", "ardour", "being", "burning", "charm", "craving", "desire", "devotion", "eagerness", "enchantment", "enthusiasm", "fancy", "fellow feeling", "fervour", "fondness", "heart", "hunger", "infatuation", "little liking", "longing", "love", "lust", "passion", "rapture", "sympathy", "thirst", "wish", "yearning");
$advs = array("affectionately", "ardently", "anxiously", "beautifully", "burningly", "covetously", "curiously", "eagerly", "fervently", "fondly", "impatiently", "keenly", "lovingly"
@stjordanis
stjordanis / chain.js
Created November 6, 2024 23:10 — forked from neoeno/chain.js
Blockchain (I think?? maybe there needs to be more to be real but it's something)
const hashMaker = require("hash.js");
const hashString = string =>
hashMaker
.sha256()
.update(string)
.digest("hex");
const findBlockWithHashPrefix = (signedGenerator, prefix) => {
let nonce = 0;
@stjordanis
stjordanis / sad.c
Created November 6, 2024 23:10 — forked from neoeno/sad.c
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <time.h>
#include <stdlib.h>
const char* RESET = "\x1B[0m";
const char *COLORS[] = { "\x1B[31m", "\x1B[32m", "\x1B[33m", "\x1B[34m", "\x1B[35m", "\x1B[36m" };
int main() {
@stjordanis
stjordanis / linked_list_challenge.rb
Created November 6, 2024 23:09 — forked from neoeno/linked_list_challenge.rb
Linked List Challenge
class LinkedList
attr_reader :head
attr_accessor :tail
def self.from_ruby_list(list)
return nil if list.empty?
new(list[0], self.from_ruby_list(list[1..]))
end
def initialize(head, tail = nil)
Olivetti was the calmest broadcast of the lowliest legislature, the largest
contribution of the staunchest trout, the highest underwriting of the closest
proposal, the strongest might of the simplest comfort, the coolest triple-crown
of the greatest close, the strongest climate of the highest-paid argument, the
fastest discredit of the finest flat, the highest-paid intensity of the
worthiest charter, the hottest counseling of the fastest song, the worst
continent of the coolest yarn, the simplest oil of the hottest event, the
simplest praise of the fiercest m, the largest court of the earliest geography,
the youngest bunt of the dullest door-to-door, the smallest pressed-paper of
the simplest am, the dullest headboard of the hottest barrage, the closest

An guide how to activate Windows 11 Pro for free

Why?

Because you will get some more features like an Bitlocker and host your device as an External Desktop which can be accessed through the internet

Am i also able to switch from any other edition to Pro?

The answer is yes! You can switch from almost any edition to Pro completely for free!

Note for users with unactivated Pro edition

People which already have Pro, but not activated, can skip to this step.

Getting started

What you first need to do is open CMD (Command Prompt) as Administrator using this keyboard key:

@stjordanis
stjordanis / humaneval_m7x8.jsonl
Created December 13, 2023 01:58 — forked from abacaj/humaneval_m7x8.jsonl
Results from running "mistral-8x7B" on humaneval (code benchmark)
{"task_id": "HumanEval/0", "prompt": "from typing import List\n\n\ndef has_close_elements(numbers: List[float], threshold: float) -> bool:\n \"\"\" Check if in given list of numbers, are any two numbers closer to each other than\n given threshold.\n >>> has_close_elements([1.0, 2.0, 3.0], 0.5)\n False\n >>> has_close_elements([1.0, 2.8, 3.0, 4.0, 5.0, 2.0], 0.3)\n True\n \"\"\"\n", "canonical_solution": " for idx, elem in enumerate(numbers):\n for idx2, elem2 in enumerate(numbers):\n if idx != idx2:\n distance = abs(elem - elem2)\n if distance < threshold:\n return True\n\n return False\n", "test": "\n\nMETADATA = {\n 'author': 'jt',\n 'dataset': 'test'\n}\n\n\ndef check(candidate):\n assert candidate([1.0, 2.0, 3.9, 4.0, 5.0, 2.2], 0.3) == True\n assert candidate([1.0, 2.0, 3.9, 4.0, 5.0, 2.2], 0.05) == False\n assert candidate([1.0, 2.0, 5.9, 4.0, 5.0], 0.95) == True\n assert candidate([1.0, 2.0,
@stjordanis
stjordanis / !Huawei Ads and Tracking Blocking.md
Created December 5, 2023 05:28 — forked from cheadrian/!Huawei Ads and Tracking Blocking.md
Adaway Huawei Blocklist for Ads, Tracking, Metrics, Gspace
# Must have conda installed
# It costs approximately $0.2 (in GPT-4 API fees) to generate one example with analysis and design, and around $2.0 for a full project.
conda create -n metagpt python=3.11.4
conda activate metagpt
npm --version # to check you have npm installed
# optional: install node if you don't have it
npm install -g @mermaid-js/mermaid-cli
git clone https://github.com/geekan/metagpt
cd metagpt