sudo xcode-select --switch /Applications/Xcode.app/
RubyMotion makes building and running your app in the simulator as easy as typing rake
on the command line.
Sometimes to properly test your app you will need to target a specific simulator or iOS version. Luckily RubyMotion makes this easy to do on the fly.
To target a specific Simulator, run:
rake retina=4
To target a specific iOS version, run:
rake target=6.0
- Find out your computer name by running
hostname
in terminal - Access your localhost through
[computername].local:3000
If that doesn't work, try:
- Find the IP for the current LAN connection on your VM
- Use the IP address, changing the last number to one. eg)
http://172.16.215.1:3000
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
notifications = Notifications.where('notifications.created_at BETWEEN ? AND ?', start_date, end_date) | |
notifications_by_date = notifications.group_by { |notification| notification.created_at.to_date } | |
@notifications_by_day = (start_date.to_date..end_date.to_date).map do |date| | |
{ | |
day: date, | |
notifications: notifications_by_date[date] || [], | |
} | |
end | |
@notifications_by_day.reverse! |
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
setTimeout(function () { window.location = "https://play.google.com/store/ap...";}, 25); | |
window.location = "appname://"; |
I hereby claim:
- I am micdijkstra on github.
- I am micdijkstra (https://keybase.io/micdijkstra) on keybase.
- I have a public key ASD5UXVmY1Qc77Aluyc-7ca0yYjR2CNLNbAbNQWuVHJYZgo
To claim this, I am signing this object:
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
window.Stencil = window.Stencil || {}; | |
/*doc | |
--- | |
title: Vertical Align | |
name: vertical-align | |
category: Utilities | |
--- | |
Aligns elements vertically. |