Skip to content

Instantly share code, notes, and snippets.

Kaunteya Suryawanshi kaunteya

Block or report user

Report or block kaunteya

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View CGWindowLevelKey raw values
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
@kaunteya
kaunteya / XCode backup
Created Aug 11, 2015
This file has the list of files which are required to backuped in case OS X account is to be formatted
View XCode backup
.zshrc
.zshhistory
View SwiftOne.swift
extension Bool {
init<T : IntegerType>(_ integer: T){
self.init(integer != 0)
}
/// True => 1 False => 0
var toInt: Int {
return self ? 1 : 0
}
@kaunteya
kaunteya / Keyboard symbol list
Created Apr 3, 2015
List of all the keyboard symbols
View Keyboard symbol list
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

@kaunteya
kaunteya / circle.playground
Created Mar 24, 2015
Xcode playground to draw a circle
View circle.playground
// 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)
@kaunteya
kaunteya / scaleK
Last active Mar 5, 2016
This bash script creates icon of all the required sizes for OS X | iOS | Android
View scaleK
#!/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')
@kaunteya
kaunteya / .emacs
Last active Aug 29, 2015
This is my emacs configuration file
View .emacs
;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
You can’t perform that action at this time.