Skip to content

Instantly share code, notes, and snippets.

import UIKit
var input =
"""
1
2
-3
3
-2
0
import UIKit
var input =
"""
2,2,2
1,2,2
3,2,2
2,1,2
2,3,2
2,2,1
import UIKit
var input =
"""
2,2,2
1,2,2
3,2,2
2,1,2
2,3,2
2,2,1
import Foundation
var input = """
Sabqponm
abcryxxl
accszExk
acctuvwj
abdefghi
"""
@z3bi
z3bi / ContentView.swift
Created April 1, 2020 21:23
Adhan in SwitUI
//
// ContentView.swift
// TimeToPray
//
// Created by Ameir Al-Zoubi on 3/31/20.
// Copyright © 2020 ameir. All rights reserved.
//
import SwiftUI
import Adhan
#include "clueboard2.h"
#ifdef ENABLE_RGBLIGHT
#include "rgblight.h"
#endif
// Used for SHIFT_ESC
#define MODS_CTRL_MASK (MOD_BIT(KC_LSHIFT)|MOD_BIT(KC_RSHIFT))
// Each layer gets a name for readability, which is then used in the keymap matrix below.
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
let user = User()
let name1 = Name()
name1.first = "bob"
@z3bi
z3bi / MWC
Created September 4, 2014 04:45
Moonsighting Committee Worldwide Method
11.0 FUNCTIONS OF LATITUDE AND SEASONS FOR FAJR AND ISHA
In the calculations shown here, “abs” means absolute value.
“LT” means latitude in degrees (+ for North and – for South).
“DYY” means day number of the year: For Northern Hemisphere start from December 21 (DYY=0 for December 21, and counting forward, DYY=11 for January 1 and so on).
For Southern Hemisphere start from June 21 (DYY=0 for June 21, and counting forward)
11.1 Fajr – Function of Latitude and seasons
For Subh-Sadiq, Constants A, B, C, D are calculated as follows: