This file contains hidden or 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
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 |
This file contains hidden or 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
[{ | |
"id": 1, | |
"sail": "North", | |
"model": "Natural", | |
"size": "5.8", | |
"boom": "185", | |
"extSize": "27", | |
"mast": "430" | |
}, { | |
"id": 2, |
This file contains hidden or 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
// 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 |
This file contains hidden or 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
// 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") |
This file contains hidden or 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
// 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}))) |
This file contains hidden or 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
#!/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 ] | |
) |