- Fruit = 1-2 servings
- Animal protein = 4 - 6 servings
- Healthy fats = 5 - 9 servings
- Healthy vegetables = 6 - 11 servings
- Healthy fats = 50%
#!/bin/bash | |
theSite="https://developer.apple.com/wwdc/" | |
foo=$(curl $theSite) | |
echo $foo | |
oldFile=$(date +"%Y-%m-%d-%H_%M_%S").start | |
echo "$foo" > $oldFile | |
while true; do |
import UIKit | |
/// Wrapper for the NSNotification userInfo values associated with a keyboard notification. | |
/// | |
/// It provides properties that retrieve userInfo dictionary values with these keys: | |
/// | |
/// - UIKeyboardFrameBeginUserInfoKey | |
/// - UIKeyboardFrameEndUserInfoKey | |
/// - UIKeyboardAnimationDurationUserInfoKey | |
/// - UIKeyboardAnimationCurveUserInfoKey |
["aabraham","aaccf","aadolf","aage","aalders","aali","aalis","aaliyah","aamina","aaminah","aamu","aapeli","aapo","aaren","aarika","aarne","aaron","aarón","aart","aartjan","aasen","aatami","aatos","aatto","aatu","aawiya","ab","abacus","abadines","abagael","abagail","abahri","abasolo","abazari","abba","abbai","abbán","abbas","abbatant","abbate","abbe","abbes","abbey","abbi","abbie","abbot","abbott","abby","abbye","abd-al-aziz","abd-al-hamid","abd-al-kader","abd-al-karim","abd-al-latif","abd-al-malik","abd-al-qadir","abd-al-rahman","abd-al-rashid","abd-allah","abdalla","abdallah","abdechahid","abdel","abdel-az","abdel-ma","abdel-ra","abdel-sa","abdelazi","abdelaziz","abdelbassir","abdeldjalil","abdelfattah","abdelghafour","abdelghani","abdelhadi","abdelhak","abdelhakim","abdelkader","abdelkarim","abdellah","abdellatif","abdelmad","abdelmadjid","abdelmalik","abdelmoumen","abdelrah","abdelran","abdelsal","abdenour","abderrahim","abderrao","abderraz","abderrazek","abdessalem","abdessatar","abdi","abdiou","abdo","ab |
// Playground - noun: a place where people can play | |
import UIKit | |
import CoreGraphics | |
public enum Result<T> { | |
case Success(@autoclosure () -> T) | |
case Failure(String) | |
init(_ value:T) { |
public extension CustomDebugStringConvertible { | |
var debugDescription: String { | |
return debugDescription() | |
} | |
func debugDescription(_ indentationLevel: Int = 0, includeType: Bool = true) -> String { | |
let indentString = (0..<indentationLevel).reduce("") { tabs, _ in tabs + "\t" } | |
var s: String |
####Rets Rabbit http://www.retsrabbit.com
Rets Rabbit removes the nightmare of importing thousands of real estate listings and photos from RETS or ListHub and gives you an easy to use import and Web API server so you can focus on building your listing search powered website or app.
// | |
// Actor.Swift | |
// | |
// Copyright (c) 2017 Robert Brown | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is |
import Foundation | |
import Actor | |
import MessageRouter | |
public final class Core<State, Event, Command> { | |
public typealias CommandProcessor = (Core<State, Event, Command>, Command) -> Void | |
public typealias EventHandler = (State, Event) -> CoreUpdate<State, Command> | |
public let stateChanged = MessageRouter<State>() |
class SampleFlowLayout: UICollectionViewLayout { | |
override func prepare() { | |
guard let collectionView = self.collectionView else { return } | |
self.itemAttributes.removeAllObjects() | |
// go through every section.. | |
for section in 0..<collectionView.numberOfSections { | |
let numberOfItems = collectionView.numberOfItems(inSection: section) |