This file contains 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
Show hidden characters
[ | |
{ "keys": ["ctrl+shift+n"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} } | |
] |
This file contains 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
gem: --no-ri --no-rdoc |
This file contains 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
public class CesarCipher { | |
private char[] alphabet; | |
private int shift; | |
public void setAlphabet(char[] alphabet) { | |
this.alphabet = alphabet; | |
} | |
public void setShift(int shift) { |
This file contains 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
class CesarCipher | |
attr_writer :alphabet, :shift | |
def encode(plain_text) | |
# реализация | |
return encoded_text | |
end | |
end |
This file contains 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
class CesarCipher(object): | |
_alphabet = None | |
_shift = None | |
def set_alphabet(self, value): | |
self._alphabet = value | |
def set_shift(self, value): | |
self._shift = value |
This file contains 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
<?php | |
class CesarCipher { | |
private $alphabet; | |
private $shift; | |
public function setAlphabet($alphabet) | |
{ | |
$this->alphabet = $alphabet; | |
} |
This file contains 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
public class CesarCipher | |
{ | |
public char[] Alphabet { private get; set; } | |
public int Shift { private get; set; } | |
public string Encode(string plainText) | |
{ | |
// Реализация | |
return encoded_text; |
This file contains 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
#!/bin/bash | |
# convert DjVu -> PDF | |
# usage: djvu2pdf.sh <file.djvu> | |
# depends on ddjvulibre package, To install package run `sudo apt-get install ddjvulibre` | |
i="$1" | |
echo "------------ converting $i to PDF ----------------"; | |
o="`basename $i .djvu`" | |
o="$o".pdf |
This file contains 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
""" | |
An alternative Django ``TEST_RUNNER`` which uses unittest2 test discovery from | |
a base path specified in settings, rather than requiring all tests to be in | |
``tests`` module of an app. | |
If you just run ``./manage.py test``, it'll discover and run all tests | |
underneath the ``TEST_DISCOVERY_ROOT`` setting (a path). If you run | |
``./manage.py test full.dotted.path.to.test_module``, it'll run the tests in | |
that module (you can also pass multiple modules). |
This file contains 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
#coding=utf-8 | |
from unittest import TestCase | |
class XmlSerializable(object): | |
def to_xml(self): | |
raise NotImplementedError("This must implemented in all XmlSerializable objects") | |
class Document(XmlSerializable): |
OlderNewer