Skip to content

Instantly share code, notes, and snippets.

@yuriiik
yuriiik / InnerShadowView.swift
Created November 24, 2024 21:04 — forked from mathebox/InnerShadowView.swift
UIView with inner shadow in Swift
import UIKit
class InnerShadowView: UIView {
lazy var innerShadowLayer: CAShapeLayer = {
let shadowLayer = CAShapeLayer()
shadowLayer.shadowColor = UIColor.black.cgColor
shadowLayer.shadowOffset = CGSize(width: 0.0, height: 0.0)
shadowLayer.shadowOpacity = 0.1
shadowLayer.shadowRadius = 14
@yuriiik
yuriiik / rvm_cheatsheet
Last active August 29, 2015 14:07
RVM Cheatsheet
Generate .ruby-version and .ruby-gemset
rvm --ruby-version use ruby-2.1.3@my_gemset
Upgrade RVM
rvm get stable
Delete gemset
rvm gemset delete ruby-2.1.3@my_gemset
@yuriiik
yuriiik / calabash_cheatsheet.markdown
Last active August 29, 2015 13:56
Calabash Cheatsheet

Environment variables

Screenshot Location

SCREENSHOT_PATH=/tmp/foo/ calabash-android run

Features and Step Definitions

Gherkin Keywords

  • Feature
  • Background
  • Scenario
  • Given
  • When
  • Then
  • And