Just another blog for code snippets, music and photography.
Don't wanna be here? Send us removal request.
Text
NutriMinder Press Release
Phoenix, AZ December 11, 2015 - "Created by Ash" is proud to announce the launch of "NutriMinder" a cool new app for the iPhone.
NutriMinder remembers your nutrition program for you and reminds you when to drink water, eat meals, take supplements and exercise.
"I am so excited to share something that has helped me for years! I stay so busy and it's super easy to forget to eat meals and drink water. NutriMinder remembers my daily schedule and the rest is easy.” - says Ash Craig, the app's creator. "Being fit is a choice, being fat is a choice. I choose FIT and with NutriMinder, being consistent with my daily nutrition requires that I drink water and eat meals at the proper times." said Ash. “I know you will love it too."
NutriMinder is available now for the iPhone and can be found in the App Store.
About Ash Craig Ash Craig is a software designer and life long fitness enthusiast who has worked with top athletes and fitness personalities. Truly a "Software Rockstar", Ash has built some very popular fitness platforms used the world over. Find out more about Ash and the NutriMinder app on nutriminder.com and ashcraig.com.
0 notes
Photo

NutriMinder was just accepted into the iTunes App Store!!
HOORAY!!
It remembers your daily nutrition for you and reminds you when to drink water, eat meals, do workouts or take supplements.
I originally wrote it as Windows software that sent SMS messages to your cell phone (yuk!) which was convoluted and messy. Swift allowed me to write NutriMinder the way it should have been all along... on the device!
So... get NutriMinder and never forget your nutrition again! (...and it’s only .99 in the App Store)
0 notes
Video
youtube
Loudness changed my life in 1985. I remember the first time I played “Crazy Nights” - I had never heard anything like that. Akira changed how I thought about phrasing and tone.
Ashes in the sky
I never talk to guardian angels, never look at evil past The dying swan of sad creation, going fast away We are born again like a phoenix passing, Vanish like a soldier's death, Hear the breath of moving thunder. Red hot blow the ashes to the sky...
Shadows of war, screamin' past lies Shadows of war, emotional ties
It comes, a deeper nightmare. Fly me away to the holy place Can the keepers guide forever Will they make us pay? We are born again like a phoenix passing, Vanish like a soldier's death, Hear the breath of moving thunder. Red hot blow the ashes to the sky...
Shadows of war, love has gone blind Shadows of war, time out of mind
Can the keepers guide forever? Will they make us pay? We are born again like a phoenix passing, Vanish like a soldier's death, Hear the breath of moving thunder. Red hot blow the ashes to the sky...
Shadows of war, time out of mind Shadows of war, love has gone blind Shadows of war, screamin' past lies Shadows of war, emotional ties Shadows of war, shadows of war Shadows of war, shadows of war Time out of mind
0 notes
Photo


I am excited to announce that “Virtual Rimshot” has made it to the App Store! While this isn’t a new concept... I wanted to create something that was fun and simple. Plus... mine has a cute monkey. lol
Say something clever and hit the “Rimshot” button. Combine it with some laughs or “So Sad” if your joke bombs. ;-)
Buy it in the App Store
0 notes
Photo




I’m totally excited to announce that I’ve made Glance open source and available on Github.
Glance is an open source dating platform built in PHP and Javascript to introduce the ‘human element’ back to online dating. Think of how you interact on sites like Facebook and Twitter… now apply that to online dating. Glance encourages users to express themselves with daily posts that allow that special person to see how awesome they really are!
I hope you love it!!
https://github.com/theashcraig/glance
0 notes
Text
Swift 2 - Get time remaining from NSDate
Here's an extension I use to return the remaining time between two NSDates. For instance: "2 hours and 45 minutes remain". Simply place this extension in your "AppDelegate.swift" file outside of the AppDelegate class. Hope this helps!
The Code:
/* Here's how to use it.... In this example, I want to find out how much time is left before the next local notification is fired in my app. */ //create a NSDate with a future moment (I'm getting mine from the next local notification) let nextReminderFire:NSDate = notification.fireDate! //create another NSDate moment for now let rightNowMoment:NSDate = NSDate() //call the method from the future NSDate object passing the NOW NSDate //returns a String let timeRemaining:String = nextReminderFire.totalTimeRemainingFromNSDate(rightNowMoment)
extension NSDate { func totalTimeRemainingFromNSDate(date:NSDate) -> String{ //show many seconds total let totalSeconds:Int = NSCalendar.currentCalendar().components(.Second, fromDate: date, toDate: self, options: []).second let minutesLeft:Int = totalSeconds / 60 //i.e 122 seconds total let hoursLeft:Int = minutesLeft / 60 //i.e 2 hours let remainder:Int = hoursLeft * 60 //i.e 120 let remainderMinutes = minutesLeft - remainder //i.e 2 minutes var hourFlag:Bool = false var minFlag:Bool = false var hourStr:String = "" var minStr:String = "" if totalSeconds < 60 && totalSeconds > 0 { return "less than a minute" } if hoursLeft > 0 { hourFlag = true if hoursLeft == 1 { hourStr = "1 hour" } else { hourStr = "\(hoursLeft) hours" } } if remainderMinutes > 0 { minFlag = true if remainderMinutes == 1 { minStr = "1 minute" } else { minStr = "\(remainderMinutes) minutes" } if minFlag == true && hourFlag == true { //both hours and minutes return "\(hourStr) and \(minStr)" } else if minFlag == true && hourFlag == false { // just minutes return "\(minStr)" } else if minFlag == false && hourFlag == true { // just hours return "\(hourStr)" } else { //less than a minute return "less than a minute" } } return "" } }
0 notes
Photo


Ok.. last night *might* have gotten a tiny bit outta hand. lol
0 notes