Skip to content

Instantly share code, notes, and snippets.

fizzbuzz n
| mod n 15 == 0 = "FizzBuzz"
| mod n 5 == 0 = "Buzz"
| mod n 3 == 0 = "Fizz"
| otherwise = show n
main = print $ map fizzbuzz [1..100]
@echo off
if "%1" == "" goto end
msbuild /p:configuration=%1 %2
:end
@hwada
hwada / gist:633842
Created October 19, 2010 08:34
redmine-diff-patch
Index: lib/redmine/unified_diff.rb
===================================================================
--- lib/redmine/unified_diff.rb (revision 4232)
+++ lib/redmine/unified_diff.rb (working copy)
@@ -38,9 +38,78 @@
end
end
self << diff_table unless diff_table.empty?
+
+ each do |table|
// Boost result_of library
// Copyright Douglas Gregor 2004. Use, modification and
// distribution is subject to the Boost Software License, Version
// 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// For more information, see http://www.boost.org/libs/utility
#if !defined(BOOST_PP_IS_ITERATING)
# error Boost result_of - do not include this file!
// Boost result_of library
// Copyright Douglas Gregor 2004. Use, modification and
// distribution is subject to the Boost Software License, Version
// 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// For more information, see http://www.boost.org/libs/utility
#ifndef BOOST_RESULT_OF_S_HPP
#define BOOST_RESULT_OF_S_HPP