-
Screencasts
-
Seattle Ember.js sessions
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
// Gradle script for detached apps. | |
import org.apache.tools.ant.taskdefs.condition.Os | |
void runBefore(String dependentTaskName, Task task) { | |
Task dependentTask = tasks.findByPath(dependentTaskName); | |
if (dependentTask != null) { | |
dependentTask.dependsOn task | |
} | |
} |
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
class Hash | |
def times_with_utc | |
dup.tap do |new_hash| | |
each_key do |key| | |
value = self[key] | |
if ActiveSupport::TimeWithZone === value | |
new_hash[key] = value.utc | |
elsif Array === value || Hash === value | |
new_hash[key] = value.times_with_utc | |
end |