All things programming related (editors, langs, etc.)
- javac
- ruby
- irb (the true desktop calculator)
- macVim
- GNU, GCC (compile from src please)
- go
- angular 2 cli
@Bean(name = "KafkaRouteProducer") | |
public RouteBuilder kafkaRouteProducer() { | |
return new RouteBuilder() { | |
public void configure() { | |
from("direct:kafkaRoute") | |
.to("kafka:localhost:9092?topic=test&groupId=testing&autoOffsetReset=earliest&consumersCount=1") | |
.bean(KafkaOutputBean.class); | |
} | |
}; | |
} |
#!/usr/bin/env ruby | |
ctags = %x(ctags -R -f ./.git/tag ./src) | |
lint = %x(npm run lint) | |
puts ctags | |
puts lint |
#! /usr/bin/env ruby | |
num_secs = 15 * 60 | |
message = "AUTO COMMIT" | |
while true | |
sleep(num_secs) | |
puts "executing auto-commit" | |
commit = %(git commit -vm #{message}) | |
end |
#!/usr/bin/env ruby | |
class Commit | |
attr_accessor :hash, :message | |
def initialize commit | |
line = commit.split(" ") | |
@hash = line[0] | |
@message = line[1..(line.size)].join(" ") | |
end |
body { | |
background-color: #89daca; | |
} |
cp /mingw64/bin/curl.exe /c/HashiCorp/Vagrant/embedded/bin/curl.exe |
# top-most EditorConfig file | |
root = true | |
# Unix-style newlines with a newline ending every file | |
[*] | |
end_of_line = lf | |
insert_final_newline = true | |
# Java | |
[*.java] |
function solution(A, B) { | |
if (A == B){ | |
// Same values | |
return 0; | |
} else if(A > 0 && B > 0){ | |
// Positive values | |
var left = Math.sqrt(A); | |
var right = Math.sqrt(B); | |
return (Math.floor(right) - Math.floor(left)) + 1; |
// you can write to stdout for debugging purposes, e.g. | |
// console.log('this is a debug message'); | |
function solution(S) { | |
// If there are no sentences get out quick. | |
if(S.length <= 0){ | |
return 0; | |
} | |