-
Notifications
You must be signed in to change notification settings - Fork 1
/
db.json
59 lines (59 loc) · 3.07 KB
/
db.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
"posts": [
{
"markdown": "fdfdfd",
"title": "",
"id": 19
},
{
"markdown": "hdodjflsf",
"title": "",
"id": 20
},
{
"markdown": "``` \nthis is javascript function () {\nreturn everything\n}",
"title": "some tittle",
"id": 21
},
{
"markdown": "dfdddsa",
"title": "3333",
"id": 22
},
{
"markdown": "addfessefsasasfd",
"title": "",
"id": 23
},
{
"markdown": " ```\n const postData = async (url = \"\", data) => {\n const response = await fetch(url, {\n method: \"POST\",\n credentials: \"same-origin\",\n headers: {\n \"Content-Type\": \"application/json\"\n },\n body: data\n });\n return response.ok;\n };\n```",
"title": "",
"id": 24
},
{
"markdown": " ```js \ndef \nend\n const postData = async (url = \"\", data) => {\n const response = await fetch(url, {\n method: \"POST\",\n credentials: \"same-origin\",\n headers: {\n \"Content-Type\": \"application/json\"\n },\n body: data\n });\n return response.ok;\n };\n```",
"title": "",
"id": 25
},
{
"markdown": "dfdffde\n\n ```js\n const postData = async (url = \"\", data) => {\n const response = await fetch(url, {\n method: \"POST\",\n credentials: \"same-origin\",\n headers: {\n \"Content-Type\": \"application/json\"\n },\n body: data\n });\n return response.ok;\n };\n```",
"title": "122",
"id": 26
},
{
"markdown": "```ruby \nmodule Internal\n module Dashboard\n class StatisticsController < Sinatra::Base\n include Serial::RailsHelpers\n\n use Rack::Auth::Basic, 'Protected Area' do |username, password|\n username == App.config.internal_basic_auth_name &&\n password == App.config.internal_basic_auth_password\n end\n\n get '/', provides: :json do\n statistics = InternalStatistics.new(year: params[:year], month: params[:month])\n\n serialize(statistics).to_json\n end\n\n private\n\n def view_context\n Rails.application.routes.url_helpers\n end\n end\n end\nend\n```",
"title": "",
"id": 27
},
{
"markdown": "# this is ruby\n\n```ruby\nmodule Internal\n module Dashboard\n class StatisticsController < Sinatra::Base\n include Serial::RailsHelpers\n\n use Rack::Auth::Basic, 'Protected Area' do |username, password|\n username == App.config.internal_basic_auth_name &&\n password == App.config.internal_basic_auth_password\n end\n\n get '/', provides: :json do\n statistics = InternalStatistics.new(year: params[:year], month: params[:month])\n\n serialize(statistics).to_json\n end\n\n private\n\n def view_context\n Rails.application.routes.url_helpers\n end\n end\n end\nend\n```",
"title": "what is ruby?",
"id": 28
},
{
"markdown": "# h1\n\n*still in business*",
"title": "",
"id": 29
}
]
}