Skip to content

Instantly share code, notes, and snippets.

View vtemian's full-sized avatar
🚀
-

Vlad Temian vtemian

🚀
-
View GitHub Profile
@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()
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
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include <climits>
using namespace std;
int max(int a, int b) {
### 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:
@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 ASAc6Y4MnXvkiu9f_ao8gZJIqaPXuN1RRoQkbEnMuH18GAo

To claim this, I am signing this object: