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 CAMediaTimingFunction { | |
// default | |
static let `default` = CAMediaTimingFunction(name: kCAMediaTimingFunctionDefault) | |
static let linear = CAMediaTimingFunction(name: kCAMediaTimingFunctionLinear) | |
static let easeIn = CAMediaTimingFunction(name: kCAMediaTimingFunctionEaseIn) | |
static let easeOut = CAMediaTimingFunction(name: kCAMediaTimingFunctionEaseOut) | |
static let easeInEaseOut = CAMediaTimingFunction(name: kCAMediaTimingFunctionEaseInEaseOut) | |
// custom |
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 QuartzCore | |
import UIKit | |
import PlaygroundSupport | |
public class EasingFunctionGraph: UIView { | |
private var x1: CGFloat | |
private var y1: CGFloat | |
private var x2: CGFloat | |
private var y2: CGFloat |
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 QuartzCore | |
import PlaygroundSupport | |
PlaygroundPage.current.needsIndefiniteExecution = true | |
let cords: UnsafeMutablePointer<Float> = UnsafeMutablePointer.allocate(capacity: 2) | |
let defaultTimingFunctionOptions = [kCAMediaTimingFunctionLinear, kCAMediaTimingFunctionEaseIn, kCAMediaTimingFunctionEaseOut, kCAMediaTimingFunctionEaseInEaseOut, kCAMediaTimingFunctionDefault] |
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 | |
_get_repo() { | |
echo "$1" | sed -e "s/.git$//" -e "s/.*github.com[:/]\(.*\)/\1/" | |
} | |
_build_url() { | |
# shellcheck disable=SC2039 | |
local upstream origin branch repo pr_url target | |
upstream="$(git config --get remote.upstream.url)" |
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 | |
_get_repo() { | |
echo "$1" | sed -e "s/.git$//" -e "s/.*github.com[:/]\(.*\)/\1/" | |
} | |
_build_url() { | |
# shellcheck disable=SC2039 | |
local upstream origin branch repo pr_url target | |
upstream="$(git config --get remote.upstream.url)" |
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
1. JW Black Label | |
2. [History-Sikhs-1469-1839-Vol](http://www.amazon.in/History-Sikhs-1469-1839-Vol/dp/0195673085/ref=sr_1_2?ie=UTF8&qid=1450539491&sr=8-2&keywords=history+of+sikhs) | |
http://www.amazon.in/History-Sikhs-1839-2004-Vol-1839/dp/0195673093/ref=sr_1_1?ie=UTF8&qid=1450539491&sr=8-1&keywords=history+of+sikhs | |
3. http://www.amazon.in/God-Delusion-Richard-Dawkins/dp/055277331X/ref=sr_1_10?ie=UTF8&qid=1450539818&sr=8-10&keywords=christopher+hitchens | |
4. http://www.amazon.in/Letters-Young-Contrarian-Art-Mentoring/dp/0465030335/ref=sr_1_12?ie=UTF8&qid=1450539818&sr=8-12&keywords=christopher+hitchens | |
5. http://www.amazon.in/1984-George-Orwell/dp/0143416308/ref=sr_1_1?s=books&ie=UTF8&qid=1450539714&sr=1-1&keywords=1984+george+orwell+penguin | |
6. http://www.amazon.in/Portable-Atheist-Essential-Readings-Nonbeliever-ebook/dp/B003KVKYAC/ref=sr_1_16?ie=UTF8&qid=1450539818&sr=8-16&keywords=christopher+hitchens | |
7. http://www.amazon.com/Satanic-Verses-Novel-Salman-Rushdie/dp/0812976711/ref=sr_1_1?s=books&ie=UTF8&qid=1 |