This file contains 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
require 'gmail' | |
require 'dotenv' | |
Dotenv.load | |
label_name = "" # label name here | |
Gmail.new(ENV["GMAIL_USERNAME"], ENV["GMAIL_PASSWORD"]) do |gmail| | |
mail_with_label = gmail.label(label_name) | |
This file contains 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
<!-- app/views/layouts/application.html.ejs --> | |
<!-- generate a link with to switch locale --> | |
<ul> | |
<li><%- linkTo(i18n.getText("nav.links.switch_to_english"), {locale: "en-us"}) %></li> | |
<li><%- linkTo(i18n.getText("nav.links.switch_to_chinese"), {locale: "zh-tw"}) %></li> | |
</ul> |
This file contains 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
.controller('DashCtrl', function($scope, $ionicPlatform, $cordovaGeolocation) { | |
var watch; | |
var watchOptions = { | |
timeout : 5000, | |
maximumAge: 3000, | |
enableHighAccuracy: true // may cause errors if true | |
}; | |
var pollCurrentLocation = function() { | |
$cordovaGeolocation.getCurrentPosition(watchOptions) |
OlderNewer