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
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 |
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
<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> |
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
(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?) |
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
@import "bulmaswatch/flatly/bulmaswatch"; | |
$cerulian: #363636; | |
figure img { | |
opacity: 0.95; | |
} | |
html, body, #app { | |
height: 100%; |
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 | |
""" | |
============================================================= | |
airborne.core.accounts.management.commands.get_all_rate_codes | |
============================================================= | |
""" | |
from django.core.management import BaseCommand |
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
(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.") |
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
(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 |
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 itertools import dropwhile | |
input = 'nodes.txt' | |
findA = 'Node3' | |
findB = 'Node4' | |
def read_source(): |
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
<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> |
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
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( |
NewerOlder