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 <stdio.h> | |
#include <string.h> | |
const int ile = 5000; | |
int | |
main (int argc, char *argv[]) | |
{ | |
char tablica[20]; |
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 <stdio.h> | |
#include <string.h> | |
int main(int argc, char *argv[]) { | |
char imie[50]; | |
int i, tr=0; | |
char* znaki; | |
char c; | |
znaki = argv[1]; |
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
/* gcc -Wall chiny.c */ | |
/* | |
chiny.c: In function ‘tlumacz_zdanie’: | |
chiny.c:85:23: error: subscripted value is neither array nor pointer nor vector | |
chiny.c:87:11: warning: passing argument 1 of ‘strlen’ makes pointer from integer without a cast [enabled by default] | |
/usr/include/string.h:399:15: note: expected ‘const char *’ but argument is of type ‘char’ | |
chiny.c:88:11: warning: passing argument 2 of ‘strncmp’ makes pointer from integer without a cast [enabled by default] | |
/usr/include/string.h:146:12: note: expected ‘const char *’ but argument is of type ‘char’ | |
chiny.c:89:13: warning: passing argument 2 of ‘strcat’ makes pointer from integer without a cast [enabled by default] |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define MAX_WORDS 1000000 | |
void pobierz_slownik(char *slownik[], int *size); | |
int main(int argc, char *argv[]) { | |
int size; |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define MAX_WORDS 1000000 | |
void pobierz_slownik(char *slownik[], int *size); | |
void usun_spacje(char *zdanie); | |
void wypisz_zdanie(char *zdanie); |
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
/* | |
Pliki tymczasowe oraz korzystanie z plików w C. | |
1. Zadeklaruj zmienną typu FILE * | |
FILE *infile, *outfile; | |
2. Otwórz plik (do czytania, do zapisywania) | |
infile = fopen("in.txt","r"); |
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
<html> | |
<head> | |
<meta charset=utf-8> | |
<title>Live Preview of MathJax Type Setting</title> | |
<script type="text/x-mathjax-config"> | |
MathJax.Hub.Config({ tex2jax: { inlineMath: [['$','$'], ["\\(","\\)"]] } }); | |
</script> | |
<script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> | |
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> |
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
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns | |
Compress 1K bytes with Zippy 3,000 ns | |
Send 2K bytes over 1 Gbps network 20,000 ns | |
Read 1 MB sequentially from memory 250,000 ns | |
Round trip within same datacenter 500,000 ns | |
Disk seek 10,000,000 ns |
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
// npm install handlebars | |
var Handlebars = require('handlebars'); | |
var source = "<ul>{{#colors}}\n <li>{{name}}{{/colors}}\n</ul>"; | |
var template = Handlebars.compile(source); | |
var data = { "colors": [ | |
{ "name": "green" }, | |
{ "name": "green" }, | |
{ "name": "blue" } | |
]}; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.29.1"></script> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
var mouse = [480, 250], | |
count = 0; |