Skip to content

Instantly share code, notes, and snippets.

View sergmelikyan's full-sized avatar

Serg Melikyan sergmelikyan

View GitHub Profile
import unittest
class Solution(object):
def compareVersion(self, version1, version2):
"""
Compares two version numbers version1 and version2.
If version1 > version2 return 1, if version1 < version2 return -1,
otherwise return 0.
[
{
"op": "add",
"path": "/-",
"value": {
"?": {
"name": "Demo",
"type": "com.yourdomain.HelloWorld",
"id": "42"
},
#!/bin/bash
#input parameters
PL_PATH="$1"
PL_PASS="$2"
PL_PORT="$3"
# Write log. Redirect stdout & stderr into log file:
[
{
"op": "add",
"path": "/-",
"value": {
"?": {
"name": "Demo",
"type": "com.yourdomain.HelloWorld",
"id": "42"
}
@sergmelikyan
sergmelikyan / plone_heat.yaml
Created October 18, 2016 02:09
Plone CMS deployment using Heat and "Unified Plone UNIX Installer"
heat_template_version: 2013-05-23
parameters:
key_name:
type: string
description: Name of an existing key pair to use for the server
constraints:
- custom_constraint: nova.keypair
flavor:
type: string
import eventlet
eventlet.monkey_patch()
def main():
a = 123
# correctly displays local variable value under debugger
print a # <-- breakpoint
main()

Keybase proof

I hereby claim:

  • I am sergmelikyan on github.
  • I am sergmelikyan (https://keybase.io/sergmelikyan) on keybase.
  • I have a public key whose fingerprint is 9957 DD85 25D1 F4B9 6A5B F2A6 3123 51D4 4BE4 9D8E

To claim this, I am signing this object:

# *****************************************************************************
# This example intended to demonstrate how Applications are defined
# in MuranoPL language.
#
# Note: to keep this document as valid YAML syntetic first-level entities
# are added. All MuranoPL classes (e.g. value of MyTelnetServer entry in this
# document) should be placed in separate YAML file.
MyTelnetServer:
Namespaces: