Skip to content

Instantly share code, notes, and snippets.

# tmux plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
# vim mode switching delay issue (http://superuser.com/a/252717/65504)
set -s escape-time 10
set -g mouse on
Index: src/foam/nanos/crunch/ui/UCJView.js
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/foam/nanos/crunch/ui/UCJView.js b/src/foam/nanos/crunch/ui/UCJView.js
--- a/src/foam/nanos/crunch/ui/UCJView.js (revision 3cd0783ae2b1bb4649d671479f07aea9112a9e66)
+++ b/src/foam/nanos/crunch/ui/UCJView.js (revision 7204d43446b32459e7d62a4c27a61d0bc24bf868)
@@ -122,7 +122,8 @@
controllerMode:
@lchanmann
lchanmann / postal-codes.json
Created November 12, 2021 15:00 — forked from jamesbar2/postal-codes.json
Global postal codes regex formats
[{
"Note": "The first two digits (ranging from 10–43) correspond to the province, while the last two digits correspond either to the city/delivery zone (range 01–50) or to the district/delivery zone (range 51–99). Afghanistan Postal code lookup",
"Country": "Afghanistan",
"ISO": "AF",
"Format": "NNNN",
"Regex": "^\\d{4}$"
}, {
"Note": "With Finland, first two numbers are 22.",
"Country": "Åland Islands",
"ISO": "AX",
Start server - development branch
> ./build.sh -wcdj -Jbr,treviso
Configure credentials
- services
- dowJones
- secureFact
- IDM
- Kotak
- afexCredentials
{
"HttpStatusCode":200,
"Accounts":[
{
"Transactions":[
{
"Date":"2018-11-20",
"Code":null,
"Description":"ABC",
"Debit":50.00,
# Base
class Base
attr_reader :message
def initialize(message)
@message = message
end
def valid?
!message.nil?
@lchanmann
lchanmann / alice_bot.rb
Last active June 1, 2018 21:50
bob_bot_4
class AliceBot < Visitor
def respond_to_question
"Yeah, I'm listening."
end
def respond_to_yell
'🤐'
end
def respond_to_silence
@lchanmann
lchanmann / bob_bot.rb
Last active June 1, 2018 21:20
bob_bot_3
class BobBot < Visitor
def respond_to_question
'Sure.'
end
def respond_to_yell
'Woah, chill out!'
end
def respond_to_silence
@lchanmann
lchanmann / visitor.rb
Last active June 1, 2018 21:39
bob_bot_2
class Visitor
METHODS_TOBE_IMPLEMENTED = %i(
respond_to_question respond_to_yell respond_to_silence respond_to_anything)
attr_reader :message_types
def initialize(*message_types)
@message_types = message_types
end
@lchanmann
lchanmann / bob_bot.rb
Last active June 1, 2018 21:13
bobbot_1
class BobBot
def respond(message)
[Question, Yell, Silence, Anything].each do |type|
return type.respond if type.valid?(message)
end
end
end