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 <SoftwareSerial.h> | |
#define FLOAT_SENSOR 4 // the number of the float sensor | |
//#define FLOAT_SENSORE 3 | |
//#define LED 13 // the number of the LED pin | |
SoftwareSerial mySerial(11, 9); //gsm pin | |
unsigned char flag = false; //flag for checking and alternating condition, false for empty and true for full | |
void setup() |
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 <SoftwareSerial.h> | |
SoftwareSerial mySerial(3, 2); | |
//f for full(green) led, e for empty(red) led | |
const int tank_1f = 3; // tank_1f is for tank 1 full led | |
const int tank_1e = 2; // tank_1e is for tank 1 empty led | |
const int tank_2f = 5; | |
const int tank_2e = 4; |
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
#!/usr/bin/env python3 | |
# original: https://raw.githubusercontent.com/tweksteen/jenkins-decrypt/master/decrypt.py | |
# requires: pycrypto | |
import re | |
import sys | |
import base64 |
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 match_skill(sb_lst): | |
loc_count = 0 | |
for i in range(1,len(sb_lst)): | |
set_diff = set(sb_lst[0]).difference(sb_lst[i]) | |
print("set_diff: ", set_diff) | |
sym_diff = set(sb_lst[0]).symmetric_difference(sb_lst[i]) | |
print("sym_diff: ", sym_diff) | |
if ((len(set_diff) == 0) and (set_diff != sym_diff)) or ((len(set_diff) > 0) and (set_diff == sym_diff)): |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#Phonebook | |
from IPython.display import clear_output | |
contacts = {} | |
def printf(thid): | |
if len(contacts) == 0: | |
print("Empty list") | |
else: | |
for key,pair in thid.items(): | |
print(key,":",pair) | |
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
# -*- coding: utf-8 -*- | |
""" | |
Created on Tue Jun 18 11:43:36 2019 | |
@author: GRENTOR | |
""" | |
import re | |
pos = [10,10] | |
init_direct = 'N' | |
flag = True |
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
print(' Welcome to the nikils Tic Tac Toe' ) | |
while True: | |
board = [' ']* 10 | |
player1_marker,player2_marker = player_input() | |
turn = choose_first() | |
print( turn + " Will be playing first ") | |