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
from names import name | |
def main(): | |
print "hello " + name | |
if __name__ == "__main__": | |
main() |
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/python | |
import urllib2 | |
import base64 | |
import json | |
filename = __file__.split("/")[-1] | |
data = {} | |
data["description"] = "A gist to test the Gist API" |
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
input.text, textarea { margin-bottom:12px; width:95%; padding: .4em; } | |
.ui-dialog textarea { height:100px; resize:vertical; } |
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
echo "delete 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 createGist(request): | |
if(request.method == "POST"): | |
data = {} | |
data["description"] = request.POST["description"] | |
data["public"] = True | |
filename = request.POST["filename"] | |
data["files"] = {filename:{}} | |
data["files"][filename]["content"] = request.POST["content"] |
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 createGist(request): | |
if(request.method == "POST"): | |
data = {} | |
data["description"] = request.POST["description"] | |
data["public"] = True | |
filename = request.POST["filename"] | |
data["files"] = {filename:{}} | |
data["files"][filename]["content"] = request.POST["content"] |
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
/* | |
* COEN 243 Assignment 1, Question 1. | |
* | |
* You are working in the IT department a logistics company that transports boxes of cornflakes | |
* from New York to Montreal. Each box contains 15 ounces of cornflakes. You have been asked to | |
* implement an application that, for a given order in metric tons, calculates the number of | |
* cornflakes boxes required to fill the order. | |
* | |
* Gordon Bailey (9541098) | |
* Sep 11, 2011 |
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/python | |
from sympy import Matrix | |
from math import sin, cos, pi, atan, sqrt | |
def degToRad(t): | |
"""docstring for degToRad""" | |
return t * (pi/180) | |
def rotateAroundX(v, theta): |
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"" | |
"http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
<title>menu test</title> | |
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> | |
<script type="text/javascript" charset="utf-8"> |
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
/* | |
* Write a program that estimates the inflation rate for the past year. The program prompts the user for | |
* the current and last year prices of a representative item (e.g., milk, bread, etc.). It then calculates and | |
* prints the inflation rate (as a percent value) by analyzing the price difference. In addition, the program | |
* prints out an estimate, based on the calculated inflation rate, of the price of the item one and two years | |
* hence. Your program should allow the user to repeat the estimation as often as the user wishes. Use | |
* functions to calculate the inflation rate and the price estimation. | |
* | |
*/ |
OlderNewer