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
# | |
# | |
# a script to create a adder in C. | |
# | |
# | |
# | |
# | |
# | |
# | |
# |
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> | |
long factorial(int n) { | |
long result = 1; | |
for (int i = 1; i <= n; ++i) | |
result *= i; | |
return result; | |
} | |
int main () |
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> | |
long factorial(int n) { | |
long result = 1; | |
for (int i = 1; i <= n; ++i) | |
result *= i; | |
return result; | |
} | |
int main () |
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 hashlib | |
inputfile = '/Users/kyle/Desktop/test.txt' | |
splittingtxt = chr(0xFF)+chr(0xD8) | |
# Input data. | |
s = file(inputfile, "rb").read() | |
# Partition on first space. | |
t = s.split(splittingtxt) |
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 table(const char *title, const char *mode) | |
{ | |
int f, b; | |
printf("\n\033[1m%s\033[m\n bg\t fg\n", title); | |
for (b = 40; b <= 107; b++) { | |
if (b == 48) b = 100; | |
printf("%3d\t\033[%s%dm", b, mode, b); | |
for (f = 30; f <= 97; f++) { |
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
// | |
// main.c | |
// BitShift | |
// | |
// Created by Kyle on 10/15/13. | |
// Copyright (c) 2013 Kyle kersey. All rights reserved. | |
// | |
#include <stdio.h> | |
#include <string.h> |
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
// | |
// main.c | |
// test | |
// | |
// Created by Kyle on 10/13/13. | |
// Copyright (c) 2013 Kyle kersey. All rights reserved. | |
// | |
#include <stdio.h> | |
#include <stdlib.h> |
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
md5 Initialization values: | |
0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476 |
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
3b 20 48 65 6c 6c 6f 20 57 6f 72 6c 64 20 69 6e | |
20 61 73 73 65 6d 62 6c 79 20 66 6f 72 20 6d 61 | |
63 0a 3b 20 6e 61 73 6d 20 2d 66 20 6d 61 63 68 | |
6f 20 68 65 6c 6c 6f 2e 61 73 6d 0a 3b 20 6c 64 | |
20 2d 65 20 5f 73 74 61 72 74 20 2d 6f 20 68 65 | |
6c 6c 6f 20 68 65 6c 6c 6f 2e 6f 0a 3b 0a 73 65 | |
63 74 69 6f 6e 20 20 20 20 20 2e 74 65 78 74 0a | |
20 67 6c 6f 62 61 6c 20 5f 73 74 61 72 74 20 20 | |
20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | |
20 20 20 20 20 3b 6d 75 73 74 20 62 65 20 64 65 |
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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
Version: GnuPG v1.4.13 (Darwin) | |
mQENBFH9gEwBCACjVxOJHV8KpZ7LLFPfWKbUScjd/2dhTB/ySsUaL+xExEZ4KGCd | |
ARSUrmFpWN4p2eGOo6v8KEGkS5Sk6rxo8Q0KnjqL9RkF7gOu2CKOqaVDb/B/6eCR | |
O/HvbSPmlu0EY1vGTv/u2rKX1d1if7eQ8+xsaHA9AEqK51RV/knIrV10VCxxdhwT | |
apHVLtLejxde8YS2GRGglkVxXg4PZelWcmHMTNApCckUpQagIgWCfBzW+kEycy/K | |
FH2Is4/pZN1wazgYODLFrZjDnzJvlWenU0r1Mz1gOLAZMgYJJwFi0cppkXjopmET | |
oI589tATTtF7wzIyndHQWKdGOjuUnR0Y7qmbABEBAAG0IGt5bGUga2Vyc2V5IDxr | |
eWxlbGtAY29tY2FzdC5uZXQ+iQE4BBMBAgAiBQJR/YBMAhsDBgsJCAcDAgYVCAIJ |