This file contains 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
#!/bin/sh | |
repo forall -c 'if git status 2> /dev/null | grep -E "modified|deleted|Untracked|Changes"; then pwd; sleep 3;tig status; fi' |
This file contains 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
from = ARGV[0] | |
to = ARGV[1] | |
puts "copy from #{from} to #{to}" | |
def run(cmd) | |
puts "Executing #{cmd}" | |
if !system(cmd) | |
raise "error while executing #{cmd}" | |
end | |
end |
This file contains 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
import std.datetime; | |
import std.stdio : writeln; | |
struct HStruct { | |
size_t c; | |
void add() { | |
c = c % 3 +1; | |
} | |
size_t get() { |
This file contains 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
require 'benchmark' | |
class ProgressListener | |
def initialize | |
s = Benchmark.bm do |x| | |
x.report('ProgressListener.initialize') do | |
@todo = 0.0 | |
@needed_tasks = {} | |
Rake::application.top_level_tasks.each do |name| | |
tasks = find_tasks_for_toplevel_task(name) | |
tasks.each do |t| |
This file contains 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
<plugin> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<configuration> | |
<source>1.5</source> | |
<target>1.5</target> | |
<excludes> | |
<exclude>org/graphstream/stream/file/FileSinkSWF.java</exclude> | |
</excludes> | |
<compilerId>eclipse</compilerId> | |
</configuration> |
This file contains 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
module pc.parser; | |
import std.stdio; | |
import std.array; | |
import std.ctype; | |
import std.string; | |
import std.conv; | |
import std.regex; | |
import std.variant; | |
import std.functional; |
NewerOlder