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
yes you can | |
AppBarLayout appBar; | |
appBar.addOnOffsetChangedListener(new AppBarLayout.OnOffsetChangedListener() { | |
@Override | |
public void onOffsetChanged(AppBarLayout appBarLayout, int verticalOffset) { | |
if(verticalOffset > -300) { | |
collapsedAppBar.setTitleEnabled(false); | |
} | |
else { |
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
<EditText | |
android:layout_height="wrap_content" | |
android:layout_width="fill_parent" | |
android:inputType="textMultiLine" | |
android:lines="8" | |
android:minLines="6" | |
android:gravity="top|left" | |
android:maxLines="10" | |
android:scrollbars="vertical" | |
android:hint="Long Text" |
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
<?xml version="1.0" encoding="utf-8"?> | |
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item > | |
<shape | |
android:shape="rectangle"> | |
<solid android:color="@android:color/darker_gray" /> | |
<corners android:radius="5dp"/> | |
</shape> | |
</item> | |
<item android:right="1dp" android:left="1dp" android:bottom="2dp"> |
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
<TextView | |
android:id="@+id/title_text" | |
android:text="Notifications" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:drawableLeft="@drawable/ic_lock_outline_black_24dp" | |
/> |
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
<LinearLayout | |
android:orientation="horizontal" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content"> | |
<ImageView | |
android:id="@+id/title_logo" | |
android:src="@drawable/ic_lock_outline_black_24dp" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" /> | |
<TextView |
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
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" | |
android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin" | |
android:paddingRight="@dimen/activity_horizontal_margin" | |
android:paddingTop="@dimen/activity_vertical_margin" | |
android:paddingBottom="@dimen/activity_vertical_margin" tools:showIn="@layout/activity_main" | |
tools:context="com.futuretraxex.qcm.MainActivityFragment" | |
android:background="@color/chart_bg"> | |
<GridLayout |
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
npm install -g tsd | |
tsd init | |
tsd query jquery | |
tsd install jquery --save | |
tsd query three | |
tsd install three --save | |
include "/// <reference path="typings/tsd.d.ts" />" on top of every file you want auto complete. | |
more packages here https://github.com/borisyankov/DefinitelyTyped |
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
undefined:1 | |
[object Object] | |
^ | |
SyntaxError: Unexpected token o | |
at Object.parse (native) | |
at H:\batman\test.js:21:20 | |
at IncomingMessage.<anonymous> (H:\batman\node_modules\httpreq\lib\httpreq. | |
s:305:5) | |
at IncomingMessage.emit (events.js:117:20) | |
at _stream_readable.js:943:16 |
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
http://www.liveleak.com/feature=1&page=1 | |
<li id="item_li_1e8_1413209114" style="display:block;"> | |
<div class="thumbnail_column" id="thumbnail_1e8_1413209114_828" onmouseover="$(this).find('.add_to_favorites').show();" onmouseout="$(this).find('.add_to_favorites').hide();"> | |
<a href="http://www.liveleak.com/view?i=1e8_1413209114"><img class="thumbnail_image" src="http://edge.liveleak.com/80281E/ll_a_u/thumbs/2014/Oct/13/eb012809693c_thumb_10.jpg" alt="What the hell is this woman doing on the red line train?" width="120" height="90" title="What the hell is this woman doing on the red line train?"/></a> | |
<img class="add_to_favorites" src="http://edge.liveleak.com/80281E/u/u/ll2/plus.gif" alt="Add to favorites" title="add 'What the hell is this woman doing on the red line train?' to your favorites" id="favorite-1e8_1413209114" style="display:none"/> | |
<img src="http://edge.liveleak.com/80281E/u/u/ll2/pg_icon.gif" class="content_rating" title="Rating: Parental Guidance"> </div> <!--thumbn |
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
bets4you.controller('AuthController',['$scope','$window','$location','AuthService',function($scope,$window,$location,AuthService){ | |
this.path = null; | |
this.steamID64 = null; | |
this.isAuth = false; | |
$scope.$watch( 'location.url()', function( url ) { | |
}); | |
}]); |