This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
| def-env "timers init" [] { | |
| if not ("~/.timers.nuon" | path exists) { | |
| [{name: _default, start: (date now)}] | save -f ~/.timers.nuon | |
| } | |
| if not ("~/.timers_done.nuon" | path exists) { | |
| [{name: '_default', duration: ((date now) - (date now)), ended: (date now)}] | save -f ~/.timers_done.nuon | |
| } | |
| } | |
| // This code assumes that it's run as a LinqPad script, but it's just the Main() part that assumes that. | |
| void Main() | |
| { | |
| LoopStatus(new int[]{ 1, 2, 3, 4, 5 }).Dump(); | |
| } | |
| // Define other methods and classes here | |
| public enum Iteration { |
| ! Copyright (C) 2018 Andrew Owen. | |
| ! See http://factorcode.org/license.txt for BSD license. | |
| USING: | |
| ui ui.gadgets ui.gadgets.tracks ui.gadgets.labels ui.gadgets.buttons ui.gadgets.packs ui.tools.operations | |
| ui.pens.solid ui.pens.gradient | |
| colors colors.constants | |
| accessors math.parser vocabs.loader io locals | |
| models models.arrow fry | |
| kernel strings sequences math | |
| ; |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
| #A small script for counting lines of code for projects in a list of C# code | |
| # directories. | |
| # Inspired by | |
| # http://www.limilabs.com/blog/source-lines-of-code-count-using-powershell | |
| # In the interest of berevity, I've used the following standard powershell alias's | |
| # ls = Get-ChildItem | |
| # % = Foreach-Object | |
| # ? = Where-Object | |
| # sort = Sort-Object |