This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function * range(n, end, step = 1) { | |
if (typeof end === "undefined") { | |
end = n; | |
n = 0; | |
} | |
if (step === 0) { | |
throw Error("step must not be zero") | |
} | |
if (end > n && step > 0) { | |
for (let i = n; i < end; i += step) yield i; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4317.pdf | |
#include <iterator> | |
namespace n4317 | |
{ | |
namespace internal | |
{ | |
template <typename RanIter, typename Dist> | |
void advance_helper(RanIter & i, RanIter e, Dist n, std::random_access_iterator_tag) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
(inpath, outpath, org, dst = $*) | |
unless inpath && outpath && org && dst | |
puts "usage: conv_exs infile outfile org dst" | |
exit 1 | |
end | |
binstr = nil |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
Dir.chdir($*[0]) if $*[0] | |
open("Encoding Errors.txt") do |f| | |
f.each do |line| | |
org, new = line.split("->").map{|x| x.strip} | |
if new && new != "New File Name" | |
`mv "#{new}" "#{org}"` | |
end |
NewerOlder