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
| void xor(char *str, char *key) { | |
| char *t=key; | |
| for (;*str;str++,t++){ | |
| if(!*t){t=key;} | |
| *str^=*t;}} |
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
| /* | |
| surround a binary operator (particular a low precedence | |
| one) with spaces; don't try to write the most compact | |
| code possible but rather the most readable. | |
| */ | |
| int i = 5 + 3; | |
| //NOT | |
| int i=5+3; | |
| /* |
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
| /******************************************** | |
| Hello Everyone, This is going to be a | |
| (hopefully) helpful sheet of notes for lab 4. | |
| ********************************************/ | |
| /* Open A File for reading, and check to make sure it exists */ | |
| FILE *some_file = NULL; | |
| some_file = fopen("my_file_name.txt", "r"); | |
| if (some_file == NULL) { | |
| printf("This file does not exist!!\n"); |
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
| Section "Device" | |
| Identifier "Mali FBDEV" | |
| Driver "fbdev" | |
| Option "fbdev" "/dev/fb0" | |
| Option "Fimg2DExa" "false" | |
| Option "DRI2" "true" | |
| Option "DRI2_PAGE_FLIP" "false" | |
| Option "DRI@_WAIT_VSYNC" "true" | |
| Option "SWccursorLCD" "false" | |
| EndSection |
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
| package main | |
| import ( | |
| "net" | |
| "bufio" | |
| ) | |
| //Handles a connection | |
| func handleConnection(conn net.Conn) { | |
| //There are a few ways to read from the connection |
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
| int recursive_sum(int num) { | |
| int ones = num % 10; | |
| if (num == 0 ) { | |
| return 0; | |
| } | |
| return ones + recursive_sum(num / 10); | |
| } | |
| void reverse_string(char *start, char *end) { | |
| char temp; |
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
| func permute(opts []string) []string { | |
| return _permute("", opts) | |
| } | |
| func _permute(s string, opts []string) []string { | |
| if len(opts) == 0 { | |
| return []string{s} | |
| } | |
| ret := make([]string, 0, 16) | |
| olist := make([]string, 0, len(opts)) |
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
| .text | |
| .align 2 | |
| .global main | |
| .type main, %function | |
| main: | |
| @ args = 0, pretend = 0, frame = 8 | |
| @ frame_needed = 1, uses_anonymous_args = 0 | |
| @ link register save eliminated. | |
| str fp, [sp, #-4]! | |
| add fp, sp, #0 |
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
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| type T interface{} | |
| type Collection []interface{} | |
| func From(i T) Collection { |
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
| { | |
| "Server": "localhost:11221", | |
| "Files": [ | |
| { | |
| "Path": "src/Actor.h", | |
| "LastTime": "2014-02-16T02:38:13.961195864Z" | |
| }, | |
| { | |
| "Path": "src/Button.cpp", | |
| "LastTime": "2014-02-16T02:38:13.961626655Z" |