Search results

  1. fukurou

    regex example

    func extractEmailAddrIn(text: String) -> [String] { var results = [String]() let emailRegex = "[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,6}" let nsText = text as NSString do { let regExp = try NSRegularExpression(pattern: emailRegex, options: .caseInsensitive)...
  2. fukurou

    get future / past time

    func getFutureInXMin(extra_minutes: Int) -> String { // '''This method returns the date in x minutes''' if extra_minutes > 1440 {return "hmm"} let nowSum = getHoursAsInt()*60 + getMinutesAsInt() var dif = nowSum + extra_minutes if dif > 1440...
  3. fukurou

    remaining issues

    let playGround = PlayGround() print(playGround.getCurrentTimeStamp()) // at 6:09 the output was 6:9, it should be 6:09 print(playGround.getFutureInXMin(extra_minutes: 60)) // shows minutes + 60 instead of the time in 60 minutes print("getPastInXMin") print(playGround.getPastInXMin(less_minutes...
  4. fukurou

    errors / issues

    //playground class test let playGround = PlayGround() print(playGround.getCurrentTimeStamp()) print(playGround.getSpecificTime(time_variable: enumTimes.day)) print(playGround.getMonthAsInt()) print(playGround.getHoursAsInt()) print(playGround.getFutureInXMin(extra_minutes: 10)) // errors when...
  5. fukurou

    🐍 python regex util class

    ''' REGEXUTIL CLASS''' # returns expression of type theRegex from the string str2Check class RegexUtil: def regexChecker(self, theRegex: str, str2Check: str) -> str: regexMatcher = re.search(theRegex, str2Check) if (regexMatcher != None): return...
  6. fukurou

    🐍 python playground class

    # the PlayGround cls is not a core class but very useful class enumTimes(Enum): DATE = auto() DAY = auto() YEAR = auto() HOUR = auto() MINUTES = auto() SECONDS = auto() class PlayGround: def __init__(self): self.week_days = {1: 'sunday'...
  7. fukurou

    current progress LG python to swift

    // // LivinGrimoire.swift // LivinGrimoireSwiftV1 // // Created by fuki barski on 21/06/2022. // import Foundation class AbsDictionaryDB{ func save(key:String, value: String){ // save to DB (override me) } func load(key:String)->String{ // override me...
  8. fukurou

    🏕️offgrid in comfort

  9. fukurou

    🎮gaming nintendo switch megathread

    transfer user from old to new switch
  10. fukurou

    rumour booster redout 2

  11. fukurou

    🥐 pastry orange cake

    3 eggs-> separate foam whites, add baking powder add yellows gradually 1.5 cup flower, mix gradually add 1.5 cup orange juice add 2 cups oil bake in an oiled mold on 175 c degrees for bout 15 minutes
  12. fukurou

    🐦swift Left side of mutating operator isn't mutable: 'self' is immutable

    struct Person { // define two properties var name = "" var age = 0 func birthday(){ age += 1 } } // create instance of Person var person1 = Person() birthday attempts to change the struct from within the struct so you need to add the prefix mutating : struct Person {...
  13. fukurou

    hologram tech

  14. fukurou

    random numbers

    https://www.khanacademy.org/computing/computer-science/cryptography/crypt/v/random-vs-pseudorandom-number-generators
  15. fukurou

    How to Record Screen With Audio on MacBook

  16. fukurou

    🐦swift swift grimoire

  17. fukurou

    Learn How To Use iMovie In 5 Minutes

  18. fukurou

    🐦swift xcode how to set an image views picture

    using image literal to set the image views picture is a blatant lie all it does is error you need this code : import UIKit class ViewController: UIViewController { @IBOutlet weak var imgDice1: UIImageView! override func viewDidLoad() { super.viewDidLoad() // Do any...
Top