[ create a new paste ] login | about

bot42

Name: abhi
Email:
Site/Blog: http://www.42as.wordpress.com
Location: 3rd rock from the sun
Default language: Python
Favorite languages: c++,python
About: all your base are belong to us .

Saved pastes by bot42:

C++, pasted on Dec 17:
1
2
3
4
5
#include<iostream>
int main()
{

for(int i=0;i<6;i++)
...
view (42 lines, 10 lines of output)
Plain Text, pasted on Dec 16:
1
<a href="http://github.com/abhish3k/PySearch">PySearch</a>
view (1 line)
Python, pasted on Dec 11:
1
2
3
4
5
def get_page(url):
    try:
        import urllib
        import urllib.urlopen(url).read()
    except():
...
view (6 lines, 4 lines of output)
C, pasted on Nov 14:
1
int main(){}
view (1 line)
C, pasted on Nov 12:
1
2
3
4
5
#include<stdlib.h>
int main()
{
char ch;
scanf("%c",ch);
...
view (19 lines, 2 lines of output)
C, pasted on Nov 12:
1
2
3
4
5
#include<stdlib.h>
int main()
{
int x=rand();
printf("%d",x);
...
view (7 lines, 1 line of output)
C, pasted on Nov 12:
1
2
3
4
5
#include<stdio.h>
int main()
{
if(0)
printf("0 \n");
...
view (9 lines, 1 line of output)
C, pasted on Nov 12:
1
2
3
4
5
#include <stdio.h>

int main()
{
    int this_is_a_number=42;
...
view (12 lines, 2 lines of output)
Plain Text, pasted on Nov 1:
1
2
3
4
5
Below is the transcript of the talk of Dr. Richard Teo, who is a 40-year-old millionaire and cosmetic surgeon with a stage-4 lung cancer but selflessly
came to share with the D1 class his life experience on 19-Jan-2012.

Hi good morning to all of you. My voice is a bit hoarse, so please bear with me. I thought I'll just introduce myself. My name is Richard, I'm a medical doctor. And I thought I'll just share some thoughts of my life. It's my pleasure to be invited by prof. Hopefully, it can get you thinking about how... as you pursue this.. embarking on your training to become dental surgeons, to think about other things as well.

...
view (58 lines)
Python, pasted on Oct 21:
1
2
3
4
5
import string
def getAvailableLetters(lettersGuessed):
    '''
    lettersGuessed: list, what letters have been guessed so far
    returns: string, comprised of letters that represents what letters have not
...
view (16 lines, 1 line of output)
Python, pasted on Oct 21:
1
2
3
4
5
def computeRoot(poly, x_0, epsilon):
    ctr=-1
    y=0
    dy=42
    epsilon=abs(epsilon)
...
view (19 lines, 16 lines of output)
Python, pasted on Oct 21:
1
2
3
4
5
ctr=0
def computeRoot(poly, x_0, epsilon):
    ctr=0
    y=42
    while not(abs(y)<=abs(epsilon)):
...
view (13 lines)
Python, pasted on Oct 21:
1
2
3
4
5
def evaluatePoly(poly,x):
    y=0
    for thing in range(len(poly)):
        y+=poly[thing]*(x**thing)
    print y
...
view (7 lines)
Python, pasted on Oct 8:
1
2
3
4
5
def calc(bal,a):
    b=bal
    i=0
    m=b/12
    min=b/12
...
view (21 lines, 1 line of output)
Plain Text, pasted on Oct 5:
1
2
3
4
5
Python 2.7.3 |EPD_free 7.3-2 (32-bit)| (default, Apr 12 2012, 14:30:37) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> # this is a comment , you can write gibberish here lyk de@#$@D@#R@DF^^
>>> #no error is generated for comments as this is never compiled
>>> a=4
...
view (43 lines)