- dummy.tex
- newtheorem.tex
- roman.tex
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# | |
# save-fig.coffee | |
# | |
# Copyright (c) 2016 Junpei Kawamoto | |
# | |
# This software is released under the MIT License. | |
# | |
# http://opensource.org/licenses/mit-license.php | |
# | |
$ = require "jquery" |
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/bash | |
cat <<EOF > /var/gcloud | |
#!/bin/bash | |
(docker images geertjohan/google-cloud-sdk-with-docker || docker pull geertjohan/google-cloud-sdk-with-docker) > /dev/null; | |
docker run -t -i --net="host" -v $HOME/.config:/.config -v /var/run/docker.sock:/var/run/docker.sock geertjohan/google-cloud-sdk-with-docker gcloud "\$@" | |
EOF | |
chmod 0755 /var/gcloud | |
cat <<EOF > /var/gcutil |
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/bash | |
git clone https://github.com/hypriot/arm-compose.git | |
cd arm-compose | |
VERSION=$(cat VERSION) | |
git clone -b $VERSION https://github.com/docker/compose | |
cp -r patches/* compose/ | |
cd compose | |
script/build-linux |
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
function fzf-select-history() { | |
BUFFER=$(history -n -r 1 | fzf --query "$LBUFFER") | |
CURSOR=$#BUFFER | |
zle reset-prompt | |
} | |
zle -N fzf-select-history | |
bindkey '^r' fzf-select-history |
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
#include <stdio.h> | |
#include <string.h> | |
const int MAX_BUFFER = 256; | |
int main(){ | |
FILE *fp; | |
fp = fopen("./zenki.csv", "r"); |
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/bash | |
URL=$(curl http://metadata/computeMetadata/v1/instance/attributes/startup -H "Metadata-Flavor: Google") | |
docker pull google/cloud-sdk | |
cd /tmp | |
docker run -t --rm google/cloud-sdk /google-cloud-sdk/bin/gsutil cat $URL | tr -d "\r" > startup.sh | |
chmod a+x startup.sh | |
./startup.sh |