This file contains hidden or 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
[{3,1},{3,2},{3,3},{2,1},{2,2},{2,3},{2,4}] |
This file contains hidden or 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
% | |
% get gist description | |
% | |
1> gist:get_gist_description(1). | |
["the meaning of gist"] | |
% | |
% get gist pull url | |
% |
This file contains hidden or 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
New content |
This file contains hidden or 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
Test |
This file contains hidden or 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
Test gist |
This file contains hidden or 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
#ifndef SLIST_H | |
#define SLIST_H | |
#ifdef __cplusplus | |
extern "C" { | |
#endif | |
#include <stdlib.h> | |
This file contains hidden or 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 "slist.h" | |
/* | |
* Add element to start | |
* @head - list to add | |
* @data - data of element | |
*/ | |
List* listPrepend(List* head, void* data) | |
{ | |
List* temp = (List*) malloc(sizeof(List)); |
This file contains hidden or 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
#ifndef DLIST_H | |
#define DLIST_H | |
#ifdef __cplusplus | |
extern "C" { | |
#endif | |
/* | |
* Generic double linked list | |
*/ |
This file contains hidden or 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 <stdlib.h> | |
#include "dlist.h" | |
/* | |
* create new list | |
*/ | |
Dlist* createDlist() | |
{ | |
Dlist* newList = (Dlist*)malloc (sizeof(Dlist)); | |
newList->value = NULL; |
This file contains hidden or 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
function draw_line_test() | |
{ | |
canvas = JSDraw.init('cavas', 0, 0, 1000, 1000); | |
for (var i=0; i < 500; i += 50) { | |
JSDraw.draw_line(canvas, i, 0, i, 450, "#000099") | |
}; | |
for (var i=0; i < 500; i += 50) { | |
JSDraw.draw_line(canvas, 0, i, 450, i, "#000099") |