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
let x = 1930; | |
let len = (x as f64).log10().floor() as u32 + 1; | |
let mut digits = (0..len) | |
.map(|i| (x / 10u64.pow(i)) % 10) | |
.collect::<Vec<u64>>(); | |
digits.sort_unstable(); | |
let mut answer: u64 = 0; | |
for (i, v) in digits.iter().enumerate() { | |
answer += v * 10u64.pow(i as u32); | |
} |
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
bartek@computingmachine:~$ cat wojtek | |
#!/usr/bin/env bash | |
wojtek="$(stat -L -c %f $1)" | |
case $((16#$wojtek >> 12)) in | |
1) echo FIFO ;; | |
2) echo Character dev ;; | |
4) echo Directory ;; | |
6) echo Block dev ;; | |
8) echo Regular file ;; |
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
2015.10.29 16:52:50 ERROR [o.s.s.c.t.CeWorkerRunnableImpl] Failed to execute task AVC0hButKV3w6spAcebm | |
java.lang.IllegalArgumentException: Multiple entries with same key: scala=Scala and scala=Scala | |
at com.google.common.collect.ImmutableMap.checkNoConflict(ImmutableMap.java:150) ~[guava-17.0.jar:na] | |
at com.google.common.collect.RegularImmutableMap.checkNoConflictInBucket(RegularImmutableMap.java:104) ~[guava-17.0.jar:na] | |
at com.google.common.collect.RegularImmutableMap.<init>(RegularImmutableMap.java:70) ~[guava-17.0.jar:na] | |
at com.google.common.collect.ImmutableMap$Builder.build(ImmutableMap.java:254) ~[guava-17.0.jar:na] | |
at com.google.common.collect.Maps.uniqueIndex(Maps.java:1166) ~[guava-17.0.jar:na] | |
at com.google.common.collect.Maps.uniqueIndex(Maps.java:1140) ~[guava-17.0.jar:na] | |
at org.sonar.server.computation.language.LanguageRepositoryImpl.<init>(LanguageRepositoryImpl.java:46) ~[sonar-server-5.2-RC4.jar:na] | |
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.8.0_6 |
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
diff -pruN nqp-2013.11.orig/3rdparty/dyncall/buildsys/gmake/targets.gmake nqp-2013.11/3rdparty/dyncall/buildsys/gmake/targets.gmake | |
--- nqp-2013.11.orig/3rdparty/dyncall/buildsys/gmake/targets.gmake 2013-11-22 11:11:38.000000000 +0100 | |
+++ nqp-2013.11/3rdparty/dyncall/buildsys/gmake/targets.gmake 2013-12-23 22:08:24.000000000 +0100 | |
@@ -76,13 +76,13 @@ endif | |
dirs: $(DIRS) | |
ifdef DIRS | |
$(DIRS): | |
- $(MAKE_COMMAND) -C $@ $(MAKECMDGOALS) | |
+ $(MAKE) -C $@ $(MAKECMDGOALS) | |
endif |