Recent public codes are listed below. You can filter them by the following programming languages:
- view
- All
- Ada
- Assembler
- Assembler
- AWK (gawk)
- AWK (mawk)
- Bash
- bc
- Brainf**k
- C
- C#
- C++
- C++0x
- 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
- Objective-C
- Ocaml
- Oz
- Pascal (fpc)
- Pascal (gpc)
- Perl
- Perl 6
- PHP
- Pike
- Prolog (gnu)
- Prolog (swi)
- Python
- Python 3
- R
- Ruby
- Scala
- Scheme (guile)
- Smalltalk
- SQL
- Tcl
- Text
- Unlambda
- VB.NET
- Whitespace
-
1 2 3 4 5 6 7
var count1 = 3, count2 = 5; var sumof1 = 0, sumof2 = 0; var charlist = "BHFE8"; for( i = 0; i < charlist.length; ++i ) { sumof2 += ( charlist.charCodeAt( i ) * count2 ); count2++; } print(sumof2)
-
1 2 3 4 5 6 7 8 9
(function (d) { d.i18n['es-ES'] = { months: { abbr: ["Ene"] }, week: {
...
-
1 2 3 4 5 6 7 8 9
(function (d) { d.i18n['es-ES'] = { months: { abbr: ["Ene"] }, week: {
...
-
1 2 3 4 5 6 7 8 9
(function (d) { d.i18n['es'] = d.i18n['es-ES'] = { months: { abbr: ["Ene"] }, week: {
...
-
1 2 3 4 5 6 7 8 9
(function (d) { d.i18n['es'] = d.i18n['es-ES'] = { months: { abbr: ['Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul', 'Ago', 'Set', 'Oct', 'Nov', 'Dic'], full: ['Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Setiembre', 'Octubre', 'Noviembre', 'Diciembre'] }, days: {
...
-
1 2 3 4 5 6 7 8
(function (d) { d.i18n['es'] = d.i18n['es-ES'] = { formats: "xx" }; })(Date);
-
1 2 3 4 5 6 7 8
(function (d) { d.i18n['es'] = d.i18n['es-ES'] = { }; })(Date);
-
1 2 3 4 5 6 7 8 9
(function (d) { d.i18n['es'] = d.i18n['es-ES'] = { months: { abbr: ['Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul', 'Ago', 'Set', 'Oct', 'Nov', 'Dic'], full: ['Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Setiembre', 'Octubre', 'Noviembre', 'Diciembre'] }, days: {
...
-
1 2 3 4 5 6 7 8 9
(function (d) { d.i18n['es'] = d.i18n['es-ES'] = { months: { abbr: ['Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul', 'Ago', 'Set', 'Oct', 'Nov', 'Dic'], full: ['Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Setiembre', 'Octubre', 'Noviembre', 'Diciembre'] }, days: {
...
-
1 2 3 4 5 6 7 8 9
import java.util.Scanner; class BreakName { public static void main(String[] args) { Scanner keyboard = new Scanner(System.in); System.out.print("Please enter a name: "); String fullName = keyboard.nextLine(); int indexOfFirstSpace = fullName.indexOf(" ");
...
-
1 2 3 4 5 6 7 8 9
(function (d) { d.i18n['es'] = d.i18n['es-ES'] = { months: { abbr: ['Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul', 'Ago', 'Set', 'Oct', 'Nov', 'Dic'], full: ['Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Setiembre', 'Octubre', 'Noviembre', 'Diciembre'] }, days: {
...
-
1 2 3 4 5 6 7 8 9
public class StringTest { public static void main(String[] args) { String greeting = "Hello!"; int len = greeting.length(); System.out.println("Length is " + len); char ch = greeting.charAt(3); System.out.println("Character at position 3 is " + ch);
...
-
1 2 3 4 5 6
#include < stdio.h> int main() { printf("Hello World"); return 0; }
-
1 2 3 4 5 6 7 8 9
/* Inclusión de archivos */ #include <stdio.h> /* Función principal */ int main (int argc,char **argv) { /* Impresión por pantalla y salida del programa*/ printf("Hola mundo\n"); return 0;
-
1 2 3 4 5 6 7 8
<script> $(function(){ $('but').click(function(){ console.log('a'); //$('#obr').laod('load.html'); }); }); </script>
-
1 2 3 4 5 6 7 8
#include <stdio.h> int main() { printf("Hola mundo"); return 0; }
-
1 2 3 4 5 6 7 8
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <link rel="stylesheet" type="text/css" href="temp.css" /> </head>
...
-
1 2 3 4 5 6 7 8 9
<?php $pass = "scifix"; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD cookiesTML 1.0 Transitional//EN" "http://www.w3.org/TR/cookiestml1/DTD/cookiestml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/cookiestml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
...
-
1 2 3 4 5 6 7 8
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <link rel="stylesheet" type="text/css" href="temp.css" /> </head>
...
-
2 days 12 hours ago view (lines: 28, size: 733, inputs: 1) JavaScript (rhino) Runtime error shernandezmartos
1 2 3 4 5 6 7 8 9
<html> <head> <title>Calculadora</title> </head> <body> <script language="javascript"> //Variables a introducir var numero1; var numero2;
...
-
1 2 3 4 5 6 7 8 9
function sortWithFilter (pred, list) { if (!list.length) return []; var head = list.shift(), tail = list; var lesser = tail.filter(function (e) { return e <= head; }); var greeter = tail.filter(function (e) { return e > head; }); return sortWithFilter(pred, lesser).concat(pred(head) ? [head] : []).concat(sortWithFilter(pred, greeter)); } var a = [1,2,3,7,4,1,6,7,4,3,2,-3,-7,123];
...
-
1 2 3 4 5 6 7 8 9
function sortWithFilter (pred, list) { if (!list.length) return []; var head = list.shift(), tail = list; var lesser = tail.filter(function (e) { return e <= head; }); var greeter = tail.filter(function (e) { return e > head; }); return sortWithFilter(pred, lesser).concat(pred(head) ? [head] : []).concat(sortWithFilter(pred, greeter)); } var a = [1,2,3,7,4,1,6,7,4,3,2,-3,-7,123];
...
-
1 2 3 4 5 6 7 8 9
if(!this.JSON){this.JSON={};} (function(){function f(n){return n<10?'0'+n:n;} if(typeof Date.prototype.toJSON!=='function'){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+'-'+ f(this.getUTCMonth()+1)+'-'+ f(this.getUTCDate())+'T'+ f(this.getUTCHours())+':'+ f(this.getUTCMinutes())+':'+ f(this.getUTCSeconds())+'Z':null;};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf();};}
...
-
1 2 3 4
var dateFormat=function(){var token=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,timezone=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,timezoneClip=/[^-+\dA-Z]/g,pad=function(val,len){val=String(val);len=len||2;while(val.length<len)val="0"+val;return val;};return function(date,mask,utc){var dF=dateFormat;if(arguments.length==1&&Object.prototype.toString.call(date)=="[object String]"&&!/\d/.test(date)){mask=date;date=undefined;} date=date?new Date(date):new Date;if(isNaN(date))throw SyntaxError("invalid date");mask=String(dF.masks[mask]||mask||dF.masks["default"]);if(mask.slice(0,4)=="UTC:"){mask=mask.slice(4);utc=true;} var _=utc?"getUTC":"get",d=date[_+"Date"](),D=date[_+"Day"](),m=date[_+"Month"](),y=date[_+"FullYear"](),H=date[_+"Hours"](),M=date[_+"Minutes"](),s=date[_+"Seconds"](),L=date[_+"Milliseconds"](),o=utc?0:date.getTimezoneOffset(),flags={d:d,dd:pad(d),ddd:dF.i18n.dayNames[D],dddd:dF.i18n.dayNames[D+7],m:m+1,mm:pad(m+1),mmm:dF.i18n.monthNames[m],mmmm:dF.i18n.monthNames[m+12],yy:String(y).slice(2),yyyy:y,h:H%12||12,hh:pad(H%12||12),H:H,HH:pad(H),M:M,MM:pad(M),s:s,ss:pad(s),l:pad(L,3),L:pad(L>99?Math.round(L/10):L),t:H<12?"a":"p",tt:H<12?"am":"pm",T:H<12?"A":"P",TT:H<12?"AM":"PM",Z:utc?"UTC":(String(date).match(timezone)||[""]).pop().replace(timezoneClip,""),o:(o>0?"-":"+")+pad(Math.floor(Math.abs(o)/60)*100+Math.abs(o)%60,4),S:["th","st","nd","rd"][d%10>3?0:(d%100-d%10!=10)*d%10]};return mask.replace(token,function($0){return $0 in flags?flags[$0]:$0.slice(1,$0.length-1);});};}();dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};Date.prototype.format=function(mask,utc){return dateFormat(this,mask,utc);};
-
2 days 14 hours ago view (lines: 35, size: 6054, inputs: 1) JavaScript (rhino) Runtime error brucem62
1 2 3 4 5 6 7 8 9
(function($){$.fn.gSwipe=function(options){var element=this;var isTouch='ontouchstart'in window;var start=isTouch?'touchstart':'mousedown';var move=isTouch?'touchmove':'mousemove';var end=isTouch?'touchend':'mouseup';var cancel=isTouch?'touchcancel':'mouseup';var minimalMovePixels,marginInSlides,changeOpacity,opacityValue,useCssTransition,animationSteps,showIndicator,slideFade,beforeSwitch=$.noop;options=options||{} marginInSlides=options.marginInSlides||8;minimalMovePixels=options.minimalMovePixels||50;animationSteps=options.animationSteps||30;if(options.changeOpacity===undefined){changeOpacity=true;}else{changeOpacity=options.changeOpacity;} if(options.useCssTransition===undefined){useCssTransition=false;}else{useCssTransition=options.useCssTransition;} if(options.showIndicator===undefined){showIndicator=true;}else{showIndicator=options.showIndicator;} if(options.opacityValue===undefined){opacityValue=0.86;}else{opacityValue=options.opacityValue;} if(options.slideFade===undefined){slideFade=false;}else{slideFade=options.slideFade;} if('beforeSwitch'in options){beforeSwitch=options.beforeSwitch;} var Slides=function(){var currentSlideIndex=0;var slides=element.children('.slide');var slidesCount=slides.length;this.index=function(){return currentSlideIndex;}
...
-
1
-
1
-
1 2 3 4
var arr = []; alert(arr.length); arr[5] = 5; alert(arr.length);
-
1 2 3 4
var arr = []; console.log(arr.length); arr[5] = 5; console.log(arr.length);
-
1 2 3 4 5 6 7 8 9
importPackage(java.io); importPackage(java.lang); var reader = new BufferedReader( new InputStreamReader(System['in']) ); while (true){ var line = reader.readLine(); if (line==null || line=="42") { break;
...


