Difference between revisions of "Coding"

From esoterum.org
Jump to: navigation, search
(Scripting)
(Regular Expressions)
Line 77: Line 77:
 
=== Regular Expressions ===
 
=== Regular Expressions ===
 
*<code>(^(?:(\w+)(?:( )+|( )*\n))+((.)*)\(((.)*|(.)*\n(.)*)\)(( )*|( )*\n)\{(.)*\n)</code> Finds a function declaration (eclipse find)
 
*<code>(^(?:(\w+)(?:( )+|( )*\n))+((.)*)\(((.)*|(.)*\n(.)*)\)(( )*|( )*\n)\{(.)*\n)</code> Finds a function declaration (eclipse find)
*<code>$1 trace\(" @ $5\\n"\); //MAB 22 SEP 08: Add trace print statements !!!!!INSERT RETURN CHARACTER HERE!!!!!</code> Use this to replace the function declaration adding a trace statement identifying the function (normally "trace" should be replaced with printf)
+
*<code>$1 trace\(" @ $5\\n"\); //MAB 22 SEP 08: Add trace print statements !!!!!INSERT RETURN CHARACTER HERE!!!!!</code> Use this to replace the function declaration adding a trace statement identifying the function (normally "trace" should be replaced with printf), in eclipse, the return character apparently needs to be copied and pasted into the replace field, \n does not seem to work)
  
 
=== MATLAB ===
 
=== MATLAB ===

Revision as of 18:27, 15 January 2009

SVN

GNU

Programming

IDE

Eclipse

TeXnicCenter

  • In order to embed Type I fonts and use letter format, these switches were added in [Build]->[Define Output Profiles]->[Postprocessor]->[DviPs], reference, embedding fonts reference:
--Pdownload35 -P cmz -t letter

Java

C

snippits

  • Cstring to int: int n = atoi(StrInt);
  • Return cursor to beginning of same line: printf("%d\r",number);

SystemC

Assembly

Mark-up Languages

LaTeX

HTML

Post Script

Modeling

AMPL (Linear Programming)

VHDL

Scripting

Regular Expressions

  • (^(?:(\w+)(?:( )+|( )*\n))+((.)*)\(((.)*|(.)*\n(.)*)\)(( )*|( )*\n)\{(.)*\n) Finds a function declaration (eclipse find)
  • $1 trace\(" @ $5\\n"\); //MAB 22 SEP 08: Add trace print statements !!!!!INSERT RETURN CHARACTER HERE!!!!! Use this to replace the function declaration adding a trace statement identifying the function (normally "trace" should be replaced with printf), in eclipse, the return character apparently needs to be copied and pasted into the replace field, \n does not seem to work)

MATLAB

CGI

PHP

Interfaces