View gist:98eca9ee557f01252415
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
Processing by UpgradesController#update as JSON | |
Parameters: {"upgrade"=>{"slug"=>"01_sun_01", "active"=>true, "name"=>"Солнце 1", "icon"=>"not_existing_icon", "description"=>"Удваивает доход от Солнц", "cost"=>"100.0", "building"=>"sun", "building_k"=>"2.0", "total_k"=>"1.0", "upgrades_needed"=>nil, "upgrades_amount_needed"=>nil, "achievements_needed"=>nil, "achievements_amount_needed"=>nil, "buildings_needed"=>"", "speed_needed"=>"0.0", "total_cookies_needed"=>"0.0", "ingame_time_needed"=>"0.0", "upgradable_config_items"=>[{"slug"=>"blue_bird_delay", "name"=>"Время, которое должно пройти с момента старта игры, чтобы могла быть показана синяя птица", "value"=>"5.0", "upgrade_id"=>nil, "id"=>"15"}, {"slug"=>"blue_bird_duration", "name"=>"Длительность показа синей птицы", "value"=>"8.0", "upgrade_id"=>nil, "id"=>"14"}, {"slug"=>"improved_income", "name"=>"Коэффициент прироста конфет от синей птицы", "value"=>"20.0", "upgrade_id"=>nil, "id"=>"13"}, {"slug"=>"improved_income_duration", "name"=>"Длительность уве |
View gist:511c5ec1dc5b6e78a621
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
###jshint expr: true, loopfunc: true ### | |
`import Ember from 'ember'` | |
MapView = Ember.View.extend( | |
connectionsData: [] | |
nodesPosX: 0 | |
nodesPosY: 0 | |
nodeWidth: 58 |
View gist:58d99541d3aa3a3c7036
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
`import Ember from 'ember'` | |
PlayerController = Ember.Controller.extend( Ember.Evented, | |
responses: Ember.A() | |
stepsAndResponses: Ember.A() | |
currentStep: null | |
updateResponseBlock: -> | |
@responses.clear() |
View gist:e2c5b2703ca9104db16a
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
`import Ember from 'ember'` | |
PlayerView = Ember.View.extend( | |
offsetY: 140 | |
mouseWheelFactor: 10 | |
playerScroller: null | |
minY: 0 |
View panel.css
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
.panel { | |
border-radius: 8px; | |
margin: 0 auto; | |
width: 320px; | |
height: 400px; | |
perspective: 600px; | |
position: relative; | |
} | |
.panel .panel-front { |
View index.css
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
html { | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing: border-box; | |
box-sizing: border-box; | |
} | |
*, *:before, *:after { | |
-webkit-box-sizing: inherit; | |
-moz-box-sizing: inherit; | |
box-sizing: inherit; |
View card.css
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
.card { | |
display: flex; | |
flex-direction: column; | |
justify-content: space-between; | |
align-items: center; | |
background: linear-gradient(160deg, rgba(136,209,252,1) 0%, rgba(84,69,253,1) 100%); | |
border-radius: 8px; | |
height: 100%; | |
padding: 15px 25px; | |
} |
View options.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View clear-day.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View api.js
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
export const getWeatherForLocation = city => { | |
const [lat, long] = city["latt_long"].split(","); | |
return fetch( | |
`https://darksky-wrapper.herokuapp.com/forecast/${lat},${long}`, | |
{ | |
mode: "cors" | |
} | |
).then(res => res.json()); | |
}; |
OlderNewer