All code is available in example app - https://github.com/maxivak/webpacker-rails-example-app
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'; | |
export default Ember.Component.extend({ | |
actions: { | |
startEdit(item) { | |
}, | |
startDelete(item) { | |
} | |
} | |
}); |
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'; | |
export default Ember.Component.extend({ | |
actions: { | |
startEdit(item) { | |
}, | |
startDelete(item) { | |
} | |
} | |
}); |
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
--- Execution profile --- | |
Total samples: 7915 | |
Non-Java: 358 (4.52%) | |
Unknown (native): 121 (1.53%) | |
Unknown (Java): 104 (1.31%) | |
Not walkable (Java): 14 (0.18%) | |
Frame buffer usage: 6.3725% | |
Total: 598910566 (3.71%) samples: 599 |
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
--- Execution profile --- | |
Total samples: 29882 | |
Non-Java: 2221 (7.43%) | |
Unknown (native): 37 (0.12%) | |
Unknown (Java): 479 (1.60%) | |
Not walkable (Java): 38 (0.13%) | |
Frame buffer usage: 13.382% | |
Total: 2310249459 (3.71%) samples: 2310 |
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 'action_controller/railtie' | |
require 'minitest/autorun' | |
require 'rack/test' | |
class TestApp < Rails::Application | |
config.root = File.dirname(__FILE__) | |
config.session_store :cookie_store, key: 'cookie_store_key' | |
secrets.secret_token = 'secret_token' | |
secrets.secret_key_base = 'secret_key_base' | |
config.logger = Logger.new($stdout) |
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
#!/bin/bash | |
usage() { echo "Usage: $0 -L [-U <user_name>] [-H <host>] [-h <hostname>] " 1>&2; exit 1; } | |
# Input | |
login=false # Open ssh session after set up, defaults to false. | |
while getopts "h:U:H:L" opt; do | |
case $opt in | |
U) user=$OPTARG ;; |
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
package com.firstapp.recommend.loaders; | |
import android.content.Context; | |
import android.support.v4.content.Loader; | |
import com.android.volley.DefaultRetryPolicy; | |
import com.android.volley.RequestQueue; | |
import com.firstapp.recommend.MyApplication; | |
import java.util.List; |