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
@echo off | |
setlocal | |
set winincludes=C:\Program Files\PellesC\Include\Win | |
set sysincludes=C:\Program Files\PellesC\Include | |
set INCLUDE=%winincludes%;%sysincludes% | |
rem /Ze: use Microsoft extensions to avoid winnt.h "No specific architecture" error | |
pocc sqlite.c /Ze |
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
@echo off | |
setlocal | |
set winlib=C:\Program Files\PellesC\Lib\Win | |
set syslib=C:\Program Files\PellesC\Lib | |
set LIB=%winlib%;%syslib% | |
set LINKFLAGS=-subsystem:console | |
polink /V2 /DEFAULTLIB:sqlite3.lib sqlite3.obj main.obj /OUT:test-sqlite.exe |
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
Range("A1").Select | |
Range(ActiveCell, ActiveCell.CurrentRegion).Select | |
For Each row In Selection.Rows | |
Dim rowStr As String | |
For Each col In Selection.Columns | |
rowStr = rowStr & Cells(row.Row, col.Column) | |
If col.Column < Selection.Columns.Count Then | |
rowStr = rowStr & "," |
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
Range("A1").Select | |
Range(ActiveCell, ActiveCell.CurrentRegion).Select | |
For Each row In Selection.Rows | |
Debug.Print Cells(row.Row, 1) ' value of first column in current row | |
Next |
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
For Each wb In Workbooks | |
wb.Activate | |
Debug.Print ActiveWorkbook.Name | |
wb.Close | |
Next |
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
@echo off | |
set url=http://www.target-url.org | |
set agent=Mozilla/2.02Gold (Win95; I) | |
curl -c cookies.txt -A "%agent%" %url% > get.txt | |
set login=jsmith | |
set pass=intheclear | |
set query=%login%^&%pass% |
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
<table border="1"> | |
<tr> | |
<th>Col 1</th><th>Col 2</th><th>Col 3</th> | |
</tr> | |
<tr> | |
<td>data 1</td><td>data 2</td><td>data 3</td> | |
</tr> | |
<tr> | |
<td>data 4</td><td>data 5</td><td>data 6</td> | |
</tr> |
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
c | |
c evaluate the natural logarithm e | |
c | |
c variables | |
c 123456 a | |
c fln the value of the natural logarithm | |
c iterm the current term in the summation | |
c next the next number in a factorial operation | |
c fdenom the value of the current factorial | |
c |
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
/* demonstrate tree data structure with multi-dimensional arrays */ | |
/* construct a tree of this form: */ | |
/* 1 */ | |
/* 2 3 */ | |
/* 4 5 6 */ | |
/* as a table, */ | |
/* node children */ | |
/* 1 2 3 */ | |
/* 2 4 5 */ |
NewerOlder