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
(function() { | |
var root = $(document.getElementsByTagName('body')); | |
var watchers = []; | |
var f = function(element) { | |
if (element.data().hasOwnProperty('$scope')) { | |
angular.forEach(element.data().$scope.$$watchers, function(watcher) { | |
watchers.push(watcher); | |
}); | |
} | |
angular.forEach(element.children(), function(childElement) { |
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
YtVideo.all.each do |video| | |
video.marketplace_status = 0 | |
video.user_id = video.yt_channel.user.id | |
video.publish_at = video.yt_published_at | |
video.save | |
end |
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 Kennel { | |
public static void main(String[] args) { | |
int numOfDogs = 3; | |
String kennelName = "The Kennel"; | |
double costPerNight = 10.00; | |
// <type of class> <variableName> = <variableValue> | |
Dog someDog = new Dog("Riley"); | |
Dog dog2 = new Dog("Cali"); |