Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
requirejs: { | |
contentscript: { | |
options: { | |
optimize: 'none', | |
generateSourceMaps: true, | |
baseUrl: "app/scripts", | |
mainConfigFile: "app/contentscript_config.js", | |
name: "../bower_components/almond/almond", | |
include: ['contentscript_src'], | |
out: "app/scripts/contentscript.js" |
This file contains hidden or 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
watch: { | |
... | |
requirejs_contentscript: { | |
files: ['<%= config.app %>/{,*/}*.js', '!<%= config.app %>/scripts/contentscript.js'], | |
tasks: ['requirejs:contentscript'], | |
options: { | |
livereload: true | |
} | |
}, | |
... |
This file contains hidden or 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.config({ | |
shim: { | |
}, | |
paths: { | |
jquery: '../bower_components/jquery/dist/jquery' | |
}, | |
packages: [ | |
] |
This file contains hidden or 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
# GET /resource/password/edit?reset_password_token=abcdef | |
def edit | |
self.resource = resource_class.new | |
resource.reset_password_token = params[:reset_password_token] | |
end |
This file contains hidden or 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
# GET /resource/password/edit?reset_password_token=abcdef | |
def edit | |
# Find the resource with the token | |
self.resource = resource_class.find_by_reset_password_token!(params[:reset_password_token]) | |
# Add the error if the password period is invalid | |
resource.errors.add :reset_password_token, :expired unless resource.reset_password_period_valid? | |
end |
This file contains hidden or 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
#EXTM3U | |
#EXTINF:-1,ai | |
http://206.190.150.132:1935/liveStream/hai_1/hasbahca.m3u8 | |
#EXTINF:-1,Am Thuc | |
http://206.190.150.132:1935/liveStream/vnatv_1/hasbahca.m3u8 | |
#EXTINF:-1,AnGiangTV | |
rtmp://113.161.212.25/live//atv1 | |
#EXTINF:-1,BinhPhuocTV 2 | |
rtmp://113.161.180.136/live//thbp2.tv |
This file contains hidden or 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
test |
This file contains hidden or 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
# app.js | |
routes = ( | |
<Route name="app" path="/"> | |
<Route name="posts"> | |
<Route name="post" path=":postId"> | |
<DefaultRoute handler={PostShow} /> | |
</Route> | |
<DefaultRoute handler={PostsIndex} /> | |
</Route> | |
<DefaultRoute handler={PostsIndex} /> |