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
| package org.csdgn.crypt; | |
| import java.util.Arrays; | |
| /** | |
| * Tested against the actual RFC. | |
| * | |
| * @author Chase (Robert Maupin) | |
| * @see {@link http://tools.ietf.org/rfc/rfc4503.txt} | |
| */ |
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
| # coding=utf-8 | |
| __author__ = 'Iurii Sergiichuk' | |
| # Text to decrypt | |
| text = u"ТЙШЛЙРН ВЧУ ЭНЩХ ЫЙМЕХД? ЧУЗИЕ ИЙХЛН УЧЖЙЧ: ИЛШФЖ" | |
| # Alphabet that encrypted message consists of (means, that in encrypted message only this letters can be encrypted) | |
| ALPHABET = u'АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ' | |
| alphabet_len = len(ALPHABET) | |
| letter_map = {} |
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 javax.net.ssl.*; | |
| import java.io.*; | |
| import java.net.URL; | |
| import java.net.URLConnection; | |
| import java.net.URLEncoder; | |
| import java.security.GeneralSecurityException; | |
| import java.security.SecureRandom; | |
| import java.security.cert.X509Certificate; | |
| import java.util.HashMap; | |
| import java.util.Map; |
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 javax.imageio.ImageIO; | |
| import java.awt.*; | |
| import java.awt.image.BufferedImage; | |
| import java.awt.image.RenderedImage; | |
| import java.io.File; | |
| import java.io.IOException; | |
| import java.util.HashMap; | |
| public class BarcodeGenerator { | |
| public static void main(String[] args) throws IOException { |
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
| package school.lemon.changerequest.java.pr1.lesson; | |
| import java.util.Arrays; | |
| /** | |
| * Created by User on 19.12.2016. | |
| */ | |
| public class Array { | |
| private int[] array; | |
| private int size; |
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
| <filetype binary="false" description="Logstash Config" name="Logstash Config"> | |
| <highlighting> | |
| <options> | |
| <option name="LINE_COMMENT" value="#" /> | |
| <option name="COMMENT_START" value="" /> | |
| <option name="COMMENT_END" value="" /> | |
| <option name="HEX_PREFIX" value="" /> | |
| <option name="NUM_POSTFIXES" value="" /> | |
| <option name="HAS_BRACES" value="true" /> | |
| <option name="HAS_BRACKETS" value="true" /> |
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 javax.xml.bind.JAXBContext; | |
| import javax.xml.bind.JAXBException; | |
| import javax.xml.bind.Marshaller; | |
| /** | |
| * Created by User on 20.03.2017. | |
| */ | |
| public class Demo { | |
| public static void main(String[] args) throws JAXBException { | |
| JAXBContext context = JAXBContext.newInstance(Type.class, InnerType.class); |
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 javax.xml.bind.*; | |
| import javax.xml.transform.Source; | |
| import javax.xml.transform.stream.StreamSource; | |
| import java.io.File; | |
| import java.io.FileInputStream; | |
| import java.io.IOException; | |
| public class Demo { | |
| public static void main(String[] args) throws JAXBException, IOException { | |
| JAXBContext context = JAXBContext.newInstance(Type.class, InnerType.class); |
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
| const glbl = global || globalThis || window; | |
| const radixes = '0123456789абвгдеёжзийклмнопрстуфхцчшщъыьэюя'; | |
| const parseInt = (text, radix) => { | |
| const actualRadix = radixes.indexOf(radix); | |
| const result = glbl.parseInt(text, actualRadix); | |
| return result; | |
| }; | |
| console.log(parseInt('210', 3)); // 21 |
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
| main: | |
| steps: | |
| - getCurrentTime: | |
| call: http.get | |
| args: | |
| url: https://us-central1-workflowsample.cloudfunctions.net/datetime | |
| result: currentDateTime | |
| - returnOutput: | |
| return: ${currentDateTime.body.dayOfTheWeek} |
OlderNewer