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> | |
<head> | |
<title>HTML Layout</title> | |
<style> | |
* { | |
box-sizing: border-box; | |
} | |
body { |
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
Un element HTML este definit printr-un: | |
START TAG - content - END TAG | |
start content end tag | |
<h1 attributes> my first heading </h1> | |
<p> my first p </p> |
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
$\int{f(x) g'(x) \ dx} = fg - \int{ g(x) f'(x) \ dx}$ | |
$\int{cos^2x \ dx} = \int{cos \ x \ cos \ x \ dx} = \int{cos \ x \ (sin \ x)' \ dx} = cos \ x \ sin \ x - \int{sin \ x \ (cos \ x)' \ dx} = cos \ x \ sin \ x - \int{sin \ x \ sin \ x \ dx} = cos \ x \ sin \ x - \int{sin^2 \ x \ dx} = sin\ x \ cos \ x + \int{sin^2 \ x \ dx} = sin\ x \ cos \ x + \int{ (1 - cos^2 \ x) \ x \ dx} = sin\ x \ cos \ x + \int{ 1 \ dx} - \int{ cos^2 \ x \ dx} = sin\ x \ cos \ x + x - \int{ cos^2 \ x \ dx} => \int \cos ^2x\,dx=\frac{x+\sin x\cos x}{2}+C. $ |
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
def hexaGCD( x, y, z): | |
def pow2(a,b): | |
p = 1 | |
for i in range(1,b+1): | |
p = p * a | |
return p |
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
#include <stdio.h> | |
#include <malloc.h> | |
#define fin "algsort.in" | |
typedef int (*ptr2)(const int a,const int b); | |
typedef void (*ptr1)(int*, int, ptr2); | |
int comp(int a, int b) { |
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
# | |
# Square Root Babylonian Method | |
# @Adrian Statescu | |
# | |
def sqrt_babylonian(n): | |
x = n | |
y = 1.0 | |
eps = 0.000001 | |
while x - y > eps: | |
x = (x + y) / 2 |
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
# | |
# Square Root Babylonian Method | |
# @Adrian Statescu | |
# | |
def sqrt_babylonian(n) | |
x = n | |
y = 1.0 | |
e = 0.000001 | |
while x - y > e | |
x = (x + y) / 2 |
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
#include <stdio.h> | |
#include <malloc.h> | |
typedef struct Node { | |
int data; | |
struct Node *next; | |
} Node; | |
Node *head = NULL; |
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
def make_bold(f): | |
def bold_wrapper(): | |
return "<b>" + f() +"</b>" | |
return bold_wrapper | |
def make_italic(f): | |
def italic_wrapper(): | |
return "<i>" + f() + "</i>" | |
return italic_wrapper |
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
from time import sleep | |
from sys import stdout | |
def printt(string, delay = 0.05): | |
for c in string: | |
stdout.write(c) | |
stdout.flush() | |
sleep(delay) | |
print("") |
NewerOlder