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
@using System.Globalization | |
@using OrchardCore.ContentLocalization.ViewModels | |
@using OrchardCore.Localization | |
@inject ILocalizationService localizationService | |
<!DOCTYPE html> | |
<html lang="@Orchard.CultureName()" dir="@Orchard.CultureDir()"> | |
<head> | |
<title>Welcome</title> | |
</head> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
<style> | |
.container { | |
width: 700px; |
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
using System; | |
using Microsoft.EntityFrameworkCore.Migrations; | |
using MySql.EntityFrameworkCore.Metadata; | |
namespace AspNetProject.Data.Migrations | |
{ | |
public partial class Identity : Migration | |
{ | |
protected override void Up(MigrationBuilder migrationBuilder) | |
{ |
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
#1 Resetting work | |
git pull origin dev // ensure you have latest code from the remote repo (unless you want to do something with old code) | |
git status // ensure you commited all changes | |
git reset --hard // this will reset code to the last commit | |
git reset --hard <commit id> // this will reset code to specific commit | |
git pull origin dev // just confirm everything is up-to-date. | |
git status // ensure there are not unstaged files something like that |
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
.w-25 { | |
width: 25% !important; | |
} | |
.w-50 { | |
width: 50% !important; | |
} | |
.w-75 { |
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
import xml.etree.ElementTree as ET | |
import urllib | |
xml = urllib.urlopen("https://www.w3schools.com/xml/books.xml") | |
tree = ET.parse(xml) | |
root = tree.getroot() | |
cat = raw_input('Kategorija: ') | |
for child in root: |
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
import datetime | |
name = raw_input("Enter your name") | |
years = raw_input("How old are you?") | |
try: | |
years = int(years); | |
print "Your name is",name,", 100 years you will have on a", (datetime.date.today().year - years) + 100," year" | |
except: | |
print "broj godina mora biti unet BROJEVIMA, ne slovima." |