Skip to content

Instantly share code, notes, and snippets.

View darmie's full-sized avatar
🏠
Working from home

'Damilare Darmie Akinlaja darmie

🏠
Working from home
View GitHub Profile
@darmie
darmie / Architecture-editor.md
Created September 30, 2024 20:25 — forked from ruvnet/Architecture-editor.md
Leveraging advanced language models (LLMs) has become integral to enhancing coding efficiency and accuracy. Aider introduces a groundbreaking approach by **separating code reasoning from code editing**, utilizing two specialized models to tackle each aspect of the coding process. This bifurcation not only optimizes performance but also leverages…

Introduction

Leveraging advanced language models (LLMs) has become integral to enhancing coding efficiency and accuracy. Aider introduces a groundbreaking approach by separating code reasoning from code editing, utilizing two specialized models to tackle each aspect of the coding process. This bifurcation not only optimizes performance but also leverages the unique strengths of different models to achieve state-of-the-art (SOTA) results in code editing tasks.

Functional Explanation

Traditionally, solving a coding problem using an LLM involves a single model handling both the reasoning required to devise a solution and the precise editing needed to implement that solution within existing codebases. This dual responsibility can dilute the model's effectiveness, as it must juggle complex problem-solving with meticulous code formatting and syntax adherence.

Aider's innovative approach divides this process into two distinct phases:

  1. Code Reasoning (Architect Model):
@darmie
darmie / AnniversaryTemplate.html
Last active April 28, 2022 10:34
Anniversary Template
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<!-- NAME: SALE ANNOUNCEMENT -->
<!--[if gte mso 15]>
<xml>
<o:OfficeDocumentSettings>
@darmie
darmie / ff2cv.cpp
Created January 3, 2020 23:30 — forked from yohhoy/ff2cv.cpp
Read video frame with FFmpeg and convert to OpenCV image
/*
* Read video frame with FFmpeg and convert to OpenCV image
*
* Copyright (c) 2016 yohhoy
*/
#include <iostream>
#include <vector>
// FFmpeg
extern "C" {
#include <libavformat/avformat.h>
@darmie
darmie / .hxcpp_config.xml
Last active December 18, 2024 19:28
HXCPP Cross Compile to Windows from Mac OSX
<!--
This file will get included twice - once at the beginning - once at the end.
The first time though, the "vars" section is parsed, and this is where you can
set variables to control the setup of the standard compilers and install paths etc.
The second time, the "exes" section is parsed, and you can modify the linkers/compilers
by adding flags to these executables.
@darmie
darmie / RuleParser.hx
Created August 31, 2018 16:37 — forked from anissen/RuleParser.hx
Parse toy rule language using hxparse
/*
Syntax:
if (condition) then (action)
if [(condition), (condition)] then [(action), (action)]
*/
/*
Testing:
function testRule(correct :Bool, s :String) {
@darmie
darmie / index.html
Last active August 23, 2024 22:06
base64ToArrayBuffer
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@darmie
darmie / TextField.hx
Created September 10, 2017 20:15 — forked from tienery/TextField.hx
TextField class using Kha in Haxe
package render;
import kha.Key;
import kha.input.Keyboard;
import kha.Font;
import kha.Color;
import kha.input.Mouse;
import kha.graphics2.Graphics;
class TextField
@darmie
darmie / CountryCodes.json
Created May 18, 2017 00:08 — forked from Goles/CountryCodes.json
Country and Dial or Phone codes in JSON format
[{"name":"Israel","dial_code":"+972","code":"IL"},{"name":"Afghanistan","dial_code":"+93","code":"AF"},{"name":"Albania","dial_code":"+355","code":"AL"},{"name":"Algeria","dial_code":"+213","code":"DZ"},{"name":"AmericanSamoa","dial_code":"+1 684","code":"AS"},{"name":"Andorra","dial_code":"+376","code":"AD"},{"name":"Angola","dial_code":"+244","code":"AO"},{"name":"Anguilla","dial_code":"+1 264","code":"AI"},{"name":"Antigua and Barbuda","dial_code":"+1268","code":"AG"},{"name":"Argentina","dial_code":"+54","code":"AR"},{"name":"Armenia","dial_code":"+374","code":"AM"},{"name":"Aruba","dial_code":"+297","code":"AW"},{"name":"Australia","dial_code":"+61","code":"AU"},{"name":"Austria","dial_code":"+43","code":"AT"},{"name":"Azerbaijan","dial_code":"+994","code":"AZ"},{"name":"Bahamas","dial_code":"+1 242","code":"BS"},{"name":"Bahrain","dial_code":"+973","code":"BH"},{"name":"Bangladesh","dial_code":"+880","code":"BD"},{"name":"Barbados","dial_code":"+1 246","code":"BB"},{"name":"Belarus","dial_code":"+375","
@darmie
darmie / Contract Killer 3.md
Created October 17, 2016 18:35
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post

@darmie
darmie / CREATE EVENT
Last active September 19, 2016 15:40
Create a new Game Maker object for sending usage status to iConcept
var map = ds_map_create();
ds_map_add(map, "Content-Type", "application/json");
var date = string(current_day);
var data = '{"IMEI": 0, "Package":"com.saltgaming.hero_of_the_north", "date":'+ date+ '}'
global.check_usage = http_request("http://46.38.168.148:3452/emts/game/requsage","POST", map, json_encode(data));