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
<!-- EL GRAN HERMANO TE VIGILA --> | |
<? | |
include('funciones.php'); | |
include('db.php'); | |
arriba(); ?> | |
<h1>Novedades</h1> | |
<p class="indent">Un duendecillo con vistosos atuendos se te pone delante volando y empieza a contarte todas las novedades de la semana...</p> | |
<? | |
$dia=date("d"); | |
$mes=date("m"); |
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
public class Reinas { | |
public static int reinas(int n) { | |
int cont = 0; | |
for (int i=0; i<n; i++) { | |
List<Integer> lista = new ArrayList<Integer>(); | |
lista.add(i); | |
cont += reinas(n, lista); | |
} |
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
import java.util.*; | |
public class Reinas { | |
public static int reinas(int n) { | |
int cont = 0; | |
for (int i=0; i<n; i++) { | |
ArrayList<Integer> lista = new ArrayList<Integer>(); | |
lista.add(i); |
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
// Copyright 2010 The Go Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style | |
// license that can be found in the LICENSE file. | |
package main | |
import ( | |
"bytes" | |
"flag" | |
"io/ioutil" |
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
// Like the fadeTo from jQuery, but doesn't wait until the previous | |
// animation is over. | |
var fadeTo = (function() { | |
var fadingStep = 13; | |
return function(jqSel, time, toOpacity) { | |
jqSel.each(function(i, elem) { | |
if (elem.fadingState != null) { | |
clearInterval(elem.fadingState.interval); | |
} |
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
Index: src/stl_logging_unittest.cc | |
=================================================================== | |
--- src/stl_logging_unittest.cc (revision 136) | |
+++ src/stl_logging_unittest.cc (working copy) | |
@@ -31,17 +31,20 @@ | |
#ifdef HAVE_USING_OPERATOR | |
-#ifdef __GNUC__ | |
+#include <iostream> |
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
The 'go test' command expects to find test, benchmark, and example functions | |
in the "*_test.go" files corresponding to the package under test. | |
A test function is one named TestXXX (where XXX is any alphanumeric string | |
not starting with a lower case letter) and should have the signature, | |
func TestXXX(t *testing.T) { ... } | |
A benchmark function is one named BenchmarkXXX and should have the signature, |
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
# If you run this program: | |
def fibo(n): | |
print '>>' | |
ret = 1 if n == 0 or n == 1 else fibo(n - 1) + fibo(n - 2) | |
print "Got %d, returning %d." % (n, ret) | |
print '<<' | |
return ret | |
fibo(5) |
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
package main | |
import ( | |
"fmt" | |
"unsafe" | |
) | |
// data Shape a = Circle { radius :: a } | Rect { base :: a, height :: a} | Together { left :: Shape a, right :: Shape a } | |
type ID_shape_float64 struct { | |
TAG int // Can be 0 (circle), 1 (rect), or 2 (together) |
OlderNewer