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> | |
| #include <ctype.h> | |
| #define to_index(a) (a - 97) | |
| #define to_char(a) (a + 97) | |
| int main(int argc, const char *argv[]) { | |
| char letters[26][2048]; |
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
| #!/usr/bin/python | |
| # This script solves encoded nonograms from site nonograms.net. | |
| # When you create a nonogram and click encode, you are given an url | |
| # with encoded nonogram (for instance http://nonograms.net?CxOuiPURF7Ii1ERa7u4AACuyNVVFqsi9VRa6uwAA). | |
| # To solve it, you must pass a string after ? as an argument (CxOuiPURF7Ii1ERa7u4AACuyNVVFqsi9VRa6uwAA). | |
| import base64 | |
| import sys |
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
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
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> | |
| #include <stdlib.h> | |
| #include <unistd.h> | |
| #define START_SIZE 64 | |
| char * shuffle(char * array, int seed, int index, int len); | |
| char * unshuffle(char * array, int seed, int index, int len); | |
| void swap(char * a, char * b); |
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 "..\Header\stack.h" | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <stdbool.h> | |
| #include <assert.h> | |
| void stackpush(Stack * stack, int value) | |
| { | |
| assert(stack != NULL); | |
| if(stack->top == NULL) |
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 "stack.h" | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <stdbool.h> | |
| #include <assert.h> | |
| void stackpush(Stack ** stack, int value) | |
| { | |
| assert(stack != NULL); |
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 "..\Header\stack.h" | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <stdbool.h> | |
| void stackinit(Stack * stack) | |
| { | |
| stack->top = NULL; | |
| stack->top->next = NULL; | |
| stack->isempty = true; |
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> | |
| void hello(int i); | |
| int main(int argc, char * argv[]) | |
| { | |
| hello(5); | |
| } | |
| void hello(int i) |
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> | |
| #include <stdlib.h> | |
| #define Shuffle(A, B, C) shuffle(A, B, 0, C, sizeof(*A)) | |
| #define Unshuffle(A, B, C) unshuffle(A, B, 0, C, sizeof(*A)) | |
| typedef struct | |
| { | |
| int x; |
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> | |
| int * shuffle(int * array, int seed, int index, int len); | |
| int * unshuffle(int * array, int seed, int index, int len); | |
| void swap(int * num1, int * num2); | |
| void printArray(int * array, int len); | |
| int main() | |
| { | |
| int vec[5] = {1, 2, 3, 4, 5}; |