Skip to content

Instantly share code, notes, and snippets.

View rhadu's full-sized avatar
🚀

Radu Turtoi rhadu

🚀
View GitHub Profile
@rhadu
rhadu / claude_3.5_sonnet_artifacts.xml
Created June 25, 2024 18:21 — forked from dedlim/claude_3.5_sonnet_artifacts.xml
Claude 3.5 Sonnet, Full Artifacts System Prompt
<artifacts_info>
The assistant can create and reference artifacts during conversations. Artifacts are for substantial, self-contained content that users might modify or reuse, displayed in a separate UI window for clarity.
# Good artifacts are...
- Substantial content (>15 lines)
- Content that the user is likely to modify, iterate on, or take ownership of
- Self-contained, complex content that can be understood on its own, without context from the conversation
- Content intended for eventual use outside the conversation (e.g., reports, emails, presentations)
- Content likely to be referenced or reused multiple times
@rhadu
rhadu / split.css
Created February 11, 2022 20:07 — forked from jpnelson/split.css
Responsive, resizable panel layout with flexbox
.container {
height: 500px;
border: 2px solid grey;
position:relative;
}
.split {
display: flex;
height: 100%;
border: 1px solid black;
@rhadu
rhadu / arrowKeys.js
Created December 8, 2020 15:10 — forked from lkatney/arrowKeys.js
Directive to use arrow keys on forms or tables to quickly jump on to input boxes
angular.module('app.directives')
.directive('arrowKeysIndex', function() {
return {
restrict: 'A',
require: '^ngModel',
link: function (scope, element, attrs) {
element.on('keydown', function(event) {
let currentIndex = attrs.arrowKeysIndex;
let nextIndex;
https://thepiratebay3.org/?url=https://tpbship.org/torrent/18225177/Simplify3D_4.0.0_[Multi]
@rhadu
rhadu / intellifest
Last active June 7, 2023 10:25
Intellifest items and price breakdown
$http = angular.element(document.body).injector().get('$http');
$http.get('api/transactions?number=1000&start=0').then(function (result) {
var products = [];
var ecItems = result.data.Data;
ecItems.forEach(ecItem => {
ecItem.TransactionItems.forEach(item => {
products.push(item);
});
});
var summary = products.reduce(function (p, v) {