aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--TEST13
-rwxr-xr-xa.outbin0 -> 6961 bytes
-rw-r--r--a_out343
-rw-r--r--allocing.c19
-rw-r--r--bacon.c5
-rw-r--r--beep.c9
m---------brainfuck0
-rw-r--r--caesar.c8
-rw-r--r--callocing.c15
-rw-r--r--callocing.s56
-rw-r--r--clone.c6
-rw-r--r--clone1.c0
-rw-r--r--explosm.xml117
-rw-r--r--file8
-rw-r--r--getline-test.c11
-rw-r--r--google.html23
-rw-r--r--googleposttest.html6
-rw-r--r--hello-world.c6
-rw-r--r--important-file.c5
-rw-r--r--input1
-rwxr-xr-xisOddbin0 -> 7178 bytes
-rw-r--r--isOdd.c17
-rw-r--r--isOdd.s68
-rwxr-xr-xisOddBetterbin0 -> 7184 bytes
-rw-r--r--isOddBetter.c20
-rw-r--r--isOddBetter.s59
-rw-r--r--lewisnumber.c8
-rw-r--r--makefile0
-rw-r--r--odd.1.c3
-rw-r--r--odd.1.s21
-rw-r--r--odd.2.c3
-rw-r--r--odd.2.s21
-rw-r--r--out_file0
-rw-r--r--pointers.c18
-rwxr-xr-xprintparsebin0 -> 7079 bytes
-rw-r--r--printparse.c21
-rw-r--r--python-indent_swapper.c92
-rwxr-xr-xrandomcasebin0 -> 7765 bytes
-rw-r--r--randomcase.c44
-rw-r--r--rardomcase1
-rwxr-xr-xrmtrailwsbin0 -> 6961 bytes
-rw-r--r--rpout.c13
-rw-r--r--rtrailws.c23
-rwxr-xr-xsizeofsize_tbin0 -> 6791 bytes
-rw-r--r--sizeofsize_t.c7
-rw-r--r--sockets.c64
-rw-r--r--sprin68
-rw-r--r--test.c4
-rw-r--r--test.py11
-rw-r--r--test.rs1
-rw-r--r--test_out.py0
-rwxr-xr-xtest~bin0 -> 8810 bytes
-rw-r--r--tutor3
-rw-r--r--wsrm.output1
54 files changed, 1242 insertions, 0 deletions
diff --git a/TEST b/TEST
new file mode 100644
index 0000000..9726e8e
--- /dev/null
+++ b/TEST
@@ -0,0 +1,13 @@
+ 1. Move the cursor to this line.
+
+ 2. Press v and move the cursor to the fifth item below. Notice that the
+ text is highlighted.
+
+ 3. Press the : character. At the bottom of the screen :'<,'> will appear.
+
+ 4. Type w TEST , where TEST is a filename that does not exist yet. Verify
+ that you see :'<,'>w TEST before you press <ENTER>.
+
+ 5. Vim will write the selected lines to the file TEST. Use :!dir or :!ls
+ to see it. Do not remove it yet! We will use it in the next lesson.
+
diff --git a/a.out b/a.out
new file mode 100755
index 0000000..8ebd61a
--- /dev/null
+++ b/a.out
Binary files differ
diff --git a/a_out b/a_out
new file mode 100644
index 0000000..9ab90ca
--- /dev/null
+++ b/a_out
@@ -0,0 +1,343 @@
+0x400540
+ --ADDRESS- : VAL-
+ 0x400540 : 0xE5894855
+ 0x400548 : 0x400540BE
+ 0x400550 : 0x00B80040
+ 0x400558 : 0xFFFFFEC4
+ 0x400560 : 0x00400540
+ 0x400568 : 0xFEA2E800
+ 0x400570 : 0x0000F045
+ 0x400578 : 0xF8458B48
+ 0x400580 : 0x48F8458B
+ 0x400588 : 0xB8004006
+ 0x400590 : 0xFFFE8BE8
+ 0x400598 : 0x834808F8
+ 0x4005A0 : 0x0FF07D81
+ 0x4005A8 : 0x0000B8CF
+ 0x4005B0 : 0x89415741
+ 0x4005B8 : 0x5541F689
+ 0x4005C0 : 0x258D4C54
+ 0x4005C8 : 0x2D8D4855
+ 0x4005D0 : 0xE5294C53
+ 0x4005D8 : 0x834803FD
+ 0x4005E0 : 0x48FFFFFD
+ 0x4005E8 : 0x00841F0F
+ 0x4005F0 : 0x4CEA894C
+ 0x4005F8 : 0x14FF41FF
+ 0x400600 : 0xEB394801
+ 0x400608 : 0x5D5B08C4
+ 0x400610 : 0x5F415E41
+ 0x400618 : 0x00841F0F
+ 0x400620 : 0x9066C3F3
+ 0x400628 : 0x08C48348
+ 0x400630 : 0x00020001
+ 0x400638 : 0x20000A20
+ 0x400640 : 0x53455244
+ 0x400648 : 0x4C415620
+ 0x400650 : 0x58257830
+ 0x400658 : 0x38302578
+ 0x400660 : 0x3B031B01
+ 0x400668 : 0x00000005
+ 0x400670 : 0x00000080
+ 0x400678 : 0x00000050
+ 0x400680 : 0x000000A8
+ 0x400688 : 0x000000C8
+ 0x400690 : 0x00000110
+ 0x400698 : 0x00000014
+ 0x4006A0 : 0x00527A01
+ 0x4006A8 : 0x08070C1B
+ 0x4006B0 : 0x00000014
+ 0x4006B8 : 0xFFFFFD98
+ 0x4006C0 : 0x00000000
+ 0x4006C8 : 0x00000014
+ 0x4006D0 : 0x00527A01
+ 0x4006D8 : 0x08070C1B
+ 0x4006E0 : 0x00000024
+ 0x4006E8 : 0xFFFFFD18
+ 0x4006F0 : 0x46100E00
+ 0x4006F8 : 0x8008770B
+ 0x400700 : 0x2224332A
+ 0x400708 : 0x0000001C
+ 0x400710 : 0xFFFFFE30
+ 0x400718 : 0x100E4100
+ 0x400720 : 0x0C6B0206
+ 0x400728 : 0x00000044
+ 0x400730 : 0xFFFFFE80
+ 0x400738 : 0x100E4200
+ 0x400740 : 0x45038E18
+ 0x400748 : 0x8C280E45
+ 0x400750 : 0x0E480686
+ 0x400758 : 0x0E6C400E
+ 0x400760 : 0x42280E41
+ 0x400768 : 0x100E4218
+ 0x400770 : 0x00000014
+ 0x400778 : 0xFFFFFEA8
+ 0x400780 : 0x00000000
+ 0x400788 : 0x00000000
+ 0x400790 : 0x00400510
+ 0x400798 : 0x004004F0
+ 0x4007A0 : 0x00000000
+ 0x4007A8 : 0x00000001
+ 0x4007B0 : 0x00000001
+ 0x4007B8 : 0x0000000C
+ 0x4007C0 : 0x004003E0
+ 0x4007C8 : 0x0000000D
+ 0x4007D0 : 0x00400624
+ 0x4007D8 : 0x00000019
+ 0x4007E0 : 0x00600790
+ 0x4007E8 : 0x0000001B
+ 0x4007F0 : 0x00000008
+ 0x4007F8 : 0x0000001A
+ 0x400800 : 0x00600798
+ 0x400808 : 0x0000001C
+ 0x400810 : 0x00000008
+ 0x400818 : 0x6FFFFEF5
+ 0x400820 : 0x00400260
+ 0x400828 : 0x00000005
+ 0x400830 : 0x004002F8
+ 0x400838 : 0x00000006
+ 0x400840 : 0x00400280
+ 0x400848 : 0x0000000A
+ 0x400850 : 0x00000044
+ 0x400858 : 0x0000000B
+ 0x400860 : 0x00000018
+ 0x400868 : 0x00000015
+ 0x400870 : 0x00000000
+ 0x400878 : 0x00000003
+ 0x400880 : 0x00600980
+ 0x400888 : 0x00000002
+ 0x400890 : 0x00000060
+ 0x400898 : 0x00000014
+ 0x4008A0 : 0x00000007
+ 0x4008A8 : 0x00000017
+ 0x4008B0 : 0x00400380
+ 0x4008B8 : 0x00000007
+ 0x4008C0 : 0x00400368
+ 0x4008C8 : 0x00000008
+ 0x4008D0 : 0x00000018
+ 0x4008D8 : 0x00000009
+ 0x4008E0 : 0x00000018
+ 0x4008E8 : 0x6FFFFFFE
+ 0x4008F0 : 0x00400348
+ 0x4008F8 : 0x6FFFFFFF
+ 0x400900 : 0x00000001
+ 0x400908 : 0x6FFFFFF0
+ 0x400910 : 0x0040033C
+ 0x400918 : 0x00000000
+ 0x400920 : 0x00000000
+ 0x400928 : 0x00000000
+ 0x400930 : 0x00000000
+ 0x400938 : 0x00000000
+ 0x400940 : 0x00000000
+ 0x400948 : 0x00000000
+ 0x400950 : 0x00000000
+ 0x400958 : 0x00000000
+ 0x400960 : 0x00000000
+ 0x400968 : 0x00000000
+ 0x400970 : 0x00000000
+ 0x400978 : 0x00000000
+ 0x400980 : 0x006007A8
+ 0x400988 : 0x00000000
+ 0x400990 : 0x00000000
+ 0x400998 : 0x00400416
+ 0x4009A0 : 0x00400426
+ 0x4009A8 : 0x00400436
+ 0x4009B0 : 0x00400446
+ 0x4009B8 : 0x00000000
+ 0x4009C0 : 0x00000000
+ 0x4009C8 : 0x3A434347
+ 0x4009D0 : 0x34202955
+ 0x4009D8 : 0x732E0000
+ 0x4009E0 : 0x732E0062
+ 0x4009E8 : 0x732E0062
+ 0x4009F0 : 0x00626174
+ 0x4009F8 : 0x00707265
+ 0x400A00 : 0x42412E65
+ 0x400A08 : 0x6E2E0067
+ 0x400A10 : 0x2E756E67
+ 0x400A18 : 0x64692D64
+ 0x400A20 : 0x61682E75
+ 0x400A28 : 0x736E7964
+ 0x400A30 : 0x736E7964
+ 0x400A38 : 0x2E756E67
+ 0x400A40 : 0x006E6F69
+ 0x400A48 : 0x7265762E
+ 0x400A50 : 0x2E00725F
+ 0x400A58 : 0x6E79642E
+ 0x400A60 : 0x702E616C
+ 0x400A68 : 0x74696E69
+ 0x400A70 : 0x2E007478
+ 0x400A78 : 0x6F722E00
+ 0x400A80 : 0x68652E00
+ 0x400A88 : 0x685F656D
+ 0x400A90 : 0x665F6865
+ 0x400A98 : 0x6E692E00
+ 0x400AA0 : 0x79617272
+ 0x400AA8 : 0x615F696E
+ 0x400AB0 : 0x636A2E00
+ 0x400AB8 : 0x6D616E79
+ 0x400AC0 : 0x00746F67
+ 0x400AC8 : 0x746C702E
+ 0x400AD0 : 0x2E006174
+ 0x400AD8 : 0x6D6F632E
+ 0x400AE0 : 0x00000000
+ 0x400AE8 : 0x00000000
+ 0x400AF0 : 0x00000000
+ 0x400AF8 : 0x00000000
+ 0x400B00 : 0x00000000
+ 0x400B08 : 0x00000000
+ 0x400B10 : 0x00000000
+ 0x400B18 : 0x00000000
+ 0x400B20 : 0x00000000
+ 0x400B28 : 0x0000001B
+ 0x400B30 : 0x00000002
+ 0x400B38 : 0x00400200
+ 0x400B40 : 0x00000200
+ 0x400B48 : 0x0000001C
+ 0x400B50 : 0x00000000
+ 0x400B58 : 0x00000001
+ 0x400B60 : 0x00000000
+ 0x400B68 : 0x00000023
+ 0x400B70 : 0x00000002
+ 0x400B78 : 0x0040021C
+ 0x400B80 : 0x0000021C
+ 0x400B88 : 0x00000020
+ 0x400B90 : 0x00000000
+ 0x400B98 : 0x00000004
+ 0x400BA0 : 0x00000000
+ 0x400BA8 : 0x00000031
+ 0x400BB0 : 0x00000002
+ 0x400BB8 : 0x0040023C
+ 0x400BC0 : 0x0000023C
+ 0x400BC8 : 0x00000024
+ 0x400BD0 : 0x00000000
+ 0x400BD8 : 0x00000004
+ 0x400BE0 : 0x00000000
+ 0x400BE8 : 0x00000044
+ 0x400BF0 : 0x00000002
+ 0x400BF8 : 0x00400260
+ 0x400C00 : 0x00000260
+ 0x400C08 : 0x0000001C
+ 0x400C10 : 0x00000005
+ 0x400C18 : 0x00000008
+ 0x400C20 : 0x00000000
+ 0x400C28 : 0x0000004E
+ 0x400C30 : 0x00000002
+ 0x400C38 : 0x00400280
+ 0x400C40 : 0x00000280
+ 0x400C48 : 0x00000078
+ 0x400C50 : 0x00000006
+ 0x400C58 : 0x00000008
+ 0x400C60 : 0x00000018
+ 0x400C68 : 0x00000056
+ 0x400C70 : 0x00000002
+ 0x400C78 : 0x004002F8
+ 0x400C80 : 0x000002F8
+ 0x400C88 : 0x00000044
+ 0x400C90 : 0x00000000
+ 0x400C98 : 0x00000001
+ 0x400CA0 : 0x00000000
+ 0x400CA8 : 0x0000005E
+ 0x400CB0 : 0x00000002
+ 0x400CB8 : 0x0040033C
+ 0x400CC0 : 0x0000033C
+ 0x400CC8 : 0x0000000A
+ 0x400CD0 : 0x00000005
+ 0x400CD8 : 0x00000002
+ 0x400CE0 : 0x00000002
+ 0x400CE8 : 0x0000006B
+ 0x400CF0 : 0x00000002
+ 0x400CF8 : 0x00400348
+ 0x400D00 : 0x00000348
+ 0x400D08 : 0x00000020
+ 0x400D10 : 0x00000006
+ 0x400D18 : 0x00000008
+ 0x400D20 : 0x00000000
+ 0x400D28 : 0x0000007A
+ 0x400D30 : 0x00000002
+ 0x400D38 : 0x00400368
+ 0x400D40 : 0x00000368
+ 0x400D48 : 0x00000018
+ 0x400D50 : 0x00000005
+ 0x400D58 : 0x00000008
+ 0x400D60 : 0x00000018
+ 0x400D68 : 0x00000084
+ 0x400D70 : 0x00000002
+ 0x400D78 : 0x00400380
+ 0x400D80 : 0x00000380
+ 0x400D88 : 0x00000060
+ 0x400D90 : 0x00000005
+ 0x400D98 : 0x00000008
+ 0x400DA0 : 0x00000018
+ 0x400DA8 : 0x0000008E
+ 0x400DB0 : 0x00000006
+ 0x400DB8 : 0x004003E0
+ 0x400DC0 : 0x000003E0
+ 0x400DC8 : 0x0000001A
+ 0x400DD0 : 0x00000000
+ 0x400DD8 : 0x00000004
+ 0x400DE0 : 0x00000000
+ 0x400DE8 : 0x00000089
+ 0x400DF0 : 0x00000006
+ 0x400DF8 : 0x00400400
+ 0x400E00 : 0x00000400
+ 0x400E08 : 0x00000050
+ 0x400E10 : 0x00000000
+ 0x400E18 : 0x00000010
+ 0x400E20 : 0x00000010
+ 0x400E28 : 0x00000094
+ 0x400E30 : 0x00000006
+ 0x400E38 : 0x00400450
+ 0x400E40 : 0x00000450
+ 0x400E48 : 0x000001D4
+ 0x400E50 : 0x00000000
+ 0x400E58 : 0x00000010
+ 0x400E60 : 0x00000000
+ 0x400E68 : 0x0000009A
+ 0x400E70 : 0x00000006
+ 0x400E78 : 0x00400624
+ 0x400E80 : 0x00000624
+ 0x400E88 : 0x00000009
+ 0x400E90 : 0x00000000
+ 0x400E98 : 0x00000004
+ 0x400EA0 : 0x00000000
+ 0x400EA8 : 0x000000A0
+ 0x400EB0 : 0x00000002
+ 0x400EB8 : 0x00400630
+ 0x400EC0 : 0x00000630
+ 0x400EC8 : 0x00000030
+ 0x400ED0 : 0x00000000
+ 0x400ED8 : 0x00000004
+ 0x400EE0 : 0x00000000
+ 0x400EE8 : 0x000000A8
+ 0x400EF0 : 0x00000002
+ 0x400EF8 : 0x00400660
+ 0x400F00 : 0x00000660
+ 0x400F08 : 0x00000034
+ 0x400F10 : 0x00000000
+ 0x400F18 : 0x00000004
+ 0x400F20 : 0x00000000
+ 0x400F28 : 0x000000B6
+ 0x400F30 : 0x00000002
+ 0x400F38 : 0x00400698
+ 0x400F40 : 0x00000698
+ 0x400F48 : 0x000000F4
+ 0x400F50 : 0x00000000
+ 0x400F58 : 0x00000008
+ 0x400F60 : 0x00000000
+ 0x400F68 : 0x000000C0
+ 0x400F70 : 0x00000003
+ 0x400F78 : 0x00600790
+ 0x400F80 : 0x00000790
+ 0x400F88 : 0x00000008
+ 0x400F90 : 0x00000000
+ 0x400F98 : 0x00000008
+ 0x400FA0 : 0x00000000
+ 0x400FA8 : 0x000000CC
+ 0x400FB0 : 0x00000003
+ 0x400FB8 : 0x00600798
+ 0x400FC0 : 0x00000798
+ 0x400FC8 : 0x00000008
+ 0x400FD0 : 0x00000000
+ 0x400FD8 : 0x00000008
+ 0 \ No newline at end of file
diff --git a/allocing.c b/allocing.c
new file mode 100644
index 0000000..af19dab
--- /dev/null
+++ b/allocing.c
@@ -0,0 +1,19 @@
+#include<stdio.h>
+#include<stdlib.h>
+
+int main(int argc, char *argv[] ) {
+ // malloc test
+ char * string;
+ string = (char *) malloc(10 * sizeof(char));
+
+ *(string + 0) = 'a';
+ *(string + 1) = 'b';
+ *(string + 2) = 'c';
+ *(string + 3) = '\n';
+ *(string + 4) = '\0';
+
+ printf("%s", string);
+
+ free(string);
+ string = NULL;
+}
diff --git a/bacon.c b/bacon.c
new file mode 100644
index 0000000..b7ed73e
--- /dev/null
+++ b/bacon.c
@@ -0,0 +1,5 @@
+#include <beer.h>
+
+main () {
+ beer("drink");
+}
diff --git a/beep.c b/beep.c
new file mode 100644
index 0000000..d108355
--- /dev/null
+++ b/beep.c
@@ -0,0 +1,9 @@
+#include <stdio.h>
+
+main () {
+ int i = 1;
+ while ((getchar() != 27) && (i != 50)) {
+ printf("\a");
+ i++;
+ }
+}
diff --git a/brainfuck b/brainfuck
new file mode 160000
+Subproject 25d887981d28d83fe678c4f13b80b88278e373f
diff --git a/caesar.c b/caesar.c
new file mode 100644
index 0000000..7cbbeaa
--- /dev/null
+++ b/caesar.c
@@ -0,0 +1,8 @@
+#include<stdio.h>
+
+int main ( int argc, char *argv[] ) {
+ int i;
+ for (i = 1; i < argc; i++) {
+ printf("%s%c", argv[i], i == argc - 1 ? '\n' : ' ');
+ }
+}
diff --git a/callocing.c b/callocing.c
new file mode 100644
index 0000000..404b1af
--- /dev/null
+++ b/callocing.c
@@ -0,0 +1,15 @@
+#include<stdio.h>
+#include<stdlib.h>
+
+int main() {
+ int *ptr;
+ ptr = malloc(1024 * 1048576 * sizeof(char));
+// int array[100];
+ int i;
+ for (i = 0; i < 100; i++) {
+ printf("%d: %d\n", i, *(ptr + i));
+ }
+ printf("\n%d\n", ptr);
+ free(ptr);
+ return 0;
+}
diff --git a/callocing.s b/callocing.s
new file mode 100644
index 0000000..c99607d
--- /dev/null
+++ b/callocing.s
@@ -0,0 +1,56 @@
+ .file "callocing.c"
+ .section .rodata
+.LC0:
+ .string "%d: %d\n"
+.LC1:
+ .string "\n%d\n"
+ .text
+ .globl main
+ .type main, @function
+main:
+.LFB2:
+ .cfi_startproc
+ pushq %rbp
+ .cfi_def_cfa_offset 16
+ .cfi_offset 6, -16
+ movq %rsp, %rbp
+ .cfi_def_cfa_register 6
+ subq $16, %rsp
+ movl $1073741824, %edi
+ call malloc
+ movq %rax, -16(%rbp)
+ movl $0, -4(%rbp)
+ jmp .L2
+.L3:
+ movl -4(%rbp), %eax
+ cltq
+ leaq 0(,%rax,4), %rdx
+ movq -16(%rbp), %rax
+ addq %rdx, %rax
+ movl (%rax), %edx
+ movl -4(%rbp), %eax
+ movl %eax, %esi
+ movl $.LC0, %edi
+ movl $0, %eax
+ call printf
+ addl $1, -4(%rbp)
+.L2:
+ cmpl $99, -4(%rbp)
+ jle .L3
+ movq -16(%rbp), %rax
+ movq %rax, %rsi
+ movl $.LC1, %edi
+ movl $0, %eax
+ call printf
+ movq -16(%rbp), %rax
+ movq %rax, %rdi
+ call free
+ movl $0, %eax
+ leave
+ .cfi_def_cfa 7, 8
+ ret
+ .cfi_endproc
+.LFE2:
+ .size main, .-main
+ .ident "GCC: (GNU) 4.8.2 20131219 (prerelease)"
+ .section .note.GNU-stack,"",@progbits
diff --git a/clone.c b/clone.c
new file mode 100644
index 0000000..d5c2806
--- /dev/null
+++ b/clone.c
@@ -0,0 +1,6 @@
+#include<stdio.h>
+
+int main ( int argc, char *argv[] ) {
+ char *string = "#include<stdio.h>\n\nint main ( int argc, char *argv[] ) {\n char *string = \"%n\";\n printf(*string, *string);\n}\n";
+ printf(string, string);
+}
diff --git a/clone1.c b/clone1.c
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/clone1.c
diff --git a/explosm.xml b/explosm.xml
new file mode 100644
index 0000000..0a5466c
--- /dev/null
+++ b/explosm.xml
@@ -0,0 +1,117 @@
+feeds.feedburner.com resolved to : 62.254.36.187
+Connected
+
+Data Send
+
+Reply received
+
+HTTP/1.1 200 OK
+Content-Type: text/xml; charset=UTF-8
+ETag: BCNyThWsMi3twyAaFxT27j98TTI
+Last-Modified: Mon, 03 Feb 2014 23:35:17 GMT
+Date: Mon, 03 Feb 2014 23:44:13 GMT
+Expires: Mon, 03 Feb 2014 23:44:13 GMT
+Cache-Control: private, max-age=0
+X-Content-Type-Options: nosniff
+X-XSS-Protection: 1; mode=block
+Server: GSE
+Transfer-Encoding: chunked
+
+104e
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><!-- generator="explosm" --><rss xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
+
+<channel>
+ <title>Explosm.net</title>
+ <link>http://www.explosm.net</link>
+ <description>Flash Animations, Daily Comics and more!</description>
+ <pubDate>Mon, 3 Feb 2014 15:35:17 +0000</pubDate>
+ <generator>http://wordpress.org/?v=1.5.1.3</generator>
+ <language>en</language>
+
+ <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Explosm" /><feedburner:info uri="explosm" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:browserFriendly>This is an XML content feed. It is intended to be viewed in a newsreader or syndicated to another site, subject to copyright and fair use.</feedburner:browserFriendly><item>
+ <title>02.03.2014</title>
+ <link>http://www.explosm.net/comics/3453/</link>
+ <pubDate>Mon, 3 Feb 2014 00:00:00 +0000</pubDate>
+ <category>Comics</category>
+ <guid>http://www.explosm.net/comics/3453/</guid>
+ <description>New Cyanide and Happiness Comic.</description>
+ </item>
+ <item>
+ <title>02.02.2014</title>
+ <link>http://www.explosm.net/comics/3452/</link>
+ <pubDate>Sun, 2 Feb 2014 00:00:00 +0000</pubDate>
+ <category>Comics</category>
+ <guid>http://www.explosm.net/comics/3452/</guid>
+ <description>New Cyanide and Happiness Comic.</description>
+ </item>
+ <item>
+ <title>02.01.2014</title>
+ <link>http://www.explosm.net/comics/3451/</link>
+ <pubDate>Sat, 1 Feb 2014 00:00:00 +0000</pubDate>
+ <category>Comics</category>
+ <guid>http://www.explosm.net/comics/3451/</guid>
+ <description>New Cyanide and Happiness Comic.</description>
+ </item>
+ <item>
+ <title>01.31.2014</title>
+ <link>http://www.explosm.net/comics/3450/</link>
+ <pubDate>Fri, 31 Jan 2014 00:00:00 +0000</pubDate>
+ <category>Comics</category>
+ <guid>http://www.explosm.net/comics/3450/</guid>
+ <description>New Cyanide and Happiness Comic.</description>
+ </item>
+ <item>
+ <title>Short: Nice Place</title>
+ <link>http://www.explosm.net/show/episode/77/nice-place/autoplay</link>
+ <pubDate>Thu, 30 Jan 2014 00:00:00 +0000</pubDate>
+ <category>Comics</category>
+ <guid>http://www.explosm.net/show/episode/77/nice-place/autoplay</guid>
+ <description>New Cyanide and Happiness Short.</description>
+ </item>
+ <item>
+ <title>01.29.2014</title>
+ <link>http://www.explosm.net/comics/3448/</link>
+ <pubDate>Wed, 29 Jan 2014 00:00:00 +0000</pubDate>
+ <category>Comics</category>
+ <guid>http://www.explosm.net/comics/3448/</guid>
+ <description>New Cyanide and Happiness Comic.</description>
+ </item>
+ <item>
+ <title>01.28.2014</title>
+ <link>http://www.explosm.net/comics/3447/</link>
+ <pubDate>Tue, 28 Jan 2014 00:00:00 +0000</pubDate>
+ <category>Comics</category>
+ <guid>http://www.explosm.net/comics/3447/</guid>
+ <description>New Cyanide and Happiness Comic.</description>
+ </item>
+ <item>
+ <title>01.27.2014</title>
+ <link>http://www.explosm.net/comics/3446/</link>
+ <pubDate>Mon, 27 Jan 2014 00:00:00 +0000</pubDate>
+ <category>Comics</category>
+ <guid>http://www.explosm.net/comics/3446/</guid>
+ <description>New Cyanide and Happiness Comic.</description>
+ </item>
+ <item>
+ <title>01.26.2014</title>
+ <link>http://www.explosm.net/comics/3445/</link>
+ <pubDate>Sun, 26 Jan 2014 00:00:00 +0000</pubDate>
+ <category>Comics</category>
+ <guid>http://www.explosm.net/comics/3445/</guid>
+ <description>New Cyanide and Happiness Comic.</description>
+ </item>
+ <item>
+ <title>01.25.2014</title>
+ <link>http://www.explosm.net/comics/3444/</link>
+ <pubDate>Sat, 25 Jan 2014 00:00:00 +0000</pubDate>
+ <category>Comics</category>
+ <guid>http://www.explosm.net/comics/3444/</guid>
+ <description>New Cyanide and Happiness Comic.</description>
+ </item>
+ </channel>
+</rss>
+
+0
+
+
diff --git a/file b/file
new file mode 100644
index 0000000..4a71cb7
--- /dev/null
+++ b/file
@@ -0,0 +1,8 @@
+This is a file of file kind
+wololololo
+we want this file to be randomized
+wololololo
+there's a file, here, and there's a file there
+file here file there file everywhere
+we want this file to be randomized
+wololololo
diff --git a/getline-test.c b/getline-test.c
new file mode 100644
index 0000000..7eb8457
--- /dev/null
+++ b/getline-test.c
@@ -0,0 +1,11 @@
+#include<stdio.h>
+#include<stdlib.h>
+
+int main (int argc, char *argv[]) {
+ char **string;
+
+ string = malloc(100)
+ *string = "test";
+
+ printf("%s", **string);
+}
diff --git a/google.html b/google.html
new file mode 100644
index 0000000..3ccd127
--- /dev/null
+++ b/google.html
@@ -0,0 +1,23 @@
+Connected
+
+Data Send
+
+Reply received
+
+HTTP/1.1 200 OK
+Date: Sun, 29 Dec 2013 17:32:10 GMT
+Expires: -1
+Cache-Control: private, max-age=0
+Content-Type: text/html; charset=ISO-8859-1
+Set-Cookie: PREF=ID=de83506dae7a4d2c:FF=0:TM=1388338330:LM=1388338330:S=86KRr-U5XLrnu9cl; expires=Tue, 29-Dec-2015 17:32:10 GMT; path=/; domain=.google.com
+Set-Cookie: NID=67=gCG7hCOJeDPk6gA27n9l7jibCCw_hFv7nkGxj5yZBQQ5HjwANVV6z1aYRmGnMsCJIzWRf6sWq8yCceYExpeUGkXsfOcZz8qmfA4gfyT7U45wT9Enun9701aU3tungtGT; expires=Mon, 30-Jun-2014 17:32:10 GMT; path=/; domain=.google.com; HttpOnly
+P3P: CP="This is not a P3P policy! See http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=151657 for more info."
+Server: gws
+X-XSS-Protection: 1; mode=block
+X-Frame-Options: SAMEORIGIN
+Alternate-Protocol: 80:quic
+Transfer-Encoding: chunked
+
+8000
+<!doctype html><html itemscope="" itemtype="http://schema.org/WebPage"><head><meta content="Search the world's information, including webpages, images, videos and more. Google has many special features to help you find exactly what you're looking for." name="description"><meta content="noodp" name="robots"><meta itemprop="image" content="/images/google_favicon_128.png"><title>Google</title><script>(function(){
+window.google={kEI:"mlzAUt6YNIOryAPV2oCADQ",getEI:function(a){for(var b;a&&(!a.getAttribute||!(b=a.getAttribute("eid")));)a=a.parentNode;return b||google.kEI},https:function(){return"https:"==window.location.protocol},kEXPI:"25657,4000116,4007278,4007661,4007714,4007830,4008067,4008133,4008142,4009016,4009033,4009103,4009352,4009565,4009641,4010806,4010858,4010899,4011063,4011228,4011258,4011524,4011559,4011863,4012001,4012096,4012190,4012275,4012302,4012316,4012318,4012320,4012342,4012365,4012415,4012526,4012538,4012547,4012691,4012836,4012851,4012869,4013060,4013104,4013140,4013312,4013374,4013378,4013414,4013416,4013474,4013513,4013567,4013631,4013634,4013667,4013668,4013669,4013671,4013672,4013686,4013703,4013711,4013719,4013725,4013741,4013782,4013837,4013842,4013846,4013
diff --git a/googleposttest.html b/googleposttest.html
new file mode 100644
index 0000000..63fcfb9
--- /dev/null
+++ b/googleposttest.html
@@ -0,0 +1,6 @@
+<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
+<TITLE>302 Moved</TITLE></HEAD><BODY>
+<H1>302 Moved</H1>
+The document has moved
+<A HREF="http://www.google.co.uk/?gws_rd=cr&amp;ei=0kWzUui1EdPA7AbdgoCgBg">here</A>.
+</BODY></HTML>
diff --git a/hello-world.c b/hello-world.c
new file mode 100644
index 0000000..a3a0138
--- /dev/null
+++ b/hello-world.c
@@ -0,0 +1,6 @@
+#include <stdio.h>
+
+int main() {
+ printf("Hello World");
+ getchar();
+}
diff --git a/important-file.c b/important-file.c
new file mode 100644
index 0000000..147f256
--- /dev/null
+++ b/important-file.c
@@ -0,0 +1,5 @@
+#include <stdio.h>
+
+main () {
+ printf("test \n")
+}
diff --git a/input b/input
new file mode 100644
index 0000000..e22d891
--- /dev/null
+++ b/input
@@ -0,0 +1 @@
+this is a test of a test for a test test test
diff --git a/isOdd b/isOdd
new file mode 100755
index 0000000..6d38880
--- /dev/null
+++ b/isOdd
Binary files differ
diff --git a/isOdd.c b/isOdd.c
new file mode 100644
index 0000000..c48c92c
--- /dev/null
+++ b/isOdd.c
@@ -0,0 +1,17 @@
+#include<stdio.h>
+
+_Bool isOdd( int );
+
+int main ( int argc, char *argv[] ) {
+ if ( argc == 2 ) {
+ printf("%s\n", isOdd( atoi( argv[1] ) ) ? "true" : "false" );
+ return 0;
+ } else {
+ printf("Usage: '%s <number>'\n", argv[0]);
+ return 1;
+ }
+}
+
+_Bool isOdd( int n ) {
+ return n % 2;
+}
diff --git a/isOdd.s b/isOdd.s
new file mode 100644
index 0000000..4a90dd6
--- /dev/null
+++ b/isOdd.s
@@ -0,0 +1,68 @@
+ .file "isOdd.c"
+ .section .rodata.str1.1,"aMS",@progbits,1
+.LC0:
+ .string "true"
+.LC1:
+ .string "false"
+.LC2:
+ .string "Usage: '%s <number>'\n"
+ .section .text.startup,"ax",@progbits
+ .p2align 4,,15
+ .globl main
+ .type main, @function
+main:
+.LFB11:
+ .cfi_startproc
+ cmpl $2, %edi
+ pushq %rbx
+ .cfi_def_cfa_offset 16
+ .cfi_offset 3, -16
+ movl %edi, %ebx
+ je .L8
+ movq (%rsi), %rsi
+ movl $.LC2, %edi
+ xorl %eax, %eax
+ call printf
+ movl $1, %eax
+ popq %rbx
+ .cfi_remember_state
+ .cfi_def_cfa_offset 8
+ ret
+.L8:
+ .cfi_restore_state
+ movq 8(%rsi), %rdi
+ xorl %eax, %eax
+ call atoi
+ cltd
+ movl $.LC0, %edi
+ idivl %ebx
+ movl $.LC1, %eax
+ testl %edx, %edx
+ cmove %rax, %rdi
+ call puts
+ xorl %eax, %eax
+ popq %rbx
+ .cfi_def_cfa_offset 8
+ ret
+ .cfi_endproc
+.LFE11:
+ .size main, .-main
+ .text
+ .p2align 4,,15
+ .globl isOdd
+ .type isOdd, @function
+isOdd:
+.LFB12:
+ .cfi_startproc
+ movl %edi, %eax
+ shrl $31, %eax
+ addl %eax, %edi
+ andl $1, %edi
+ cmpl %eax, %edi
+ setne %al
+ ret
+ .cfi_endproc
+.LFE12:
+ .size isOdd, .-isOdd
+ .ident "GCC: (GNU) 4.8.2 20131219 (prerelease)"
+ .section .note.GNU-stack,"",@progbits
diff --git a/isOddBetter b/isOddBetter
new file mode 100755
index 0000000..698956d
--- /dev/null
+++ b/isOddBetter
Binary files differ
diff --git a/isOddBetter.c b/isOddBetter.c
new file mode 100644
index 0000000..7788b4a
--- /dev/null
+++ b/isOddBetter.c
@@ -0,0 +1,20 @@
+#include<stdio.h>
+
+_Bool isOdd( int );
+
+int main ( int argc, char *argv[] ) {
+ if ( argc == 2 ) {
+ printf("%s\n", isOdd( atoi( argv[1] ) ) ? "true" : "false" );
+ return 0;
+ } else {
+ printf("Usage: '%s <number>'\n", argv[0]);
+ return 1;
+ }
+}
+
+_Bool isOdd( int n ) {
+ // Bitwise and with LSB to check if number is odd or even.
+ // LSB == 0 => even
+ // LSB == 1 => odd
+ return n & 1;
+}
diff --git a/isOddBetter.s b/isOddBetter.s
new file mode 100644
index 0000000..ab437d7
--- /dev/null
+++ b/isOddBetter.s
@@ -0,0 +1,59 @@
+ .file "isOddBetter.c"
+ .section .rodata.str1.1,"aMS",@progbits,1
+.LC0:
+ .string "true"
+.LC1:
+ .string "false"
+.LC2:
+ .string "Usage: '%s <number>'\n"
+ .section .text.startup,"ax",@progbits
+ .p2align 4,,15
+ .globl main
+ .type main, @function
+main:
+.LFB11:
+ .cfi_startproc
+ subq $8, %rsp
+ .cfi_def_cfa_offset 16
+ cmpl $2, %edi
+ je .L8
+ movq (%rsi), %rsi
+ movl $.LC2, %edi
+ xorl %eax, %eax
+ call printf
+ movl $1, %eax
+.L4:
+ addq $8, %rsp
+ .cfi_remember_state
+ .cfi_def_cfa_offset 8
+ ret
+.L8:
+ .cfi_restore_state
+ movq 8(%rsi), %rdi
+ xorl %eax, %eax
+ call atoi
+ movl $.LC0, %edi
+ testb $1, %al
+ movl $.LC1, %eax
+ cmove %rax, %rdi
+ call puts
+ xorl %eax, %eax
+ jmp .L4
+ .cfi_endproc
+.LFE11:
+ .size main, .-main
+ .text
+ .p2align 4,,15
+ .globl isOdd
+ .type isOdd, @function
+isOdd:
+.LFB12:
+ .cfi_startproc
+ movl %edi, %eax
+ andl $1, %eax
+ ret
+ .cfi_endproc
+.LFE12:
+ .size isOdd, .-isOdd
+ .ident "GCC: (GNU) 4.8.2 20131219 (prerelease)"
+ .section .note.GNU-stack,"",@progbits
diff --git a/lewisnumber.c b/lewisnumber.c
new file mode 100644
index 0000000..963cedd
--- /dev/null
+++ b/lewisnumber.c
@@ -0,0 +1,8 @@
+#include<stdio.h>
+#include<stdlib.h>
+#include<time.h>
+
+int main ( int argc, char *argv[] ) {
+ srand( time(NULL) );
+ printf("Lewis, your number is %d.\n", rand());
+}
diff --git a/makefile b/makefile
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/makefile
diff --git a/odd.1.c b/odd.1.c
new file mode 100644
index 0000000..a9a3390
--- /dev/null
+++ b/odd.1.c
@@ -0,0 +1,3 @@
+void main () {
+ _Bool b = 10 % 2;
+}
diff --git a/odd.1.s b/odd.1.s
new file mode 100644
index 0000000..6ccc051
--- /dev/null
+++ b/odd.1.s
@@ -0,0 +1,21 @@
+ .file "odd.1.c"
+ .text
+ .globl main
+ .type main, @function
+main:
+.LFB0:
+ .cfi_startproc
+ pushq %rbp
+ .cfi_def_cfa_offset 16
+ .cfi_offset 6, -16
+ movq %rsp, %rbp
+ .cfi_def_cfa_register 6
+ movb $0, -1(%rbp)
+ popq %rbp
+ .cfi_def_cfa 7, 8
+ ret
+ .cfi_endproc
+.LFE0:
+ .size main, .-main
+ .ident "GCC: (GNU) 4.8.2 20131219 (prerelease)"
+ .section .note.GNU-stack,"",@progbits
diff --git a/odd.2.c b/odd.2.c
new file mode 100644
index 0000000..d86bdf4
--- /dev/null
+++ b/odd.2.c
@@ -0,0 +1,3 @@
+void main () {
+ _Bool b = 10 & 1;
+}
diff --git a/odd.2.s b/odd.2.s
new file mode 100644
index 0000000..cf86497
--- /dev/null
+++ b/odd.2.s
@@ -0,0 +1,21 @@
+ .file "odd.2.c"
+ .text
+ .globl main
+ .type main, @function
+main:
+.LFB0:
+ .cfi_startproc
+ pushq %rbp
+ .cfi_def_cfa_offset 16
+ .cfi_offset 6, -16
+ movq %rsp, %rbp
+ .cfi_def_cfa_register 6
+ movb $0, -1(%rbp)
+ popq %rbp
+ .cfi_def_cfa 7, 8
+ ret
+ .cfi_endproc
+.LFE0:
+ .size main, .-main
+ .ident "GCC: (GNU) 4.8.2 20131219 (prerelease)"
+ .section .note.GNU-stack,"",@progbits
diff --git a/out_file b/out_file
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/out_file
diff --git a/pointers.c b/pointers.c
new file mode 100644
index 0000000..cfb61f1
--- /dev/null
+++ b/pointers.c
@@ -0,0 +1,18 @@
+#include <stdio.h>
+
+int main ()
+{
+ long *ptr; //memory pointer
+ long i; //increment to be used as pointer address
+ printf("0x%X \n",&main);
+ ptr = &main;
+ printf(" --ADDRESS- : VAL- \n");
+
+ for(i = 0; i <= 9999; i++) //could probably be done without using i
+ {
+ printf(" 0x%X : 0x%08X \n", ptr, *ptr); //output
+ ptr++;
+ }
+
+ return 0;
+}
diff --git a/printparse b/printparse
new file mode 100755
index 0000000..763115b
--- /dev/null
+++ b/printparse
Binary files differ
diff --git a/printparse.c b/printparse.c
new file mode 100644
index 0000000..0966e61
--- /dev/null
+++ b/printparse.c
@@ -0,0 +1,21 @@
+#include<stdio.h>
+
+int main ( int argc, char *argv[] ) {
+ char c;
+ while ( (c = getchar()) != EOF ) {
+ switch (c) {
+ case '\n' :
+ printf("\\n");
+ break;
+ case '\t' :
+ printf("\\t");
+ break;
+ case '\\' :
+ printf("\\\\");
+ break;
+ default :
+ putchar(c);
+ break;
+ }
+ }
+}
diff --git a/python-indent_swapper.c b/python-indent_swapper.c
new file mode 100644
index 0000000..a39d450
--- /dev/null
+++ b/python-indent_swapper.c
@@ -0,0 +1,92 @@
+#include<stdio.h>
+#include<stdlib.h>
+
+#define MAXFILE 1000
+#define MAXLINE 1000
+
+int readline(char *line, int maxline);
+int stripspace(char *line);
+
+int main(int argc, char *argv[]) {
+
+ char line[MAXFILE][MAXLINE];
+ int inspace, outspace, i, linecount, space;
+
+ if (argc == 3) {
+/* inspace = atoi(argv[1]);
+ outspace = atoi(argv[2]); */
+
+ inspace = 4;
+ outspace = 2;
+
+ i = linecount = 0;
+
+ while ( readline(line[i++], MAXLINE ) >= 0)
+ linecount++;
+
+/* for (i = 0; i < linecount; i++) {
+ space = stripspace(line[i]);
+ space = space - space % inspace;
+ space = space / inspace * outspace;
+ addspace(line[i], space);
+ } */
+
+ } else {
+ return 1;
+ }
+
+ return 0;
+
+}
+
+int readline(char *string, int lim) {
+
+ int c, i;
+
+ i = 0;
+ while (--lim > 0 && (c=getchar()) != EOF && c != '\n')
+ string[i++] = c;
+
+ if (c == '\n')
+ string[i++] = c;
+
+ if (c == EOF)
+ i = -1;
+
+ string[i] = '\0';
+ return i;
+}
+
+int stripspace(char *string) {
+
+ int i, ii;
+
+ i = ii = 0;
+ while (string[i] == ' ')
+ i++;
+
+ while ( (string[ii++] = string[i++]) != '\0')
+ ;
+
+ return i - ii;
+}
+
+int addspace(char *string, int amount) {
+
+ int i, ii;
+
+ i = 0;
+ while ( string[i++] != '\0' )
+ ;
+
+ ii = i + amount;
+
+ while (--i != -1) {
+ --ii;
+
+ string [ii] = string [i];
+ }
+
+ while (--ii != -1)
+ string [ii] = ' ';
+}
diff --git a/randomcase b/randomcase
new file mode 100755
index 0000000..ee0f1bd
--- /dev/null
+++ b/randomcase
Binary files differ
diff --git a/randomcase.c b/randomcase.c
new file mode 100644
index 0000000..c587d1a
--- /dev/null
+++ b/randomcase.c
@@ -0,0 +1,44 @@
+#include <stdlib.h>
+#include <stdio.h>
+#include <time.h>
+
+
+#define MAXLINE 1000
+
+void upper (char string[], int position) {
+
+ if (string[position] < 'z' && string[position] > 'a' ) {
+ string[position] -= 'a';
+ string[position] += 'A';
+ }
+}
+
+void lower (char string[], int position) {
+
+ if (string[position] < 'Z' && string[position] > 'A' ) {
+ string[position] -= 'A';
+ string[position] += 'a';
+ }
+}
+
+
+
+int main (int argc, char **argv) {
+ srand(time(NULL));
+
+ char input_string[MAXLINE];
+ char c;
+ int i = 0;
+
+ while ((c = getchar()) != '\0') {
+ input_string[i++] = c;
+ }
+
+ input_string[i] = '\0';
+
+ for (i = 0; i < MAXLINE; i++) {
+ (rand() & 1) ? upper(input_string, i) : lower(input_string, i);
+ }
+
+ printf("Output: %s \n", input_string);
+}
diff --git a/rardomcase b/rardomcase
new file mode 100644
index 0000000..4195d14
--- /dev/null
+++ b/rardomcase
@@ -0,0 +1 @@
+penis test
diff --git a/rmtrailws b/rmtrailws
new file mode 100755
index 0000000..8ebd61a
--- /dev/null
+++ b/rmtrailws
Binary files differ
diff --git a/rpout.c b/rpout.c
new file mode 100644
index 0000000..a07f382
--- /dev/null
+++ b/rpout.c
@@ -0,0 +1,13 @@
+#include <stdio.h>
+
+#define void rp(char output[])
+
+main () {
+ rp("Test");
+ rp("Ok, this is no longer a test.");
+ rp("TK throws his arms around you and squeezes you");
+}
+
+rp (char output[]) {
+ printf(" [RPOUT] : %s \n", output);
+}
diff --git a/rtrailws.c b/rtrailws.c
new file mode 100644
index 0000000..a1d1956
--- /dev/null
+++ b/rtrailws.c
@@ -0,0 +1,23 @@
+// Remove trailing whitespace.
+#include<stdio.h>
+
+int main (int argc, char *argv[]) {
+ char c;
+ int spacecount = 0;
+ while ( (c = getchar()) != EOF ) {
+ if (c == ' ') {
+ spacecount++;
+ } else if (c == '\n' && spacecount) {
+ putchar('\n');
+ spacecount = 0;
+ } else {
+ if (spacecount) {
+ int i;
+ for (i = 0; i < spacecount; i++)
+ putchar(' ');
+ spacecount = 0;
+ }
+ putchar(c);
+ }
+ }
+}
diff --git a/sizeofsize_t b/sizeofsize_t
new file mode 100755
index 0000000..7d3e90a
--- /dev/null
+++ b/sizeofsize_t
Binary files differ
diff --git a/sizeofsize_t.c b/sizeofsize_t.c
new file mode 100644
index 0000000..1284839
--- /dev/null
+++ b/sizeofsize_t.c
@@ -0,0 +1,7 @@
+#include<stdio.h>
+#include<stdlib.h>
+
+int main ( int argc, char *argv[] ) {
+ int size = sizeof(size_t);
+ printf("The size of size_t is %dB or %db\n", size, size * 8);
+}
diff --git a/sockets.c b/sockets.c
new file mode 100644
index 0000000..cf1e7a7
--- /dev/null
+++ b/sockets.c
@@ -0,0 +1,64 @@
+#include<stdio.h>
+#include<string.h>
+#include<sys/socket.h>
+#include<arpa/inet.h>
+#include<netdb.h>
+
+#define messagelength 1000000
+
+int main(int argc, char *argv[]) {
+ char *hostname = "feeds.feedburner.com";
+ char ip[100];
+ struct hostent *he;
+ struct in_addr **addr_list;
+ int i;
+
+ if ( (he = gethostbyname( hostname ) ) == NULL) {
+ //gethostbyname failed
+ herror("gethostbyname");
+ return 1;
+ }
+
+ addr_list = (struct in_addr **) he->h_addr_list;
+
+ for(i = 0; addr_list[i] != NULL; i++) {
+ strcpy(ip, inet_ntoa(*addr_list[i]) );
+ }
+
+ printf("%s resolved to : %s\n", hostname, ip);
+
+ int socket_desc;
+ struct sockaddr_in server;
+ char *message, server_reply[messagelength];
+
+ socket_desc = socket(AF_INET, SOCK_STREAM, 0);
+ if (socket_desc == -1) {
+ printf("Could not create socket");
+ }
+
+ server.sin_addr.s_addr = inet_addr(ip);
+ server.sin_family = AF_INET;
+ server.sin_port = htons( 80 );
+
+ if (connect(socket_desc, (struct sockaddr *)&server, sizeof(server)) < 0) {
+ puts("connect error");
+ return 1;
+ }
+
+ puts("Connected\n");
+
+ message = "HEAD /Explosm HTTP/1.1\r\nHost: feeds.feedburner.com\r\n\r\n";
+ if( send(socket_desc , message , strlen(message) , 0) < 0) {
+ puts("Send failed");
+ return 1;
+ }
+ puts("Data Send\n");
+
+ if( recv(socket_desc, server_reply , messagelength, 0) < 0) {
+ puts("recv failed");
+ }
+ puts("Reply received\n");
+ puts(server_reply);
+
+ return 0;
+}
diff --git a/sprin b/sprin
new file mode 100644
index 0000000..4a90dd6
--- /dev/null
+++ b/sprin
@@ -0,0 +1,68 @@
+ .file "isOdd.c"
+ .section .rodata.str1.1,"aMS",@progbits,1
+.LC0:
+ .string "true"
+.LC1:
+ .string "false"
+.LC2:
+ .string "Usage: '%s <number>'\n"
+ .section .text.startup,"ax",@progbits
+ .p2align 4,,15
+ .globl main
+ .type main, @function
+main:
+.LFB11:
+ .cfi_startproc
+ cmpl $2, %edi
+ pushq %rbx
+ .cfi_def_cfa_offset 16
+ .cfi_offset 3, -16
+ movl %edi, %ebx
+ je .L8
+ movq (%rsi), %rsi
+ movl $.LC2, %edi
+ xorl %eax, %eax
+ call printf
+ movl $1, %eax
+ popq %rbx
+ .cfi_remember_state
+ .cfi_def_cfa_offset 8
+ ret
+.L8:
+ .cfi_restore_state
+ movq 8(%rsi), %rdi
+ xorl %eax, %eax
+ call atoi
+ cltd
+ movl $.LC0, %edi
+ idivl %ebx
+ movl $.LC1, %eax
+ testl %edx, %edx
+ cmove %rax, %rdi
+ call puts
+ xorl %eax, %eax
+ popq %rbx
+ .cfi_def_cfa_offset 8
+ ret
+ .cfi_endproc
+.LFE11:
+ .size main, .-main
+ .text
+ .p2align 4,,15
+ .globl isOdd
+ .type isOdd, @function
+isOdd:
+.LFB12:
+ .cfi_startproc
+ movl %edi, %eax
+ shrl $31, %eax
+ addl %eax, %edi
+ andl $1, %edi
+ cmpl %eax, %edi
+ setne %al
+ ret
+ .cfi_endproc
+.LFE12:
+ .size isOdd, .-isOdd
+ .ident "GCC: (GNU) 4.8.2 20131219 (prerelease)"
+ .section .note.GNU-stack,"",@progbits
diff --git a/test.c b/test.c
new file mode 100644
index 0000000..1dcd100
--- /dev/null
+++ b/test.c
@@ -0,0 +1,4 @@
+int main() {
+ char test[] = "Cake";
+ test++;
+}
diff --git a/test.py b/test.py
new file mode 100644
index 0000000..63f8088
--- /dev/null
+++ b/test.py
@@ -0,0 +1,11 @@
+this is a test of a test
+ this is a test of a test
+ this is a test of a test
+ this is a test
+
+
+ this is a test test test
+ this is an uneven line test
+ this is another
+ this is a test
+this is a test
diff --git a/test.rs b/test.rs
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/test.rs
@@ -0,0 +1 @@
+
diff --git a/test_out.py b/test_out.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/test_out.py
diff --git a/test~ b/test~
new file mode 100755
index 0000000..15f6709
--- /dev/null
+++ b/test~
Binary files differ
diff --git a/tutor b/tutor
new file mode 100644
index 0000000..5913047
--- /dev/null
+++ b/tutor
@@ -0,0 +1,3 @@
+This is a testicle of a testicle wololo.
+
+I am typing your salad.
diff --git a/wsrm.output b/wsrm.output
new file mode 100644
index 0000000..b789c01
--- /dev/null
+++ b/wsrm.output
@@ -0,0 +1 @@
+This is a test