#MonthOfCode - Day 4: error
My entry for the 4th day of the month of code. The theme for today is: error.
This code has errors. Fix them until it’s green!
Code after the break.
My entry for the 4th day of the month of code. The theme for today is: error.
This code has errors. Fix them until it’s green!
Code after the break.
My entry for the 3rd day of the month of code. The theme for today is: binary.
Here’s a binary clock!
Code after the break.
My entry for the 2nd day of the month of code. The theme for today is: border.
It’s not perfect, but I’ve already spent way too much time of this one :-)
Code after the break.
My entry for the 1st day of the month of code. The theme for today is: hello world.
Code after the break.
I was looking at other daily challenges ( a photo per day for a year, a drawing per day for a month (Translation)… ), and I thought it could be interesting to do it with programming.
Let’s make a month of code challenge! (details after the break)
Since I now use Hexo to generate this blog, I’ve decided to adapt my “deploy your Octopress blog via FTP“ method to Hexo.
A quick post to tell you that I’ve said goodbye to Octopress and that the blog is now generated by Hexo.
The principle is the same, it’s still a blog generated from Markdown. The main difference is that Hexo is written in JavaScript (NodeJS) while Octopress is in Ruby. Since I don’t know Ruby at all but write JavaScript everyday, it will be a lot easier for me to customize the engine.
Just a quick post to mention my employer’s technical blog where I write about electronics and programming: Joshfire Tech
Here are the two posts I’ve written so far:
Damn, someone used
git push --force
my repository (oh wait, it was me, from another computer). What do I do, now?
If you want to configure your git mail on a per-repository basis, create this git alias:
mailconfig = !sh -c 'git config user.email $(whiptail --title "git email configuration" --menu "Choose an email address" 20 78 10 --noitem "mail@server1.com" 1 "mail@server2.com" 2 3>&2 2>&1 1>&3)'
Of course, you can add as many addresses as you want (“mail” number)
Usage:
# In a git repository
git mailconfig