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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>About Me</title> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- google font --> | |
<link href="https://fonts.googleapis.com/css?family=PT+Sans|Unica+One" rel="stylesheet"> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Portfolio</title> | |
<link rel="shortcut icon" type="image/x-icon" href="img/favicon.ico"/> |
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
<?php | |
namespace App\Repository\PushNotification; | |
class NewHomeworkNotification extends OkusPushNotification | |
{ | |
protected $notificationTitle = 'Nueva Tarea'; | |
protected $notificationType = 'new_homework'; | |
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
{ | |
"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 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 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 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 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
{ | |
"current_page": 1, | |
"data": [ | |
{ | |
"id": 15, | |
"name": "flow test name", | |
"vertical": { | |
"id": 1, | |
"name": "Main Stream" | |
}, |
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
<?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 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 |
NewerOlder