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
| // Written by Pioz. | |
| // Compile with: gcc -o autoclick autoclick.c -lX11 | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <X11/Xlib.h> | |
| // Simulate mouse click | |
| void | |
| click (Display *display, int button) |
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
| import string | |
| import sys | |
| words = {} | |
| strip = string.whitespace + string.punctuation + string.digits + "\"'" | |
| for filename in sys.argv[1:]: | |
| for line in open( filename ): | |
| for word in line.lower().split(): | |
| word = word.strip( strip ) | |
| if len( word ) > 2: |
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 python3 | |
| import sys | |
| orig_stdout = sys.stdout | |
| f = open('out.txt', 'w') | |
| sys.stdout = f | |
| alphabets = "qwertyuiopasdfghjklzxcvbnm" | |
| codes = [ x + y + z for x in alphabets for y in alphabets for z in alphabets ] |
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> | |
| enum { | |
| SHOW, | |
| HIDE, | |
| COVERED, | |
| }; | |
| int main() { | |
| printf("%d", SHOW); |
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 <gtk/gtk.h> | |
| #include <cairo.h> | |
| static gboolean | |
| on_draw_event( GtkWidget* widget, | |
| cairo_t *cr, | |
| gpointer user_data ) { | |
| cairo_set_source_rgb( cr, 0.3, 0.5, 0.8 ); | |
| cairo_rectangle( cr, 100, 100, 50, 50 ); |
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 <stdlib.h> | |
| #include <stdio.h> | |
| #include <stdbool.h> | |
| struct A { | |
| bool a:1; | |
| bool b:1; | |
| bool c:1; | |
| bool d: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
| #include <stdlib.h> | |
| #include <stdio.h> | |
| #include <stdint.h> | |
| int main() { | |
| union | |
| { | |
| uint8_t c[4]; |
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> | |
| struct Bitfield { | |
| int a:4; | |
| unsigned int b:4; | |
| } bit; | |
| struct Boolean { | |
| unsigned int a:1; | |
| } boolean; |
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> | |
| /* | |
| * See also : http://class.ece.iastate.edu/arun/CprE281_F05/ieee754/ie5.html | |
| */ | |
| union FloatingPointIEEE754 { | |
| struct { | |
| unsigned int mantissa : 23; | |
| unsigned int exponent : 8; | |
| unsigned int sign : 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
| #include <stdio.h> | |
| #include <stdint.h> | |
| #include <inttypes.h> | |
| /* | |
| * See also : http://class.ece.iastate.edu/arun/CprE281_F05/ieee754/ie5.html | |
| */ | |
| union FloatingPointSinglePrecisionIEEE754 { | |
| struct { |