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
| ### Basic Getting Started Ubuntu 16.04 | |
| SSH into your server at root: | |
| ``` | |
| ssh root@myserver.com | |
| ``` | |
| Crate a new user: | |
| ``` | |
| adduser my_username | |
| ``` | |
| Make the new user a sudo user: |
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
| a { | |
| display: inline; | |
| padding: 5px 10px; | |
| line-height: 1px; | |
| background-color: #007fc7; | |
| border-radius: 3px; | |
| border: solid 1px #007fc7; | |
| height: 36px; | |
| color: #fff; | |
| font-size: 16px; |
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
| <table style="text-align: left;"> | |
| @for (int i = 0; i < Model.Roles.Count - 1; i++) | |
| { | |
| @Html.HiddenFor(m => m.Roles[i].Id) | |
| <tr> | |
| <th> | |
| @Html.CheckBoxFor(m => m.Roles[i].Selected) | |
| </th> | |
| <th> | |
| @Html.HiddenFor(m => m.Roles[i].Name) |
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
| NotificationCompat.Builder mBuilder = | |
| new NotificationCompat.Builder(this) | |
| .setSmallIcon(R.drawable.notification_icon) | |
| .setContentTitle("My notification") | |
| .setContentText("Hello World!"); | |
| // Creates an explicit intent for an Activity in your app | |
| Intent resultIntent = new Intent(this, ResultActivity.class); | |
| // The stack builder object will contain an artificial back stack for the | |
| // started Activity. |
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
| void main() | |
| { | |
| int a = 0; | |
| } | |
| 3 |