Skip to content

Instantly share code, notes, and snippets.

View rista404's full-sized avatar
📟

Nikola Ristić rista404

📟
View GitHub Profile
@rista404
rista404 / index.html
Created December 21, 2016 22:06
Funky paint app
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>HTML5 Canvas</title>
<style>
* {
box-sizing: border-box;
}
html, body {
@rista404
rista404 / profiles.json
Created April 6, 2016 23:32
Personal .dotfiles
{
"Profiles": [
{
"Working Directory" : "\/Users\/rista",
"Prompt Before Closing 2" : 0,
"Selected Text Color" : {
"Green Component" : 0,
"Blue Component" : 0,
"Red Component" : 0
},
#include <stdio.h>
int s, n, vrNov[10], brNov[10];
void Ispis() {
for(int i = 0; i < n; i++)
printf("%d novcanica od %d din ", brNov[i], vrNov[i]);
printf("\n");
}
#include <stdio.h>
typedef struct Pos {
int x, y;
};
struct Pos put[100], minPut[100];
int n, lavirint[10][10], stX, stY, endX, endY, minBrojKoraka;
int dx[4] = {1, 0, -1, 0};
int dy[4] = {0, 1, 0, -1};
@rista404
rista404 / countries.json
Created February 18, 2016 16:02
Array of all countries, containing country codes and names
[
{"code": "AF", "name": "Afghanistan"},
{"code": "AX", "name": "&Aring;land Islands"},
{"code": "AL", "name": "Albania"},
{"code": "DZ", "name": "Algeria"},
{"code": "AS", "name": "American Samoa"},
{"code": "AD", "name": "Andorra"},
{"code": "AO", "name": "Angola"},
{"code": "AI", "name": "Anguilla"},
{"code": "AQ", "name": "Antarctica"},