Skip to content

Instantly share code, notes, and snippets.

View rmuslimov's full-sized avatar
:octocat:
I may be slow to respond.

rmuslimov rmuslimov

:octocat:
I may be slow to respond.
  • Stripe
  • Belmont, CA
View GitHub Profile
0 verbose cli /usr/local/Cellar/node@18/18.13.0_1/bin/node /usr/local/opt/node@18/bin/npm
1 info using [email protected]
2 info using [email protected]
3 timing npm:load:whichnode Completed in 1ms
4 timing config:load:defaults Completed in 1ms
5 timing config:load:file:/usr/local/Cellar/node@18/18.13.0_1/lib/node_modules/npm/npmrc Completed in 3ms
6 timing config:load:builtin Completed in 3ms
7 timing config:load:cli Completed in 1ms
8 timing config:load:env Completed in 0ms
9 timing config:load:file:/Users/rmuslimov/workspace/diogenes/.npmrc Completed in 1ms
@rmuslimov
rmuslimov / rsp.xml
Last active January 24, 2018 16:03
<Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
<Header>
<MessageHeader xmlns:eb="http://www.ebxml.org/namespaces/messageHeader" eb:version="1.0" soap-env:mustUnderstand="1">
<From>
<PartyId eb:type="URI">webservices.sabre.com</PartyId>
</From>
<To>
<PartyId eb:type="URI">getgoing.com</PartyId>
</To>
<CPAId>J92H</CPAId>
@rmuslimov
rmuslimov / playground.clj
Created August 4, 2017 13:04
sum primes
(defn prime?
[n]
(let [divides? #(zero? (mod n %))
candidates (range 2 (inc (/ n 2)))]
(and (> n 1) (not-any? divides? candidates))))
(defn sum-prime-numbers
[numbers]
(->> numbers
(filter prime?)
@import "bulmaswatch/flatly/bulmaswatch";
$cerulian: #363636;
figure img {
opacity: 0.95;
}
html, body, #app {
height: 100%;
# coding: utf-8
"""
=============================================================
airborne.core.accounts.management.commands.get_all_rate_codes
=============================================================
"""
from django.core.management import BaseCommand
@rmuslimov
rmuslimov / my-sticky-w.el
Created May 11, 2016 17:46
This is the way how to make some window in emacs fixed in layout
(defun toggle-window-dedicated ()
"Control whether or not Emacs is allowed to display another
buffer in current window."
(interactive)
(message
(if (let (window (get-buffer-window (current-buffer)))
(set-window-dedicated-p window (not (window-dedicated-p window))))
"%s: Can't touch this!"
"%s is up for grabs.")
(ns shpn.core
(:gen-class)
(:require [clojure.java.io :as io]
[clojure.string :as s]))
(def input "nodes.txt")
(def findA "Node3")
(def findB "Node4")
(defn read-source
# coding: utf-8
from itertools import dropwhile
input = 'nodes.txt'
findA = 'Node3'
findB = 'Node4'
def read_source():
@rmuslimov
rmuslimov / endtransaction.xml
Created February 19, 2016 07:29
sabre et example
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:eb="http://www.ebxml.org/namespaces/messageHeader" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns:ns="http://webservices.sabre.com/sabreXML/2011/10">
<SOAP-ENV:Header>
<eb:MessageHeader SOAP-ENV:mustUnderstand="1" eb:version="2.0">
<eb:From>
<eb:PartyId type="urn:x12.org:IO5:01">getgoing.com</eb:PartyId>
</eb:From>
<eb:To>
<eb:PartyId type="urn:x12.org:IO5:01">webservices.sabre.com</eb:PartyId>
</eb:To>
<eb:CPAId>0O0G</eb:CPAId>
@rmuslimov
rmuslimov / compare.py
Last active February 19, 2016 04:58
Python version of parsing
import os
from datetime import datetime
from lxml import etree
def import_file(filename):
with open(filename) as f:
body = etree.fromstring(f.read())
return etree.ETXPath(