Skip to content

Instantly share code, notes, and snippets.

AlexMikhalev

Block or report user

Report or block AlexMikhalev

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View python_dominator_codility.py
from collections import defaultdict
from operator import itemgetter
def solution(A):
# write your code in Python 2.7
appearances = defaultdict(int)
N=len(A)
for each_key in A:
@AlexMikhalev
AlexMikhalev / dht_test.ino
Last active Aug 29, 2015
DHT22 Sketch for Pinoccio Scout
View dht_test.ino
// Working DHT 22 sketch for Pinoccio
#include <SPI.h>
#include <Wire.h>
#include <Scout.h>
#include <Shell.h>
#include <GS.h>
#include <bitlash.h>
#include <lwm.h>
#include <js0n.h>
View Sum of sum of ....py
summa = 0
for A in S:
for P in A.PS:
summa += P.N
-----------------
summa = sum([P.N for A in S for P in A.PS])
View mysql today
SELECT * FROM myTable WHERE DATE(myDate) = DATE(NOW())
You can’t perform that action at this time.