Skip to content

Instantly share code, notes, and snippets.

View ericlmartinezo's full-sized avatar

Eric ericlmartinezo

  • Portland, OR
View GitHub Profile
@ericlmartinezo
ericlmartinezo / MyQuiverApp-PrivacyPolicy
Created February 11, 2020 16:20
My Quiver App Privacy Policy for the iOS App Store
Privacy Policy
Eric Martinez built the My Quiver app as a Commercial app. This SERVICE is provided by Eric Martinez and is intended for use as is.
This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.
If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.
The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at My Quiver unless otherwise defined in this Privacy Policy.
Information Collection and Use
[{
"id": 1,
"sail": "North",
"model": "Natural",
"size": "5.8",
"boom": "185",
"extSize": "27",
"mast": "430"
}, {
"id": 2,
@ericlmartinezo
ericlmartinezo / word-count-in-phrase
Last active October 15, 2019 22:47
Stupid code paring test 3
// Counter the number of times a specific word is repeated in a sentence
// Created a variable with the phrase
var phrase = "The weather is good today. The weather was worse yesterday. The the weather tomorrow is better."
// Created funtion to be call that will take a message and the word that I want to find the number of time it repeats
// The function will return an Int
func SpecificWordCount(str:String, word:String) ->Int {
// The logic below looks into the components of the phrase for the input word separated by a space.
// a variable count is add to hold the values
@ericlmartinezo
ericlmartinezo / fizzbuzz-test
Last active October 15, 2019 22:51
Stupid code paring part 2
// Here's a swifty way for dealing with multiples of
// First you pass the range of numbers you want irriate through
// Create a forEach loop that will loop cases in your Switch
// Switch will always en with Default.
// These can be done in many ways but the trick is to use the functions Swift provides. In this case isMultiple
(1...15).forEach { (number) in
switch number {
case let x where x.isMultiple(of: 15):
print("FizzBuzz")
@ericlmartinezo
ericlmartinezo / letter-occurance-swift
Last active October 15, 2019 22:53
Here's a stupid code paring test
// Write a function that outputs the letters that repeats in "Hello World"
import Foundation
func letterOccuranceCount(word1: String) -> Bool {
let letters = word1.map { String($0) }
// get duplicates
let duplicates = Array(Set(letters.filter({ (i: String) in letters.filter({ $0 == i }).count > 1})))
@ericlmartinezo
ericlmartinezo / calabash-ios-ci.rb
Created December 8, 2015 12:04 — forked from AlexDenisov/calabash-ios-ci.rb
Ruby script for Calabash iOS CI-server
#!/usr/bin/ruby
require "getoptlong"
getoptlong = GetoptLong.new(
[ '--target', '-t', GetoptLong::REQUIRED_ARGUMENT ],
[ '--log-file', '-l', GetoptLong::REQUIRED_ARGUMENT ],
[ '--source-root', '-r', GetoptLong::REQUIRED_ARGUMENT ]
)