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
<html> | |
<head> | |
<title>Guessing Game</title> | |
</head> | |
<body> | |
<h1>Welcome to the Guessing Game!</h1> | |
<p> | |
Guess the secret combination below, and if you get it right, | |
you'll get the password to the next level! | |
</p> |
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
#! /bin/bash | |
current_branch=$(git symbolic-ref -q HEAD | cut -d'/' -f3) | |
files_changed=$(git diff --name-only $current_branch master | grep -e "\.py$") | |
if [ -e "$files_changed" ]; then | |
echo "No python code was changed. Exiting..." | |
exit 0 | |
else | |
for file in $files_changed; do |
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
<?php | |
session_start(); | |
if ($_FILES["dispic"]["error"] > 0) { | |
echo "<p>Error: " . $_FILES["dispic"]["error"] . "</p>"; | |
} | |
else | |
{ | |
$dest_dir = "uploads/"; | |
$dest = $dest_dir . basename($_FILES["dispic"]["name"]); |
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 | |
# | |
# Welcome to the Secret Safe! | |
# | |
# - users/users.db stores authentication info with the schema: | |
# | |
# CREATE TABLE users ( | |
# id VARCHAR(255) PRIMARY KEY AUTOINCREMENT, | |
# username VARCHAR(255), | |
# password_hash VARCHAR(255), |
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
<html> | |
<body> | |
<p> | |
Welcome to the Secret Safe, a place to guard your most | |
precious secrets! To retreive your secrets, log in below. | |
</p> | |
<p>The current users of the system store the following secrets:</p> | |
<ul> |
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
:100644 100644 0ce1cc5... 4f4de93... M evolve.ini | |
diff --git a/evolve.ini b/evolve.ini | |
index 0ce1cc5..4f4de93 100644 | |
--- a/evolve.ini | |
+++ b/evolve.ini | |
@@ -91,7 +91,7 @@ delivery_mode = 2 | |
# Logging configuration | |
[loggers] |
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
# --------------------------------------------------------------------------- | |
# | |
# This file configures the New Relic Python Agent. | |
# | |
# The path to the configuration file should be supplied to the function | |
# newrelic.agent.initialize() when the agent is being initialized. | |
# | |
# The configuration file follows a structure similar to what you would | |
# find for Microsoft Windows INI files. For further information on the |
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
:100644 100644 14b1174... ca189d5... M newrelic-evolve.ini | |
diff --git a/newrelic-evolve.ini b/newrelic-evolve.ini | |
index 14b1174..ca189d5 100644 | |
--- a/newrelic-evolve.ini | |
+++ b/newrelic-evolve.ini | |
@@ -56,7 +56,7 @@ monitor_mode = true | |
# output to standard error output. This would normally result in | |
# output appearing in your web server log. | |
# XXX FIX ME |
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
>>> def foo(): | |
... def bar(): | |
... pass | |
... return bar | |
... | |
>>> foo() | |
<function bar at 0x7f648fe7d758> | |
>>> foo() | |
<function bar at 0x7f648fe7d7d0> | |
>>> foo() |
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
import time | |
def test0(): | |
assert False | |
def test1(): | |
time.sleep(1) | |
assert True |