This file contains 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
// | |
// AnimatedText.swift | |
// | |
// Created by Kauntey Suryawanshi on 23/07/24. | |
// | |
import SwiftUI | |
struct AnimatedText: View { | |
enum Speed { |
This file contains 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 Foundation | |
import Combine | |
struct CountDownTimer: Publisher { | |
struct TimeRemaining: CustomStringConvertible { | |
let min, seconds, totalSeconds: Int | |
var description: String { | |
String(format: "%02d:%02d", min, seconds) | |
} |
This file contains 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
CGWindowLevelKey.BaseWindowLevelKey 0 | |
CGWindowLevelKey.MinimumWindowLevelKey 1 | |
CGWindowLevelKey.DesktopWindowLevelKey 2 | |
CGWindowLevelKey.BackstopMenuLevelKey 3 | |
CGWindowLevelKey.NormalWindowLevelKey 4 | |
CGWindowLevelKey.FloatingWindowLevelKey 5 | |
CGWindowLevelKey.TornOffMenuWindowLevelKey 6 | |
CGWindowLevelKey.DockWindowLevelKey 7 | |
CGWindowLevelKey.MainMenuWindowLevelKey 8 | |
CGWindowLevelKey.StatusWindowLevelKey 9 |
This file contains 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
.zshrc | |
.zshhistory |
This file contains 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
extension Bool { | |
init<T : IntegerType>(_ integer: T){ | |
self.init(integer != 0) | |
} | |
/// True => 1 False => 0 | |
var toInt: Int { | |
return self ? 1 : 0 | |
} | |
This file contains 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
Full Keyboard Symbol List: | |
⌘ is command | |
⌥ is option | |
⌃ is control | |
⇧ is shift | |
⇪ is caps lock | |
← is left arrow | |
→ is right arrow | |
↑ is up arrow | |
↓ is down arrow |
This file contains 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
// Playground - noun: a place where people can play | |
import Cocoa | |
import XCPlayground | |
let graphWidth: CGFloat = 400.0; | |
let graphHeight: CGFloat = 400.0 | |
var frameRect = NSRect(x: 0, y: 0, width: graphWidth, height: graphHeight) | |
var view = NSImageView(frame: frameRect) |
This file contains 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
#!/bin/bash | |
inputFile=$1 | |
directoryName=$2 | |
[ $# -ne 2 ] && echo "Arguments improper. scaleK image.png outputdirectory " && exit | |
[ ! -f $inputFile ] && echo "File not found!" && exit; | |
sizeArrayMac=('16' '32' '128' '256' '512') | |
sizeArrayiOS=('29' '40' '60') |
This file contains 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
;gist -u 2ce292e369c1a2b5476d .emacs | |
(require 'package) | |
(add-to-list 'package-archives | |
'("melpa" . "http://melpa.milkbox.net/packages/") t) | |
;C-xrje | |
(set-register ?e '(file . "~/.emacs")) ;kkk | |
(set-register ?z '(file . "~/.zshrc")) ;kkk |