Skip to content

Instantly share code, notes, and snippets.

View cutecprog's full-sized avatar

freefowl cutecprog

View GitHub Profile
@cutecprog
cutecprog / git_pico8.lua
Last active January 14, 2022 05:05
pico8 git integration (lua code)
-- > run breadcrumb text
-- write stat(6) to file to use
-- as git commit message
-- call in _init()
function add_commit_message()
-- check if message entered
if #stat(6) > 1 then
-- write message to file
printh(stat(6), "msg", true)
-- report success (opt)
@cutecprog
cutecprog / makefile
Last active August 29, 2015 14:13
gameathon makefile
ORIGIN=http://github.com/cutecprog/gameathon.git
LIBRARY=lib
LIB_ORIGIN=http://github.com/cutecprog/lib.git
#LIB_HEAD=.lib_HEAD
SOURCES=main.py #$(LIB_HEAD)
RM=rm -rf
MV=mv
all: .git $(SOURCES) $(LIBRARY)
echo 'test'
#include <iostream>
#include <string>
using namespace std;
void LongestCommomSubstring(const string& str1, const string& str2)
{
string largest_str = "";
for(int i=0, j=0; i+j <= str1.length(); ) {
if(str2.find(str1.substr(i,j)) != string::npos) {
@cutecprog
cutecprog / fiboNASM
Created February 6, 2012 23:53
fibo() in NASM
; fibo()
; eax is parameter and return (unsigned int)
; recursive (slow, not dynamic)
; Little rusty at NASM
fibo:
push ebx
push ecx
cmp eax, 2 ; if(x<2)
jge continue
ret ; return x