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
[ | |
{"code": "AF", "name": "Afghanistan"}, | |
{"code": "AX", "name": "Å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"}, |
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
#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}; |
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
#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"); | |
} |
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
{ | |
"Profiles": [ | |
{ | |
"Working Directory" : "\/Users\/rista", | |
"Prompt Before Closing 2" : 0, | |
"Selected Text Color" : { | |
"Green Component" : 0, | |
"Blue Component" : 0, | |
"Red Component" : 0 | |
}, |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>HTML5 Canvas</title> | |
<style> | |
* { | |
box-sizing: border-box; | |
} | |
html, body { |
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
{ | |
"Working Directory" : "\/Users\/rista\/Projects", | |
"Prompt Before Closing 2" : 0, | |
"Selected Text Color" : { | |
"Green Component" : 0, | |
"Red Component" : 0, | |
"Blue Component" : 0 | |
}, | |
"Rows" : 30, | |
"Ansi 11 Color" : { |
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
const string = "Danas je lep i suncan dan"; | |
const p = 3, q = 5; | |
string | |
.split(' ') | |
.filter((word) => word.length >= p && word.length <= q) | |
.forEach(console.log) |
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
// random hex | |
'#'+Math.random().toString(16).slice(-6) | |
'#'+(~~(Math.random()*0xffffff)).toString(16) | |
'#'+parseInt(Math.random()*0xffffff).toString(16) | |
// random rgb | |
r=_=>(Math.random()*255|0),`rgb(${[r(),r(),r()]})` | |
// random rgba | |
r=_=>(Math.random()*255|0),`rgba(${[r(),r(),r()]},1)` |
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
function selectText(element) { | |
let range | |
let selection | |
if (document.body.createTextRange) { | |
//ms | |
range = document.body.createTextRange() | |
range.moveToElementText(element) | |
range.select() | |
} else if (window.getSelection) { | |
//all others |
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
// @flow | |
import * as React from 'react' | |
import Clipboard, { type ClipboardType } from 'clipboard' | |
type Props = { | |
text: string, | |
onSuccess?: () => any, | |
children: React.Node, | |
} |
OlderNewer