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
using System; //Declaración | |
namespace UsingTest.Test | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.Write("Console output: "); | |
Console.WriteLine(DateTime.Now); |
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
.method private hidebysig static void Main(string[] args) cil managed | |
{ | |
.entrypoint | |
// Code size 19 (0x13) | |
.maxstack 8 | |
IL_0000: nop | |
IL_0001: ldsfld string UsingTest.DateTime::Now | |
IL_0006: call void [mscorlib]System.Console::WriteLine(string) | |
IL_000b: nop | |
IL_000c: call valuetype [mscorlib]System.ConsoleKeyInfo [mscorlib]System.Console::ReadKey() |
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
namespace UsingTest.Test | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
System.Console.WriteLine(System.DateTime.Now); | |
System.Console.ReadKey(); | |
} |
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
s = [] | |
for x in range(1,1000): | |
if x % 5 == 0 or x % 3 == 0: | |
s.append(x) | |
print sum(s) |
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
array=[0,1] | |
sum = 0 | |
fib=0 | |
while (fib <= 4000000): | |
if(fib%2): | |
sum += fib | |
fib = array[1] | |
array[1] += array[0] |
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
context.beginPath(); | |
for (var x = xstart; x < width; x++) { | |
xreal = (x / (xorigin)) - x0, | |
yreal = height - ((f(xreal) - y0) * _yscale); | |
context.lineTo(xreal, yreal); | |
} |
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
for (var x = xstart; x < width; x++) { | |
xreal = (x / (xorigin)) - x0, | |
yreal = height - ((f(xreal) - y0) * _yscale); | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head></head> | |
<body> | |
<canvas id="canvas-example" height="300px" width="500px"> | |
Your browser doesn't support canvas | |
</canvas> | |
</body> | |
</html> |
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
(function(){ | |
var canvas = document.getElementById("canvas-example"); | |
if (canvas.getContext) { | |
context = canvas.getContext('2d'); | |
} | |
}()); |
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
var xExists = [0, 2*Math.PI], | |
f = function(x) { | |
return 3*Math.sin(x) * Math.cos(x)/2; | |
}; | |
plot(f, xExists); |