Skip to content

Instantly share code, notes, and snippets.

#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()
#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;
@Blank1611
Blank1611 / jenkins-decrypt.py
Created April 28, 2020 11:41 — forked from menski/jenkins-decrypt.py
Decrypt jenkins password hashes
#!/usr/bin/env python3
# original: https://raw.githubusercontent.com/tweksteen/jenkins-decrypt/master/decrypt.py
# requires: pycrypto
import re
import sys
import base64
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)):
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#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)
# -*- coding: utf-8 -*-
"""
Created on Tue Jun 18 11:43:36 2019
@author: GRENTOR
"""
import re
pos = [10,10]
init_direct = 'N'
flag = True
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 ")