I hereby claim:
- I am pilosus on github.
- I am pilosus (https://keybase.io/pilosus) on keybase.
- I have a public key ASB_iFYud-BE_njrIsrogstPTQGd_qt15lJ9EpyO8ATWVAo
To claim this, I am signing this object:
package org.stepic.java.module5.dos2unix; | |
import java.io.*; | |
import org.junit.Assert; | |
import java.util.Arrays; | |
/** | |
* Created by vitaly on 02/10/16. | |
* | |
* In order to have your JUnit test working, add this Java Class file into your package, |
package org.stepic.java.module5.dos2unix; | |
import java.io.*; | |
import org.junit.Assert; | |
import java.util.Arrays; | |
/** | |
* Created by vitaly on 02/10/16. | |
* | |
* In order to have your JUnit test working, add this Java Class file into your package, |
package org.stepic.java.module5.parseNums; | |
import java.io.*; | |
import org.junit.Assert; | |
/** | |
* Created by vitaly on 02/10/16. | |
* | |
* In order to have your JUnit test working, add this Java Class file into your package, | |
* then add JUnit 4 jar to the project's classpath: |
package org.stepic.java.module5.serializationDemo; | |
import java.io.*; | |
import java.nio.file.Files; | |
import java.nio.file.Path; | |
import java.nio.file.Paths; | |
import java.time.LocalDate; | |
/** | |
* Created by vitaly on 03/10/16. |
package org.stepic.java.module5.animalSerialization; | |
import java.io.Serializable; | |
import java.io.*; | |
import java.util.Objects; | |
/** | |
* Created by vitaly on 03/10/16. | |
*/ | |
public class Animal implements Serializable { |
package org.stepic.java.module5.animalSerialization; | |
import org.junit.Test; | |
import static org.junit.Assert.*; | |
/** | |
* Created by vitaly on 03/10/16. | |
*/ | |
public class AnimalTest { |
class Comment(db.Model): | |
"""Comment is a message under a post. | |
Comment that has a parent treated as a reply. Comment with replies | |
(children) represents n-ary tree. | |
""" | |
__tablename__ = 'comments' | |
id = db.Column(db.Integer, primary_key=True) | |
parent_id = db.Column(db.Integer, db.ForeignKey('comments.id')) |
I hereby claim:
To claim this, I am signing this object:
(def openning ["(" "[" "{"]) | |
(def closing [")" "]" "}"]) | |
(def parens (zipmap openning closing)) | |
(defn parens-balanced? | |
[s] | |
(loop [input-string s | |
stack []] | |
(if (empty? input-string) | |
(empty? stack) |
from datetime import datetime, timedelta | |
from dateutil.relativedelta import relativedelta | |
# working hours: 10:00 to 18:59 | |
day_start = 0 | |
day_end = 23 | |
work_start = 10 | |
work_end = 18 |