This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- > 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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 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 |