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
<?php | |
namespace App\Repository\PushNotification; | |
class NewHomeworkNotification extends OkusPushNotification | |
{ | |
protected $notificationTitle = 'Nueva Tarea'; | |
protected $notificationType = 'new_homework'; | |
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
{ | |
"message": "Class 'MongoDB\\Driver\\Manager' not found", | |
"exception": "Symfony\\Component\\Debug\\Exception\\FatalThrowableError", | |
"file": "/var/app/current/vendor/mongodb/mongodb/src/Client.php", | |
"line": 87, | |
"trace": [ | |
{ | |
"file": "/var/app/current/vendor/jenssegers/mongodb/src/Jenssegers/Mongodb/Connection.php", | |
"line": 141, | |
"function": "__construct", |
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
<%= link_to href: 'http://www.example.com/' do %> | |
<%= image_tag 'happyface.png', width: 136, height: 67, alt: 'a face that is unnervingly happy'%> | |
<% end %> |
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
def alphabetize(arr, rev=false) | |
if rev | |
arr.sort! { |item1, item2| item2 <=> item1 } | |
else | |
arr.sort! { |item1, item2| item1 <=> item2 } | |
end | |
end | |
books = ["Heart of Darkness", "Code Complete", "The Lorax", "The Prophet", "Absalom, Absalom!"] |
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
-----> Ruby app detected | |
-----> Compiling Ruby/Rails | |
-----> Using Ruby version: ruby-2.5.1 | |
###### WARNING: | |
Removing `Gemfile.lock` because it was generated on Windows. | |
Bundler will do a full resolve so native gems are handled properly. | |
This may result in unexpected gem versions being used in your app. | |
In rare occasions Bundler may not be able to resolve your dependencies at all. | |
https://devcenter.heroku.com/articles/bundler-windows-gemfile | |
-----> Installing dependencies using bundler 1.15.2 |
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
<?php | |
public function FunctionName() | |
{ | |
$url = $this->GLOBAL_cdn_streaming_domain; | |
array_map(function($movie) use ($url){ | |
$movie->video_url = $url . $movie->video_url; | |
$movie->image = $url . $movie->image; | |
$movie->big_image = $url . $movie->big_image; |
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
class Pet | |
attr_reader :color, :breed | |
attr_accessor :name | |
def initialize(color, breed) | |
@color = color | |
@breed = breed | |
@hungry = true | |
end |
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
class Cat | |
attr_reader :color, :breed | |
attr_accessor :name | |
def initialize(color, breed) | |
@color = color | |
@breed = breed | |
@hungry = true | |
end |
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
def fav_foods | |
food_array = [] | |
3.times do | |
puts "Name a favorite food." | |
food_array << gets.chomp | |
end | |
puts "Your favorite foods are #{food_array.join(", ")}." |
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
if (5+5 == 10) | |
puts "this is true" | |
else | |
puts "this is false" | |
end |
NewerOlder