Skip to content

Instantly share code, notes, and snippets.

View plachy-jozef's full-sized avatar
💭
Funky late night education

Jozef Plachy plachy-jozef

💭
Funky late night education
View GitHub Profile
@jnizet
jnizet / confirm-modal-and-service.ts
Last active November 28, 2024 15:43
How to create a reusable service allowing to open a confirmation modal from anywhere with ng-bootstrap
import { Component, Injectable, Directive, TemplateRef } from '@angular/core';
import { NgbModal, NgbModalRef, NgbModalOptions } from '@ng-bootstrap/ng-bootstrap';
/**
* Options passed when opening a confirmation modal
*/
interface ConfirmOptions {
/**
* The title of the confirmation modal
*/
@derekshi
derekshi / csv-downloader.ts
Last active July 2, 2020 10:54
ng2-csv-downloader (Angular2 CSV Downloader): Simple Angular 2 Component for downloading any data as csv.
import {Component, Input, Output, EventEmitter, Renderer} from '@angular/core';
@Component({
selector: 'csv-downloader',
template: `
<button class='btn btn-info' (click)="build()">{{downloaderName}}</button>
`
})
export class CsvDownloader {
@Input() downloaderName: string = 'Download CSV';
@Input() headers: string[] = [];
@Birch-san
Birch-san / local-copilot.md
Last active October 26, 2025 17:40
Running GitHub Copilot against local Code Llama model

Running GitHub Copilot VSCode extension against local Code Llama model

image

image

Tested on NVIDIA RTX 4090, but these instructions also cover AMD and Mac in case you wanna try those.
This guide assumes you are running Linux (I ran this on Ubuntu).

Before you get excited:

@burkeholland
burkeholland / 4.1.chatmode.md
Last active November 7, 2025 04:05
4.1 Beast Mode v2
description tools
4.1 Beast Mode
changes
codebase
editFiles
extensions
fetch
findTestFiles
githubRepo
new
openSimpleBrowser
problems
readCellOutput
runCommands
runNotebooks
runTasks
runTests
search
searchResults
terminalLastCommand
terminalSelection
testFailure
updateUserPreferences
usages
vscodeAPI

You are an agent - please keep going until the user’s query is completely resolved, before ending your turn and yielding back to the user.

@alsamitech
alsamitech / CopilotTorturePrompt.md
Created July 1, 2025 09:33
Claude excels, Gemini tries, GPT fails :(

Implement the following program completley and comprehensively. Meet or exceed the requiremenents. You may want to seperate the implementation into many files.

Overview

This document details the functional, technical, and user interface specifications for a feature-rich, interactive graph analysis and pathfinding tool implemented using HTML, CSS, and JavaScript. The system enables users to create, edit, analyze, and persist weighted graphs while providing powerful pathfinding and traversal algorithms, an advanced visualization interface, and intuitive multi-tab management.

Features Summary

Graph Interaction & Editing