This file contains 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
< /* | |
< Exam 2 | |
< Cory dolphin | |
--- | |
> /* Example code for Software Systems at Olin College. | |
> | |
> Copyright 2014 Allen Downey | |
> License: Creative Commons Attribution-ShareAlike 3.0 | |
9d9 | |
< #include "stdlib.h" // we need malloc! |
This file contains 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
/* Exam 2 | |
Cory dolphin | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <assert.h> |
This file contains 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
/* | |
Exam 2 | |
Cory dolphin | |
*/ | |
#include "stdio.h" | |
#include "stdlib.h" // we need malloc! |
This file contains 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
/* Example code for Software Systems at Olin College. | |
Copyright 2014 Allen Downey | |
License: Creative Commons Attribution-ShareAlike 3.0 | |
*/ | |
#include "stdio.h" |
This file contains 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
[FBSDKAppEvents logEvent:FBSDKAppEventNameAddedToCart | |
valueToSum:54.23 | |
parameters:@{ FBSDKAppEventParameterNameCurrency : @"USD", | |
FBSDKAppEventParameterNameContentType : @"shoes", | |
FBSDKAppEventParameterNameContentID : @"HDFU-8452" } ]; |
This file contains 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 python | |
""" | |
parseEmail.py: Parses mbox-formatted email boxes for the interesting bits | |
Usage: ./parseEmail.py dir | |
Where dir is a directory containing mbox files | |
""" | |
import mailbox | |
import os | |
import sys |
This file contains 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
""" | |
downloadArchives.py: Parses a Mailman Archive site and decodes all of the | |
gzipped text archives in mbox format for reading with most popular | |
email services, or mailbox.py | |
Usage: ./downloadArchives.py [dir] [-f] | |
Where dir is a directory containing mbox files | |
If dir is not specified, the output will default to the current working directory | |
Optionally, the -f flag will overwrite any existing files of the same name as the archives | |
""" |
This file contains 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
See the source of level02.php, the usage of cookies is unsafe as the content is not validated, but merely evaluated. | |
Substituting an arbitrary file path for the randomly generated path allows you to access files with the permissions of the user running PHP, i.e. level03: | |
Alter the cookie content to:"../../home/level03/.password" | |
password: Or0m4UX*** | |
(password redacted so as to not ruin the game for anyone :-) ). | |
This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using Microsoft.ServiceBus.Messaging; | |
using Microsoft.ServiceBus; | |
namespace FrontendWebRole | |
{ |
OlderNewer