Initial commit
commit
e6a8d2e182
@ -0,0 +1 @@
|
||||
> If you're reporting an UI issue, make sure you take a screenshot that shows the actual bug.
|
@ -0,0 +1 @@
|
||||
> If you're fixing a UI issue, make sure you take two screenshots. One that shows the actual bug and another that shows how you fixed it.
|
@ -0,0 +1,17 @@
|
||||
### [X](http://link-to-x.com)
|
||||
|
||||
#### Install using Git
|
||||
|
||||
If you are a git user, you can install the theme and keep up to date by cloning the repo:
|
||||
|
||||
$ git clone https://github.com/dracula/template.git
|
||||
|
||||
#### Install manually
|
||||
|
||||
Download using the [GitHub .zip download](https://github.com/dracula/template/archive/master.zip) option and unzip them.
|
||||
|
||||
#### Activating theme
|
||||
|
||||
1. Do this
|
||||
2. Then that
|
||||
3. Boom! It's working
|
@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2020 Dracula Theme
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
@ -0,0 +1,21 @@
|
||||
# Dracula for [X](http://link-to-x.com)
|
||||
|
||||
> A dark theme for [X](http://link-to-x.com).
|
||||
|
||||
![Screenshot](./screenshot.png)
|
||||
|
||||
## Install
|
||||
|
||||
All instructions can be found at [draculatheme.com/x](https://draculatheme.com/x).
|
||||
|
||||
## Team
|
||||
|
||||
This theme is maintained by the following person(s) and a bunch of [awesome contributors](https://github.com/dracula/template/graphs/contributors).
|
||||
|
||||
[![Zeno Rocha](https://github.com/zenorocha.png?size=100)](https://github.com/zenorocha) |
|
||||
--- |
|
||||
[Zeno Rocha](https://github.com/zenorocha) |
|
||||
|
||||
## License
|
||||
|
||||
[MIT License](./LICENSE)
|
@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Once upon a time...
|
||||
*/
|
||||
|
||||
class Vampire {
|
||||
constructor(props) {
|
||||
this.location = props.location;
|
||||
this.birthDate = props.birthDate;
|
||||
this.deathDate = props.deathDate;
|
||||
this.weaknesses = props.weaknesses;
|
||||
}
|
||||
|
||||
get age() {
|
||||
return this.calcAge();
|
||||
}
|
||||
|
||||
calcAge() {
|
||||
return this.deathDate - this.birthDate;
|
||||
}
|
||||
}
|
||||
|
||||
// ...there was a guy named Vlad
|
||||
|
||||
const Dracula = new Vampire({
|
||||
location: 'Transylvania',
|
||||
birthDate: 1428,
|
||||
deathDate: 1476,
|
||||
weaknesses: ['Sunlight', 'Garlic']
|
||||
});
|
@ -0,0 +1,23 @@
|
||||
# Once upon a time...
|
||||
|
||||
class Vampire:
|
||||
def __init__(self, props):
|
||||
self.location = props['location']
|
||||
self.birthDate = props['birthDate']
|
||||
self.deathDate = props['deathDate']
|
||||
self.weaknesses = props['weaknesses']
|
||||
|
||||
def get_age(self):
|
||||
return self.calc_age()
|
||||
|
||||
def calc_age(self):
|
||||
return self.deathDate - self.birthDate
|
||||
|
||||
# ...there was a guy named Vlad
|
||||
|
||||
Dracula = Vampire({
|
||||
'location': 'Transylvania',
|
||||
'birthDate': 1428,
|
||||
'deathDate': 1476,
|
||||
'weaknesses': ['Sunlight', 'Garlic']
|
||||
})
|
Binary file not shown.
After Width: | Height: | Size: 516 KiB |
Loading…
Reference in New Issue