Skip to content

Instantly share code, notes, and snippets.

View vtemian's full-sized avatar
🚀
-

Vlad Temian vtemian

🚀
-
View GitHub Profile

Keybase proof

I hereby claim:

  • I am vtemian on github.
  • I am vtemian (https://keybase.io/vtemian) on keybase.
  • I have a public key ASAc6Y4MnXvkiu9f_ao8gZJIqaPXuN1RRoQkbEnMuH18GAo

To claim this, I am signing this object:

@vtemian
vtemian / functional_example.py
Last active August 31, 2017 17:25
Functional
def sum_squared_array(a):
for index in range(len(a)):
a[index] = a[index] * a[index]
for index in range(len(a)):
total_not_functional += a[index]
total_not_functional = 0
sum_squared_array([1, 2, 3, 4])
### Keybase proof
I hereby claim:
* I am vtemian on github.
* I am vtemian (https://keybase.io/vtemian) on keybase.
* I have a public key whose fingerprint is FE7A A3BA BCC8 BC5D 2DBF 989E BC66 E7D4 4F67 F711
To claim this, I am signing this object:
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include <climits>
using namespace std;
int max(int a, int b) {
Bună ziua,
Dorim să vă reamintim că pe data de 1 august, ora 00:00, vom face o clonă a surselor înscrise,
urmând ca pe baza clonei respective să vă fie jurizat proiectul.
Deasemenea, dorim să vă aducem aminte de faptul că lucrăriile trebuie să fie
@vtemian
vtemian / gotcha.py
Created May 4, 2015 15:58
Python gotcha
# mutable list
def foobar(arg_string="abc", arg_list=[]):
print arg_string, arg_list
arg_string = arg_string + "xyz"
arg_list.append("F")
for i in range(4):
foobar()
@vtemian
vtemian / mutable.py
Created May 4, 2015 15:53
simple mutable
def foobar(arg_string="abc", arg_list=[]):
print arg_string, arg_list
arg_string = arg_string + "xyz"
arg_list.append("F")
for i in range(4):
foobar()
<html>
<head>
<script src="http://code.jquery.com/jquery-1.11.2.js"></script>
</head>
<script>
$.get("https://api.github.com/repos/vmg/redcarpet/issues?state=closed", function(data) {
for(i in data){
console.log(data[i])
}
})
### Keybase proof
I hereby claim:
* I am vtemian on github.
* I am vtemian (https://keybase.io/vtemian) on keybase.
* I have a public key whose fingerprint is DA32 CAC3 056F 9659 99DF 05F6 DF51 99B0 5A31 0386
To claim this, I am signing this object:
### Keybase proof
I hereby claim:
* I am vtemian on github.
* I am vtemian (https://keybase.io/vtemian) on keybase.
* I have a public key whose fingerprint is DA32 CAC3 056F 9659 99DF 05F6 DF51 99B0 5A31 0386
To claim this, I am signing this object: