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
{ | |
// Place your snippets for javascript here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: | |
"hello-world": { | |
"prefix": "helloworld", | |
"body": [ | |
"console.log('hello world');", |
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
const getPostWithCommentsById = async (postId) => { | |
const session = await connection(); | |
const result = await session.sql( | |
`SELECT c.title as title_comment, p.title as title_post | |
FROM comments AS c | |
INNER JOIN posts AS p ON p.id = c.post_id | |
WHERE p.id=?, | |
) | |
.bind(postId) | |
.bind(postId) |
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 name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
</head> | |
<body> | |
<div id="resposta"></div> |
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 name="viewport" content="width=device-width, initial-scale="> | |
<title></title> | |
</head> | |
<body> | |
<h1>Hello World</h1> | |
</body> |
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
[ | |
{ | |
color: "red", | |
value: "#f00" | |
}, | |
{ | |
color: "green", | |
value: "#0f0" | |
}, | |
{ |
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 ProductsSearch | |
include ActiveData::Model | |
attribute :query, type: String | |
attribute :tags, mode: :arrayed, type: String | |
attribute :brand, type: String | |
attribute :main_brand, type: String | |
attribute :gender, type: String | |
attribute :shipping_type, type: String | |
attribute :condition, type: String |
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
body { | |
size: 330mm 427mm; | |
margin: 14mm; | |
} | |
.col-sm-12, .row { | |
width: 300px; | |
} | |
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 'bunny' | |
STDOUT.sync = true | |
conn = Bunny.new( | |
host: 'mq.betradar.com', | |
vhost: '/unifiedfeed/XXXXX', | |
port: 5671, | |
user: 'XXXXXXXXXXXXXXXXX', | |
password: "", |
NewerOlder