What do you want to save?
Add Code snippet
New code examples
-
Python 2021-11-07 09:29:20
regular expression cheatsheet
Regular Expression FUll Cheatsheet (For quick look) :) note: for downloading visit https://buggyprogrammer.com/regular-expression-cheatsheet/ ------x-------------------x----------------x------------x----------------x------------- # -------------- Anchors... Add solution -
Python 2021-10-29 11:52:23
pynput windwos key
from pynput.keyboard import Key, Controller keyboard = Controller() keyboard.press(Key.space) keyboard.release(Key.space) keyboard.press('a') keyboard.release('a') # Type two upper case As keyboard.press('A') keyboard.release('A') with keyboard.pressed... Add solution -
Javascript 2021-10-26 15:35:11
angular9 spy
it("should be able to upper case a string", function () { var spytoUpperCase = spyOn(String.prototype, 'toUpperCase') expect(utils.toUpperCase).toBeDefined(); expect(utils.toUpperCase("hello world")).toEqual("HELLO WORLD")... Add solution -
Other 2021-10-23 15:56:11
RegExp validation for password explained
r'^ (?=.*[A-Z]) // should contain at least one upper case (?=.*[a-z]) // should contain at least one lower case (?=.*?[0-9]) // should contain at least one digit (?=.*?[!@#\$&*~]) // should contain at least one Special charact... Add solution -
Java 2021-10-08 16:07:08
string code
// Java code to illustrate different constructors and methods // String class. import java.io.*; import java.util.*; class Test { public static void main (String[] args) { String s= "GeeksforGeeks"; // or String s= new String ("Geeks... Add solution -
Other 2021-09-30 18:49:02
Simple dictionary in Python
import string # Edited by Sadman Sakib dic = {'greet': 'something that you say or do to greet somebody', 'sleep': ' [intransitive] to rest with your eyes closed and your mind and body not active', 'morning': 'The early part of the day from... Add solution -
Javascript 2021-09-15 19:30:04
alphabet array
const alphabet = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q"... Add solution -
Python 2021-09-14 12:52:03
how to find if user input is lower case or upper case in python
lower_case_items = "abcdefghijklmnopqrstuvwxyz" char = "B" if char in lower_case_items: print("This item is lower case") else: print("This item is Upper case item") Add solution