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
| #!/usr/bin/env ruby | |
| # frozen_string_literal: true | |
| # Test script to exercise the unified cleanup_message_channel code paths | |
| # in LavinMQ's queue implementation. | |
| # | |
| # Triggers both CleanupReason::Overflow and CleanupReason::TTLChange | |
| # through various AMQP operations. | |
| # | |
| # Requires: gem install amqp-client |
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 pika | |
| import json | |
| LAVINMQ_HOST = "ada-workshop.rmq6.cloudamqp.com" | |
| USERNAME = "workshop" | |
| PASSWORD = "workshop" | |
| VHOST = "ws" | |
| QUEUE_NAME = "mange_booking_requests" | |
| credentials = pika.PlainCredentials(USERNAME, PASSWORD) |
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
| require "json" | |
| HASH = 35 | |
| NEWLINE = 10 | |
| SPACE = 32 | |
| CURLY_BRACKET_LEFT = 123 | |
| CURLY_BRACKET_RIGHT = 125 | |
| EQUALSIGN = 61 | |
| BACKSLASH = 92 | |
| QUOTE = 34 |
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
| add_newline = false | |
| format = """[$directory]()\ | |
| $git_branch$git_commit$git_state$git_status$status$character""" | |
| [directory] | |
| # truncate_to_repo = false | |
| # truncation_length = 8 | |
| fish_style_pwd_dir_length = 1 |
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
| #include <stdio.h> | |
| main(t,_,a)char *a;{return!0<t?t<3?main(-79,-13,a+main(-87,1-_, | |
| main(-86,0,a+1)+a)):1,t<_?main(t+1,_,a):3,main(-94,-27+t,a)&&t==2?_<13? | |
| main(2,_+1,"%s %d %d\n"):9:16:t<0?t<-72?main(_,t, | |
| "@n'+,#'/*{}w+/w#cdnr/+,{}r/*de}+,/*{*+,/w{%+,/w#q#n+,/#{l,+,/n{n+,/+#n+,/#\ | |
| ;#q#n+,/+k#;*+,/'r :'d*'3,}{w+K w'K:'+}e#';dq#'l \ | |
| q#'+d'K#!/+k#;q#'r}eKK#}w'r}eKK{nl]'/#;#q#n'){)#}w'){){nl]'/+#n';d}rw' i;# \ | |
| ){nl]!/n{n#'; r{#w'r nc{nl]'/#{l,+'K {rw' iK{;[{nl]'/w#q#n'wk nw' \ | |
| iwk{KK{nl]!/w{%'l##w#' i; :{nl]'/*{q#'ld;r'}{nlwb!/*de}'c \ | |
| ;;{nl'-{}rw]'/+,}##'*}#nc,',#nw]'/+kd'+e}+;#'rdq#w! nr'/ ') }+}{rl#'{n' ')# \ |
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
| #!/usr/bin/perl -w | |
| use strict; | |
| use IO::Socket::INET; | |
| use IO::Socket::SSL; | |
| use Getopt::Long; | |
| use Config; | |
| $SIG{'PIPE'} = 'IGNORE'; #Ignore broken pipe errors | |
| print <<EOTEXT; |
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
| v=0000;eval$s=%q~d=%!^Lcf<LK8, _@7gj*LJ=c5nM)Tp1g0%Xv.,S[<>YoP | |
| 4ZojjV)O>qIH1/n[|2yE[>:ieC "%.#% :::##" 97N-A&Kj_K_><wS5rtWk@*a+Y5 | |
| yH?b[F^e7C/56j|pmRe+:)B "##% ::##########" O98(Zh)'Iof*nm.,$C5Nyt= | |
| PPu01Avw^<IiQ=5$'D-y? "##: ###############" g6`YT+qLw9k^ch|K'),tc | |
| 6ygIL8xI#LNz3v}T=4W "# #. .####:#######" lL27FZ0ij)7TQCI)P7u | |
| }RT5-iJbbG5P-DHB<. " ##### # :############" R,YvZ_rnv6ky-G+4U' | |
| $*are@b4U351Q-ug5 " #######################" 00x8RR%`Om7VDp4M5 | |
| PFixrPvl&<p[]1IJ " ############:#### %#####" EGgDt8Lm#;bc4zS^ | |
| y]0`_PstfUxOC(q " .#############:##% .## ." /,}.YOIFj(k&q_V | |
| zcaAi?]^lCVYp!; " %% .################. #. " ;s="v=%04o;ev"% |
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
| 04c15929a86d1a0c4b611a8027cc03e9b9bc041ad36878570836eb99197670c57e6057729b7f51985b3321b6dafa81901e6e5ac54f452c25cb2cf5ea57dec9e846 |
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
| (ns chestnut-app.core | |
| (:require [om.next :as om :include-macros true] | |
| [om.dom :as dom :include-macros true] | |
| [compassus.core :as c] | |
| [pushy.core :as pushy] | |
| [goog.dom :as gdom] | |
| [chestnut-app.ui :as ui] | |
| [chestnut-app.parser :refer [read mutate]] | |
| [chestnut-app.util :refer [transit-post]] | |
| [chestnut-app.router :as router])) |
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
| (ns om-tutorial.mini | |
| (:require [goog.dom :as gdom] | |
| [om.next :as om :refer-macros [defui]] | |
| [om.dom :as dom])) | |
| (enable-console-print!) | |
| (def init-data | |
| {:cards [{:id 1 :title "Title 1"} | |
| {:id 2 :title "Title 2"} |
NewerOlder