This file contains hidden or 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
import "package:flutter/material.dart"; | |
class MainScreen extends StatefulWidget { | |
@override | |
State<MainScreen> createState() => _MainScreenState(); | |
} | |
class _MainScreenState extends State<MainScreen> { | |
TextEditingController input_controller = TextEditingController(); | |
var input_value = ""; |
This file contains hidden or 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
0x315C7439Fdb8c2934860C2Ac978382f0DD38B64e |
This file contains hidden or 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
"""Substitution cypher, Ceasar's Cipher""" | |
from __future__ import print_function | |
import sys | |
MIN = 97 | |
MAX = 122 | |
def encode(text, n): | |
"""Encode the text. |
This file contains hidden or 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 find_match(keys_file, values_file, user_input): | |
keys = [] | |
values = [] | |
with open(keys_file) as k_handler, open(values_file) as v_handler: | |
keys = [line.rstrip('\n') for line in k_handler] | |
values = [line.rstrip('\n') for line in v_handler] | |
is_found = False | |
if keys and values: | |
try: | |
# insure keys are lowercase. |
This file contains hidden or 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
from collections import Counter | |
import random | |
def base_strategy(): | |
return random.randrange(1, 10) | |
def computer_strategy(scores, player_answers, computer_answers, |
This file contains hidden or 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
# Python 3.4 | |
# Author: Mahan Marwat | |
from itertools import combinations | |
items = {'Clock': [175, 10], | |
'Painting': [90, 9], | |
'Radio': [20, 4], | |
'Vase': [50, 2], | |
'Book': [10, 1], |
This file contains hidden or 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
""" | |
"42","deleted","9bd4d2724d163588e2ab6460ec111c63","deleted","deleted","1","someone@server.com","TZ851BASC9J5543U15T34Z","6eb8977fa505b44099017213d8f3714fd38a7816","0","0","deleted","7c5494c5f4203654","1385366270","1401585007","0","0",NULL | |
hash_ # 2 | |
salt # 12 | |
How it works: | |
There is a file in which there is users data. In this user data all of the | |
information is present to get a password. i.e pass hash, salt etc look to | |
the abouve line. |