Skip to content

Instantly share code, notes, and snippets.

using System;
public class RomanNumeralsGenerator {
public string ToRoman(int number)
{
var romanNumerals = new string[][]
{
new string[]{"", "I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX"}, // ones
new string[]{"", "X", "XX", "XXX", "XL", "L", "LX", "LXX", "LXXX", "XC"}, // tens
new string[]{"", "C", "CC", "CCC", "CD", "D", "DC", "DCC", "DCCC", "CM"}, // hundreds

Keybase proof

I hereby claim:

  • I am vksvicky on github.
  • I am vksvicky (https://keybase.io/vksvicky) on keybase.
  • I have a public key whose fingerprint is FF8E 85A0 04DA 3530 4BB0 A10D 4715 2C4E C5E4 28B5

To claim this, I am signing this object:

#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
5:59:05 INFO [Server ] jetty-8.1.0.v20120127
15:59:08 INFO [ContextHandler ] started o.e.j.w.WebAppContext{/,file:/Users/vivek/Development/mamute/src/main/webapp/}
15:59:08 INFO [ContextHandler ] started o.e.j.w.WebAppContext{/,file:/Users/vivek/Development/mamute/src/main/webapp/}
15:59:08 WARN [AbstractLifeCycle ] FAILED vraptor: javax.servlet.ServletException: Dependencies were not set. Do you have a Weld/CDI listener setup in your web.xml?
javax.servlet.ServletException: Dependencies were not set. Do you have a Weld/CDI listener setup in your web.xml?
at br.com.caelum.vraptor.VRaptor.validateIfCdiIsFound(VRaptor.java:156)
at br.com.caelum.vraptor.VRaptor.init(VRaptor.java:89)
at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:114)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:753)
@vksvicky
vksvicky / gist:ae0b83abab3d4d70ad5a
Created May 23, 2014 11:37
Mamute IDE deployment log
2014-05-23 12:29:17.565:INFO:oejs.Server:main: jetty-9.1.5.v20140505
2014-05-23 12:29:17.954:INFO:oejdp.ScanningAppProvider:main: Deployment monitor [file:/Users/vivek/Development/servers/jetty9/webapps/] at interval 1
2014-05-23 12:29:17.980:INFO:oejdp.ScanningAppProvider:main: Deployment monitor [file:/private/var/folders/sh/cgd9b9c54_zcgh8z6063j7xr0000gn/T/context3372012580416587675deploy/] at interval 1
2014-05-23 12:29:18.107:INFO:oejs.ServerConnector:main: Started ServerConnector@1d8fb1db{HTTP/1.1}{0.0.0.0:8080}
2014-05-23 12:29:18.126:INFO:oejs.Server:main: Started @16330ms
Connected to server
[2014-05-23 12:29:18,314] Artifact mamute:war exploded: Artifact is being deployed, please wait...
2014-05-23 12:29:23 JRebel: Monitoring Log4j configuration in 'file:/Users/vivek/Development/mamute/target/mamute-1.0.2-SNAPSHOT/WEB-INF/classes/log4j.xml'.
12:29:44 INFO [EnhancedListener ] Initialize Weld using ServletContainerInitializer
12:29:45 INFO [Version ] WELD-000900: 2.2.0 (CR2)
(function($){
$.worldClock = function(clockElement, opts) {
var settings =$.extend( {}, $.worldClock.defaults, opts, getMetadata(clockElement));
return setInterval((function() {
updateClock(clockElement, settings);
return arguments.callee;
})(), settings.interval);
};
$.worldClock.defaults = {