Skip to content

Instantly share code, notes, and snippets.

View vpodolyan's full-sized avatar
🚀

Vladimir Podolyan vpodolyan

🚀
View GitHub Profile
### 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:
@vpodolyan
vpodolyan / dabblet.css
Last active April 27, 2016 14:16
Untitled
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;
<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)
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.
void main()
{
int a = 0;
}
3