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
Vagrant.configure("2") do |config| | |
config.proxy.http = "http://proxy.iiit.ac.in:8080" | |
config.proxy.https = "https://proxy.iiit.ac.in:8080" | |
config.proxy.no_proxy = "localhost,127.0.0.1" | |
config.vm.box = "hashicorp/precise64" | |
config.vm.network "forwarded_port", guest: 8888, host: 8888 | |
config.vm.network "forwarded_port", guest: 8000, host: 8000 | |
config.vm.network "forwarded_port", guest: 15672, host: 15672 | |
config.vm.network "forwarded_port", guest: 3305, host: 3305 | |
config.vm.provision "docker" do |d| |
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
Bringing machine 'default' up with 'virtualbox' provider... | |
==> default: Importing base box 'hashicorp/precise64'... | |
==> default: Matching MAC address for NAT networking... | |
==> default: Checking if box 'hashicorp/precise64' is up to date... | |
==> default: Setting the name of the VM: tupperware_default_1424179928491_24513 | |
==> default: Clearing any previously set network interfaces... | |
==> default: Preparing network interfaces based on configuration... | |
default: Adapter 1: nat | |
==> default: Forwarding ports... | |
default: 8888 => 8888 (adapter 1) |
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
Vagrant.configure("2") do |config| | |
config.proxy.http = "http://proxy.iiit.ac.in:8080" | |
config.proxy.https = "http://proxy.iiit.ac.in:8080" | |
config.proxy.no_proxy = "localhost,127.0.0.1,/var/run/docker.sock" | |
config.vm.box = "hashicorp/precise64" | |
config.vm.network "forwarded_port", guest: 8888, host: 8888 | |
config.vm.network "forwarded_port", guest: 8000, host: 8000 | |
config.vm.network "forwarded_port", guest: 15672, host: 15672 | |
config.vm.network "forwarded_port", guest: 3305, host: 3305 | |
config.vm.provision "docker" do |d| |
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
http_proxy=http://proxy.iiit.ac.in:8080/ | |
ftp_proxy=ftp://proxy.iiit.ac.in:8080/ | |
socks_proxy=socks://proxy.iiit.ac.in:8080/ | |
https_proxy=https://proxy.iiit.ac.in:8080/ | |
no_proxy=/var/run/docker.sock |
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 ubuntu:precise | |
MAINTAINER John Zeller <johnlzeller@gmail.com> | |
#Setting the environment variables for proxy | |
ENV http_proxy 'http://10.4.8.204:8080/' | |
ENV https_proxy 'https://10.4.8.204:8080/' | |
ENV HTTP_PROXY 'http://10.4.8.204:8080/' | |
ENV HTTPS_PROXY 'https://10.4.8.204:8080/' | |
# Install base dependencies |
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
[ui] | |
username = Kartik Gupta <kartikgupta0909@gmail.com> | |
[diff] | |
git = 1 | |
unified = 8 | |
showfunc = true | |
[defaults] | |
qnew = -Ue |
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 ubuntu:precise | |
MAINTAINER John Zeller <johnlzeller@gmail.com> | |
#Setting the environment variables for proxy | |
ENV http_proxy 'http://10.4.8.204:8080/' | |
ENV https_proxy 'https://10.4.8.204:8080/' | |
ENV HTTP_PROXY 'http://10.4.8.204:8080/' | |
ENV HTTPS_PROXY 'https://10.4.8.204:8080/' | |
# Install base dependencies | |
RUN apt-get -q update |
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 http_response(self, request, response): | |
23 if response.code == 302: | |
24 return response | |
25 return urllib2.HTTPErrorProcessor.http_response(self, request, response) |
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
struct tuple{ | |
float alpha; | |
float beta; | |
}; | |
tuple get_normal(float x,float y) | |
{ | |
float distance1 = sqrt(pow((50-x),2)+pow((50-y)),2); | |
tuple angles; | |
if(distance1<25.1) | |
{ |
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
['-', '-', '-', '-', '-', '-', '-', '-', '-'] | |
Traceback (most recent call last): | |
File "new.py", line 51, in <module> | |
newBoard['board'][1][2] = 'x' | |
TypeError: 'str' object does not support item assignment |
OlderNewer