So, you want to use IntelliJ IDEA for your Exercism.io Java exercises?
Here’s my workflow. Note, using IntelliJ IDEA CE 14.
- [ ]
cd
to$EXERCISM_DIR/java/the-exercise
- [ ] Run
gradle idea
to generate the*.iml* and =.idea
files/dirs
<script type="text/javascript"> | |
location = 'domaintoredirectto.com'; | |
</script> |
function htmlEncode(value){ | |
return $('<div/>').text(value).html(); | |
}; |
$.ajaxPrefilter( function( options, originalOptions, jqXHR ) { | |
options.url = 'http://backbonejs-beginner.herokuapp.com' + options.url; | |
}); |
$.fn.serializeObject = function() { | |
var o = {}; | |
var a = this.serializeArray(); | |
$.each(a, function() { | |
if (o[this.name] !== undefined) { | |
if (!o[this.name].push) { | |
o[this.name] = [o[this.name]]; | |
} | |
o[this.name].push(this.value || ''); | |
} else { |
>>> class Factorial(Callable): | |
... def __init__(self): | |
... self.previous = {} | |
... def __call__(self, n): | |
... if n not in self.previous: | |
... self.previous[n] = self.compute(n) | |
... return self.previous[n] | |
... def compute(self, n): | |
... if n == 0 : return 1 | |
... return n*self.__call__(n-1) |
""" | |
Function to check if today's date is a weekend day (i.e. Saturday or Sunday) | |
""" | |
import datetime | |
def check_if_weekend(today): | |
try: | |
isinstance(today, datetime.datetime) | |
upper_limit = today + datetime.timedelta(days=(6 - today.weekday())) | |
lower_limit = today + datetime.timedelta(days=(5 - today.weekday())) |
dig -t mx website.com |
# Put in bashrc | |
export VIRTUALENVWRAPPER_VIRTUALENV="pyvenv" |
coverage | |
sphinx | |
pyflakes | |
pep8 |