Free Ideone API
try it now!
Your great ideas will be born here
Recent public pastes are listed below. You can filter them by the following programming languages:
- view
- All
- Ada
- Assembler
- AWK (gawk)
- AWK (mawk)
- Bash
- bc
- Brainf**k
- C
- C#
- C++
- C99 strict
- CLIPS
- Clojure
- COBOL
- COBOL 85
- Common Lisp (clisp)
- D (dmd)
- Erlang
- F#
- Factor
- Falcon
- Forth
- Fortran
- Go
- Groovy
- Haskell
- Icon
- Intercal
- Java
- JavaScript (rhino)
- JavaScript (spidermonkey)
- Lua
- Nemerle
- Nice
- Nimrod
- Ocaml
- Oz
- Pascal (fpc)
- Pascal (gpc)
- Perl
- Perl 6
- PHP
- Pike
- Prolog (gnu)
- Prolog (swi)
- Python
- Python 3
- R
- Ruby
- Scala
- Scheme (guile)
- Smalltalk
- Tcl
- Text
- Unlambda
- Visual Basic .NET
- Whitespace
-
1 2 3 4 5 6 7 8 9
import math def time(dist,v,n): x=0 dx= dist/n t=0 for i in range(n): x=x+dx dt=dx/v t=t+dt
...
-
1 2 3 4 5 6 7 8 9
program DangerousMath Implicit NONE real :: A, B, x, mu, c integer:: I, k, n = 9 character (10) :: Name A=3 B=(n+3)/5 X=5.75d0 I=3.141959
...
-
1 2 3 4 5 6 7 8 9
program DangerousMath Implicit NONE real :: A, B, x, mu, c integer:: I, k, n = 9 character (10) :: Name A=3 B=(n+3)/5 X=5.75d0 I=3.141959
...
-
1 2 3 4 5 6 7 8 9
import math def time(dist,v,n): x=0 dx= dist/n t=0 for i in range(n): x=x+dx dt=dx/v t=t+dt
-
1 2 3 4 5 6 7 8 9
program DangerousMath Implicit NONE real :: A, B, x, mu, c integer:: I, k, n = 9 character (10) :: Name A=3 B=(n+3)/5 X=5.75d0 I=3.141959
...
-
1
puts "hello world"
-
1 2 3 4 5 6 7 8 9
program DangerousMath Implicit NONE real :: A, B, x, mu, c integer:: I, k, n = 9 character (10) :: Name A=3 B=(n+3)/5 X=5.75d0 I=3.141959
...
-
1 2 3 4 5 6 7 8 9
import math def time(dist,v,n): x=0 dx= dist/n t=0 for i in range(n): x=x+dx dt=dx/v t=t+dt
-
1 2 3 4 5 6 7 8 9
#!/bin/bash # spawn.sh PIDS=$(pidof sh $0) # Process IDs of the various instances of this script. P_array=( $PIDS ) # Put them in an array (why?). echo $PIDS # Show process IDs of parent and child processes. let "instances = ${#P_array[*]} - 1" # Count elements, less 1. # Why subtract 1?
...
-
1 2 3 4 5 6 7 8 9
#!/bin/bash # stupid-script-tricks.sh: Don't try this at home, folks. # From "Stupid Script Tricks," Volume I. dangerous_variable=`cat /boot/vmlinuz` # The compressed Linux kernel itself. echo "string-length of \$dangerous_variable = ${#dangerous_variable}" # string-length of $dangerous_variable = 794151
...
-
1 2 3 4 5 6 7 8 9
#include <iostream> #include <cmath> using namespace std; const double g= 9.8; const double alfa = 0.86; int main () {
...
-
1 2 3 4 5 6 7 8 9
using System; using System.Collections.Generic; class Program { static bool isRound(double d) { return (int)(d * 1000000) == (int)d * 1000000; }
...
-
1 2 3 4 5 6 7 8 9
using System; using System.Collections.Generic; class Program { static bool isRound(double d) { return (int)(d * 1000000) == (int)d * 1000000; }
...
-
1 2 3 4 5 6 7 8 9
using System; using System.Collections.Generic; class Program { static bool isRound(double d) { return (int)(d * 1000000) == (int)d * 1000000; }
...
-
1 2 3 4 5 6 7 8 9
using System; using System.Collections.Generic; class Program { static bool isRound(double d) { return (int)(d * 1000000) == (int)d * 1000000; }
...
-
1 2 3 4 5 6 7 8 9
#!/bin/bash # agram.sh: Playing games with anagrams. # Find anagrams of... LETTERSET=etaoinshrdlu FILTER='.......' # How many letters minimum? # 1234567 anagram "$LETTERSET" | # Find all anagrams of the letterset...
...
-
1 2 3 4 5 6 7 8 9
using System; using System.Collections.Generic; class Program { static bool isRound(double d) { return (int)(d * 1000000) == (int)d * 1000000; }
...
-
1 2 3 4 5 6 7 8 9
using System; using System.Collections.Generic; class Program { static bool isRound(double d) { return (int)(d * 1000000) == (int)d * 1000000; }
...
-
1 2 3 4 5 6 7 8 9
using System; using System.Collections.Generic; class Program { static bool isRound(double d) { return (int)(d * 1000000) == (int)d * 1000000; }
...
-
1 2 3 4 5 6 7 8 9
using System; using System.Collections.Generic; class Program { static bool isRound(double d) { return (int)(d * 1000000) == (int)d * 1000000; }
...
-
1 2 3 4 5 6
>+[>>,----------[>,----------]+++++[<-------->-]<[>>-<]>+[ -<+++++++[<------>-]<[>>-<]>+[ -<<[>>-<]>+[<<->>->]> ]<+++++++[<++++++>-]>> ]<++++++++[<+++++>-]< [<]<[>>[++++++++++.>]++++++++++.[[-]<]]<]
-
1 2 3 4 5 6 7 8 9
using System; using System.Collections.Generic; class Program { static bool isRound(double d) { return (int)(d * 1000000) == (int)d * 1000000; }
...
-
1 2 3 4 5 6 7 8 9
using System; using System.Collections.Generic; class Program { static bool isRound(double d) { return (int)(d * 1000000) == (int)d * 1000000; }
...
-
1 2 3 4 5 6 7 8 9
using System; using System.Collections.Generic; class Program { static bool isRound(double d) { return (int)(d * 1000000) == (int)d * 1000000; }
...
-
1 2 3 4 5
public class Face { public static void main(String[] args) { System.out.println("FFF"); } }
-
1 2 3 4 5 6 7 8 9
#!/bin/bash # horserace.sh: Very simple horserace simulation. # Author: Stefano Palmeri # Used with permission. ################################################################ # Goals of the script: # playing with escape sequences and terminal colors. #
...
-
1 2 3 4 5 6 7 8 9
#!/bin/bash # Draw-box.sh: Drawing a box using ASCII characters. # Script by Stefano Palmeri, with minor editing by document author. # Minor edits suggested by Jim Angstadt. # Used in the ABS Guide with permission. ######################################################################
...
-
1 2 3 4 5 6 7 8
var me = new Object(); me.name = "CA"; me.printName = function() { this.name; } me.printName();
-
1 2 3 4 5 6 7 8
var me = new Object(); me.name = "CA"; me.printName = function() { this.name; } me.printName();
-
1 2 3 4 5 6 7 8 9
class Config(object): rules = { 'server': {'mandatory': True, 'type': str}, 'host': {'mandatory': True, 'type': str}, 'nickname': {'mandatory': True, 'type': str}, 'channels': {'mandatory': True, 'type': list}, 'srv_pass': {'mandatory': False, 'type': str, 'default': ''}, 'port': {'mandatory': False, 'type': int, 'obj_getter': 'as_int', 'default': 6667}, 'ssl': {'mandatory': False, 'type': bool, 'obj_getter': 'as_bool', 'default': False},
...
