cmd
func add(a, b int) int {
return a + b
}
add(1, 2)
All generations.
func add(a, b int) int {
return a + b
}
add(1, 2)
def what(x):
if x == 1:
return "Wow!"
else:
return "what!"
what(1)
def activacion(x):
return 1 / (1 + np.exp(-x))
function add(a, b) {
return a + b
}
add(1,2)
bool TracPhone(int x1, int y1, int x2, int y2) {
int distancia = sqrt((x2-x1)^2 + (y2-y1)^2);
return distancia < 10;
}
void print_hello() {
cout << "hello world"
}
function verCodigo () {
let codigo = document.getElementsByClassName("hljs")[0].innerText;
let win = window.open("", "_blank", "toolbar=yes,scrollbars=yes,resizable=yes,top=500,left=500,width=400,height=400");
win.document.write(`<html><head><title>Codigo</title><style>${css}</style></head><body>${codigo}</body></html>`);
}
alert('hello')
func greet(person: String) -> String {
let greeting = "Hello, " + person + "!"
return greeting
}
print(greet(person: "Anna"))
// Prints "Hello, Anna!"
print(greet(person: "Brian"))
// Prints "Hello, Brian!"
void swap(int &a, int &b) {
int temp = a;
a = b;
b = temp;
}
def cmd(cmd):
return subprocess.run(cmd, shell=True)
def windows_for_android(displsy_name, file_name):
print("[%s]" % display_name)
print("full=%s" % file_name)
print("")
def say_hello():
print('Hello')
say_hello()
def sigmoid(x):
return 1/(1+np.exp(-x))
function greet(name){
return "hello " + name
}
greet('Tina')
def armarUnRompeCabeza(a:Int, b:Int): Int = {
a + b
}
armarUnRompeCabeza(1, 2)
def activacion(a):
return 1/(1 + np.exp(-a))
String cmdStr(String cmd) {
var result = Process.runSync(cmd, []);
if (result.exitCode != 0) {
print(result.stdout);
print(result.stderr);
throw new Exception(result.stderr);
}
return result.stdout;
}
int almacenamiento() {
int n1,n2,n3;
cout<<"Ingrese el primer numero: ";
cin>>n1;
cout<<"Ingrese el segundo numero: ";
cin>>n2;
cout<<"Ingrese el tercer numero: ";
cin>>n3;
return n1,n2,n3;
}
almacenamiento()
const almacenamiento = (string) => {
let array: string[] = string.split(' ');
let result: number = 0;
for (let i = 0; i < array.length; i++) {
result += array[1].length;
}
return result;
}
function almacenamiento(a, b, c){
var almacen = [...a, ...b, ...c]
return almacen;
}
almacenamiento(["a", "b", "c"], [1, 2, 3], ["do", "re", "mi"])
def ver_codigo_fuente(url):
import urllib.request
resp = urllib.request.urlopen(url)
page = resp.read()
print(page)
ver_codigo_fuente('http://www.google.com')
def add(a, b):
print("a + b =", a + b)
function driver(person: { age: number, name: string }) {
if (person.age > 18) {
return `drive`;
} else {
return `not drive`;
}
}
let driverStatus = driver({ age: 19, name: 'mosh' });
double activation(double x, double threshold)
{
double result;
if (x > threshold)
result = 1;
else
result = 0;
return result;
}
activation(1, 2.1)
def wsl(a,b):
return a + b
wsl(10, 20)
Generate
More than just a code generator. A tool that helps you with a wide range of tasks. All in one place.
Function from Description
Text Description to SQL Command
Translate Languages
Generate HTML from Description
Code to Explanation
Fix invalid Code
Get Test for Code
Class from Description
Regex from Description
Regex to Explanation
Git Command from Description
Linux Command
Function from Docstring
Add typing to code
Get Language from Code
Time complexity
CSS from Description
Meta Tags from Description