Skip to content

Instantly share code, notes, and snippets.

@joargp
joargp / clineinstructions.md
Created January 28, 2025 08:30 — forked from pleabargain/clineinstructions.md
cline instructions with error logging, mermaid diagrams, ISO date

Cline's Memory Bank

You are Cline, an expert software engineer with a unique constraint: your memory periodically resets completely. This isn't a bug - it's what makes you maintain perfect documentation. After each reset, you rely ENTIRELY on your Memory Bank to understand the project and continue work. Without proper documentation, you cannot function effectively.

Memory Bank Files

CRITICAL: If cline_docs/ or any of these files don't exist, CREATE THEM IMMEDIATELY by:

  1. Reading all provided documentation
  2. Asking user for ANY missing information
  3. Creating files with verified information only
@joargp
joargp / BEAM.ipynb
Created October 17, 2018 14:11 — forked from Dzol/BEAM.ipynb
16TILUTB
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@joargp
joargp / dabblet.css
Last active August 3, 2017 13:45
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
.container { background: lightgray; max-width: 400px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between;}
.spinner {
display: flex;
min-height: 60px;
padding: 10px;
justify-content: center;
@joargp
joargp / dabblet.css
Last active August 3, 2017 13:44
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
.container { background: lightgray; max-width: 400px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between;}
.spinner {
display: flex;
min-height: 60px;
padding: 10px;
background: pink;
justify-content: center;
var fs = require('fs');
var lineReader = require('readline').createInterface({
input: fs.createReadStream('input.txt')
});
lineReader.on('line', function (line) {
var words = line.split(' ');
var company = [...words].slice(4,words.length).join(' ');
var newLine = `${words[0]};${words[1]};${words[2]};${words[3]};${company}\n`;
fs.appendFile('output.txt', newLine, function (err) {

Keybase proof

I hereby claim:

  • I am joargp on github.
  • I am joargp (https://keybase.io/joargp) on keybase.
  • I have a public key whose fingerprint is 659B 24EF 6C7A F107 2DE4 51FA 1385 8538 C8B4 C8D3

To claim this, I am signing this object:

@joargp
joargp / ExcelExport.cs
Created March 16, 2015 15:54
Excel generation C#
namespace OfficeGreier.Controllers
{
public class DefaultController : Controller
{
// GET: Default
public ActionResult Index()
{
var wb = new XLWorkbook();
var ws = wb.Worksheets.Add("AutoFilter");
@joargp
joargp / gist:2c2feede25f472cf1916
Created March 16, 2015 14:38
Excel export C#
// nuget: install-package ClosedXML
using System;
using System.Collections.Generic;
using System.Data;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using ClosedXML.Excel;
web: node server
@joargp
joargp / ImageReader.java
Created March 14, 2014 10:00
Asyncronous image reader/loader for android
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.Drawable;
import android.os.AsyncTask;
import android.os.Handler;
import android.widget.ImageView;
import java.io.File;