Skip to content

Instantly share code, notes, and snippets.

const int MAXN = 100;
int ans[MAXN + 1][MAXN + 1];
int f(int k, int i) {
if (ans[k][i] > 0) return ans[k][i];
if (k == 1) return (ans[1][i] = 1);
for (int j = 1; j <= i - 2; ++j) ans[k][i] += f(k - 1, j);
return ans[k][i];
}
#!/bin/sh
set -e
# Not yet cloned?
if ! [ -d $HOME/.rlima-dotfiles ]; then
# Clone my dotfiles
git clone --bare https://github.com/rodlima78/dotfiles.git $HOME/.rlima-dotfiles
# Command to manipulate the dotfiles repo
import requests
from bs4 import BeautifulSoup
import json
url = "https://tl.is/ihlutir/skjakort.html"
#url = "http://localhost:8000/tolvulistinn.html"
url_page_2 = "https://tl.is/ihlutir/skjakort.html/facet=page-2"
@choco-bot
choco-bot / FilesSnapshot.xml
Created May 18, 2024 16:46
choco-cleaner-rt-ignores.hook v0.1.0 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<files>
<file path="C:\ProgramData\chocolatey\lib\choco-cleaner-rt-ignores.hook\choco-cleaner-rt-ignores.hook.nupkg" checksum="FE1803A1145E0FF75D665DEAB5A63BD4" />
<file path="C:\ProgramData\chocolatey\lib\choco-cleaner-rt-ignores.hook\choco-cleaner-rt-ignores.hook.nuspec" checksum="35AFFB037CD9B33033FD8B3213B0518B" />
<file path="C:\ProgramData\chocolatey\lib\choco-cleaner-rt-ignores.hook\hook\pre-install-all.ps1" checksum="43EE0790303DB920AA26EEDA95FAFF5B" />
</files>
</fileSnapshot>
@christopherbauer
christopherbauer / InMemoryConversationService.ts
Created May 18, 2024 16:45
Slice of GET actions for in-memory
import { personas } from "../persona";
import { ChatGptConversationService } from "./chatgpt";
import {Conversation, ConversationList, ConversationListEntry, ConversationService, Message } from "./types";
/*
* Should only be instantiated once for this app due to it being used in-memory rather than synced to a store
*/
export class InMemoryConversationService implements ConversationService {
chatgpt: ChatGptConversationService;
constructor() {
import java.util.Scanner;
public class Teclado {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String vector[] = new String[8];
for (int i = 0; i < vector.length; i++) {
/*****************
* cellBlockA.js *
*****************
*
* Good morning, Dr. Eval.
*
* It wasn't easy, but I've managed to get your computer down
* to you. This system might be unfamiliar, but the underlying
* code is still JavaScript. Just like we predicted.
*
using System;
namespace CSlight
{
internal class Program
{
static void Main(string[] args)
{
int appointmentTimeInMinutes = 10;
int minutesInHour = 60;
U4EDAwMDAAACqgAAAAbyvAANAAAAAAAAAAD///8lQTAAAAAAAAD1nelb+VcAAAqqAAAKAwAAI0EoAAAAAAAA+2XpW/WkAAAf/wAACgMTAAoKAQAAAAAAAACq9Rv1nQAAAADuNwwIJQwKCgEAAAAAAAAF3Pt59Z0AAAAA1VQMCCUMCgoBAAAAAAAAAKr1G/WdAAAAAO43DAglDAoKAQAAAAAAAAXc+3n1nQAAAADVVAwIJQwjQSgAAAAAAAD7Selb9aQAAN//AAAKAyQAJUEwAAAAAAAAAF/pW/lXAAD1VAAACgM1AB5BKAAAAAAAAPwB6Vv1WAAAAAAAAAoDSAABI0YAAAAAAAAAAOFd8q4AAAAAAAATBhYnASNGAAAAAAAAAADu9OgGxEMAAAAAEwYkJwEjRgAAAAAAAAAA5eXtn+ONAAAAABMGLCs/QTIAAAAAAAD3iOlb+1cAAAAAAAAKA1cACgoBAAAAAAAABhn2cPdRf/8AAIcbFwglDAoKAQAAAAAAAAYZ9nD3UX//AACHGxcIJQweQSgAAAAAAAD8Aelw9VgAAAAAAAAKA0gAJUEwAAAAAAAAAF/paflXAAD1VAAACgM1ACVBMAAAAAAAAPWd6Wn5VwAACqoAAAoDAAABCgoAAAAAAAD1lvOC/AHuNwAAAAAcCCULAQoKAAAAAAAA9Zb3G/0S/HAAAAAAHAglCwEKCgAAAAAAAPWW+AL01+cbAAAAABwIJQsKAAoAAAAAAAAF3AU//VYAAAAAf/8cCCQMAQoKAAAAAAAA9Zb3G/0S/HAAAAAAHAglCwEKCgAAAAAAAPWW84L8Ae43AAAAABwIJQsBCgoAAAAAAAD1lvgC9NfnGwAAAAAcCCULCgAKAAAAAAAABdwFP/1WAAAAAH//HAgkDAotKAP/7Vr/eAFb+CX8WvVUFVUBbAAEADYKHx4BVfgCBVQADfh99vkAAAAAAAAlBAs2ChQWAAD4Av1WABT7sPmjAAAAAAAAJgQUMwoSCgAAAAAAAAE5+7D5
@Omnikron13
Omnikron13 / nerdfont-ranges.json
Created May 18, 2024 16:42
NerdFont v3.2.1 Ranges
[{"name":"Octicons","ranges":[{"first":62464,"last":62771},{"first":9829,"last":9829},{"first":9889,"last":9889}]},{"name":"IEC Power Symbols","ranges":[{"first":9211,"last":9214},{"first":11096,"last":11096}]},{"name":"Pomicons","ranges":[{"first":57344,"last":57354}]},{"name":"Powerline Symbols","ranges":[{"first":57504,"last":57506},{"first":57520,"last":57523}]},{"name":"Powerline Extra Symbols","ranges":[{"first":57507,"last":57507},{"first":57524,"last":57544},{"first":57546,"last":57546},{"first":57548,"last":57559}]},{"name":"Font Awesome Extension","ranges":[{"first":57856,"last":58025}]},{"name":"Weather Icons","ranges":[{"first":58112,"last":58339}]},{"name":"Seti-UI + Custom","ranges":[{"first":58874,"last":59061}]},{"name":"Devicons","ranges":[{"first":59136,"last":59333}]},{"name":"Codicons","ranges":[{"first":60000,"last":60446}]},{"name":"Font Awesome","ranges":[{"first":60672,"last":61390},{"first":61440,"last":62207}]},{"name":"Font Logos/Font Linux","ranges":[{"first":62208,"last":62322}]},