Skip to content

Instantly share code, notes, and snippets.

I may be slow to respond.

rmuslimov rmuslimov

I may be slow to respond.
  • Stripe
  • Belmont, CA
View GitHub Profile
View gist:0ba124ceb429160618439910c45bc8b5
0 verbose cli /usr/local/Cellar/node@18/18.13.0_1/bin/node /usr/local/opt/node@18/bin/npm
1 info using npm@8.19.3
2 info using node@v18.13.0
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 / rsp.xml
Last active January 24, 2018 16:03
View rsp.xml
<Envelope xmlns:soap-env="">
<MessageHeader xmlns:eb="" eb:version="1.0" soap-env:mustUnderstand="1">
<PartyId eb:type="URI"></PartyId>
<PartyId eb:type="URI"></PartyId>
rmuslimov / playground.clj
Created August 4, 2017 13:04
sum primes
View playground.clj
(defn prime?
(let [divides? #(zero? (mod n %))
candidates (range 2 (inc (/ n 2)))]
(and (> n 1) (not-any? divides? candidates))))
(defn sum-prime-numbers
(->> numbers
(filter prime?)
View gist:c5ddbbb5395ffe35ca5d7dd3ef3ed6a3
@import "bulmaswatch/flatly/bulmaswatch";
$cerulian: #363636;
figure img {
opacity: 0.95;
html, body, #app {
height: 100%;
View How to get all setting for
# coding: utf-8
from import BaseCommand
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
View my-sticky-w.el
(defun toggle-window-dedicated ()
"Control whether or not Emacs is allowed to display another
buffer in current window."
(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.")
View main.clj
(ns shpn.core
(:require [ :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 / endtransaction.xml
Created February 19, 2016 07:29
sabre et example
View endtransaction.xml
<SOAP-ENV:Envelope xmlns:SOAP-ENV="" xmlns:eb="" xmlns:xlink="" xmlns:xsd="" xmlns:ns="">
<eb:MessageHeader SOAP-ENV:mustUnderstand="1" eb:version="2.0">
<eb:PartyId type=""></eb:PartyId>
<eb:PartyId type=""></eb:PartyId>
rmuslimov /
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(
return etree.ETXPath(