Skip to content

Instantly share code, notes, and snippets.

View onlyshk's full-sized avatar

Kuleshov Alexander onlyshk

View GitHub Profile
[{3,1},{3,2},{3,3},{2,1},{2,2},{2,3},{2,4}]
@onlyshk
onlyshk / test.erl
Created September 1, 2011 18:00
Usage erlang-github-api
%
% get gist description
%
1> gist:get_gist_description(1).
["the meaning of gist"]
%
% get gist pull url
%
New content
@onlyshk
onlyshk / file.txt
Created August 31, 2011 17:34
Hello from erlang-github-api
Test
Test gist
#ifndef SLIST_H
#define SLIST_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdlib.h>
#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));
#ifndef DLIST_H
#define DLIST_H
#ifdef __cplusplus
extern "C" {
#endif
/*
* Generic double linked list
*/
#include <stdlib.h>
#include "dlist.h"
/*
* create new list
*/
Dlist* createDlist()
{
Dlist* newList = (Dlist*)malloc (sizeof(Dlist));
newList->value = NULL;
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")