Skip to content

Instantly share code, notes, and snippets.

View richimf's full-sized avatar
:octocat:
Coding...

Ricardo Montesinos richimf

:octocat:
Coding...
View GitHub Profile
@richimf
richimf / buttonAnimationExtension.swift
Created October 5, 2019 03:52 — forked from SAllen0400/buttonAnimationExtension.swift
Core Animation on UIButton Example
// Swift 3
extension UIButton {
func pulsate() {
let pulse = CASpringAnimation(keyPath: "transform.scale")
pulse.duration = 0.6
pulse.fromValue = 0.95
pulse.toValue = 1.0
@richimf
richimf / sample_unitext.swift Sample iOS Unit Tests: Working with a ViewController composed of TableViews
/*****
Sample iOS Unit Tests: Working with a ViewController composed of TableViews
*****/
import XCTest
@testable import YourAppTargetname
class SideMenuViewControllerTest: XCTestCase {
@richimf
richimf / speech.swift
Last active November 10, 2021 15:51 — forked from bellbind/speech.swift
[osx][swift]Example of Text-to-Speech as commandline program
// Text-to-Speech on OSX
// run: swift speech.swift "東京特許許可局"
// build: xcrun -sdk macosx swiftc speech.swift && ./speech "東京特許許可局"
//
// for OSX, use NSSpeechSYnthesizer in AppKit,
// (for iOS, use AVSpeechSynthesizer in AVFoundation)
import Foundation
import AppKit
@richimf
richimf / The Technical Interview Cheat Sheet.md
Created November 9, 2017 19:09 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.