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> | |
void suspend() | |
{ | |
while (1) | |
{ | |
int marker = 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
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package Silnia; | |
/** | |
* |
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
//Exception definition: https://gist.github.com/mcywinski/44c0f82d70b739477109 - Exception | |
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package Silnia; | |
/** |
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
$("#submit").click(function () { | |
var ids = ""; | |
$(":checkbox").each(function () { | |
if ($(this).is(':checked')) { | |
ids = ids + $(this).val() + ";"; | |
} | |
}); | |
$("#mainform").append("<input type='hidden' value='" + ids + "' name='participant_ids' />"); | |
}); |
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> | |
#include <pthread.h> | |
#include <unistd.h> | |
void* wyswietl(void* w) | |
{ | |
int z; | |
printf("W przekazany do wąkku %d", (int)w); | |
z = (int)w + 10; | |
pthread_exit((void*)z); |
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> | |
#include <pthread.h> | |
#include <unistd.h> | |
#include <string.h> | |
char text[32]; | |
void* wyswietl(void* w) | |
{ | |
if (w == 0) //Odwrotna kolejność |
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> | |
#include <pthread.h> | |
#include <unistd.h> | |
#include <string.h> | |
char text[32]; | |
void* wyswietl(void* w) | |
{ | |
if (w == 0) //Odwrotna kolejność |
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
package rysowanie; | |
import java.awt.Color; | |
import java.awt.Graphics; | |
import javax.swing.JComponent; | |
import javax.swing.JFrame; | |
class MyCanvas extends JComponent { |
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 <stdlib.h> | |
#include <stdio.h> | |
#include <pthread.h> | |
pthread_mutex_t mutex; | |
char buffer[32]; //32bit = 4 bytes; 4 bytes * 32 integers = 128 bytes long integer array | |
char source_filename[32]; | |
char destination_filename[32]; | |
FILE* working_copy; | |
FILE* destination_copy; |
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> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <sys/types.h> | |
short ok = 1; | |
//String buffer | |
char buffer[128]; |
OlderNewer