View activity_board.xml
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
<?xml version="1.0" encoding="utf-8"?> | |
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
tools:context=".BoardActivity"> | |
<com.skelterjohn.tronimoes.BoardView | |
android:id="@+id/board_view" |
View gist:da7be6b2fe903056a164e4505bca61e2
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
network: | |
forwarded_ports: | |
- 8080:5000 |
View gist:72052ec4969e07d7d6758cdefd36be5b
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
===== a.py ===== | |
import b | |
def foo(): | |
b.funAndUsefulStuff() | |
if __name__ == "__main__": | |
foo() | |
================ |
View gist:699bb9d71e65f8fb4727c9828ed05b00
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
$ cat fpe.c | |
#include <stdio.h> | |
int main(int argc, char** argv) { | |
printf("%f\n", 1.0/3+1.0/3+1.0/3) | |
return 0 | |
} | |
$ gcc -o fpe fpe.c | |
$ ./fpe | |
1.000000 |
View gist:41710b4fdbc38ac38c74f8cb02ac1c36
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
/* | |
Copyright 2017 Google Inc. All rights reserved. | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software | |
distributed under the License is distributed on an "AS IS" BASIS, | |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
See the License for the specific language governing permissions and |
View gist:25c61457ff1b5407a23c6359f0e8061f
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
~$ docker run --env HOME=/cb -it ubuntu | |
root@e033c3417a31:/# cd | |
bash: cd: /cb: No such file or directory | |
root@e033c3417a31:/# mkdir /cb | |
root@e033c3417a31:/# cd | |
root@e033c3417a31:~# bash -c 'echo $HOME' | |
/cb |
View gist:029e745c6ccdb4876de7af3be0392f54
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
~/tmp/vmount$ docker build -t f . | |
Sending build context to Docker daemon 2.56 kB | |
Step 1 : FROM ubuntu | |
---> f7b3f317ec73 | |
Step 2 : RUN mkdir /myvol | |
---> Using cache | |
---> dc492baa6d8d | |
Step 3 : RUN echo "hello world" > /myvol/greeting | |
---> Using cache | |
---> 9094f8931b89 |
View gist:672fdcfed49aadd14834baff99de6424
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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"runtime" | |
"strings" | |
"sync" | |
) |
View gist:11102364
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
### Keybase proof | |
I hereby claim: | |
* I am skelterjohn on github. | |
* I am skelterjohn (https://keybase.io/skelterjohn) on keybase. | |
* I have a public key whose fingerprint is C9C7 4C86 285C CDA8 EEE3 D652 32EF D206 7A14 956A | |
To claim this, I am signing this object: |
View gist:3743756
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
// code for http://gowithconfidence.tumblr.com/post/31797884887/limit-buffers | |
package main | |
import ( | |
"bytes" | |
"errors" | |
"fmt" | |
"io" | |
"sync" |
NewerOlder