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"?> | |
<RelativeLayout 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" > | |
<!-- Header aligned to top --> | |
<RelativeLayout | |
android:id="@+id/header" |
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"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:id="@+id/view2" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="horizontal"> | |
<TextView | |
android:id="@+id/from" | |
android:layout_width="100dp" |
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
#java 6 | |
brew tap caskroom/versions | |
brew cask install java6 | |
#java 8 | |
brew update | |
brew tap caskroom/cask | |
brew install Caskroom/cask/java |
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
let backButton = UIBarButtonItem(image:UIImage(named:"icon_prev"), | |
style: UIBarButtonItemStyle.plain, | |
target: navigationController, action: nil) | |
navigationItem.leftBarButtonItem = backButton |
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
### mac에 sshpass 설치 하기 | |
``` bash | |
$ brew install https://raw.githubusercontent.com/kadwanev/bigboybrew/master/Library/Formula/sshpass.rb | |
``` | |
에러가 발생 | |
``` bash | |
$ brew install https://raw.githubusercontent.com/kadwanev/bigboybrew/master/Library/Formula/sshpass.rb | |
######################################################################## 100.0% |
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
//snapkit | |
extension MainController { | |
func initUI() { | |
self.view.addSubview(self.tableView) | |
view.setNeedsUpdateConstraints() | |
} | |
override func updateViewConstraints() { | |
if (!didSetupConstraints) { |
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 Foundation | |
import UIKit | |
import SnapKit | |
/******************************************************************************** | |
1.view 구조 | |
-view | |
-tableView | |
2.extension 구조 | |
(1).init |
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 Foundation | |
import UIKit | |
import SnapKit | |
/******************************************************************************** | |
1.view 구조 | |
-contentview | |
-titleLabel | |
2.extension 구조 | |
(1).init |
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
.... | |
<permission android:name="appid.permission.C2D_MESSAGE" android:protectionLevel="signature" /> | |
<uses-permission android:name="appid.permission.C2D_MESSAGE" android:protectionLevel="signature"/> | |
<uses-permission android:name="android.permission.VIBRATE" /> | |
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/> | |
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE"/> | |
<application |
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
private void showNotification(String title, String message, Intent intent) { | |
PendingIntent pendingIntent = PendingIntent.getActivity(getApplicationContext(), Defines.REQUEST_GOTO_HOME, intent, PendingIntent.FLAG_ONE_SHOT); | |
Notification.Builder builder = new Notification.Builder(this); | |
builder.setSmallIcon(R.mipmap.ic_launcher); | |
builder.setShowWhen(true); | |
builder.setContentTitle(title); | |
builder.setContentText(message); | |
builder.setTicker(message); | |
builder.setWhen(System.currentTimeMillis()); |
OlderNewer