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 bash | |
# 各画像フォーマットの作成 | |
convert -size 100x100 xc:white -fill red -draw 'circle 50,50 25,25' 20161205_xxx_100x100.gif | |
convert 20161205_xxx_100x100.gif gif87:20161205_gif87a_100x100.gif | |
convert 20161205_xxx_100x100.gif 20161205_xxx_100x100.jpg | |
convert 20161205_xxx_100x100.gif 20161205_xxx_100x100.jpeg | |
convert 20161205_xxx_100x100.gif 20161205_xxx_100x100.png | |
# 透過画像 |
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
from random import randint | |
NUM = 1000 | |
def main(): | |
days = 365 | |
for n in range(1, days + 1): |
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
FROM ubuntu:latest | |
RUN apt-get update && apt-get -y upgrade | |
RUN apt-get -y install build-essential | |
RUN apt-get -y install python3-dev | |
RUN apt-get -y install curl | |
RUN cd /usr/bin \ | |
&& ln -s python3 python | |
RUN curl -kL https://bootstrap.pypa.io/get-pip.py | python |
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/python3 | |
import sys | |
import time | |
print("start") | |
i = 1 | |
while True: | |
if i % 5 == 0: |
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
docker run -p 8080:8080 -d tomcat:7 |
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
ROM ubuntu:latest | |
RUN apt-get update && apt-get -y upgrade | |
RUN apt-get -y install build-essential | |
RUN apt-get -y install git | |
RUN apt-get -y install python | |
RUN apt-get -y install python3 |
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
<script> | |
$(function() { | |
$("form :submit").prop("disabled", true); | |
var getValues = function() { | |
return $("form :input").map(function() { | |
return $(this).val(); | |
}).get(); | |
} |
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
#!/bin/bash | |
hadoop="/usr/bin/hadoop" | |
STREAMING=/opt/cloudera/parcels/CDH/lib/hadoop-mapreduce/hadoop-streaming.jar | |
cwd=`pwd` | |
mapper="${cwd}/getcvlist.py" | |
reducer="${cwd}/getcvlist.py" | |
echo $1 $2 |
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
print >> sys.stderr, "reporter:counter: %s,%s,%d" % (self.group, self.name, value,) |
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
for member in dir(module): | |
if re.match(r"^[A-Z][A-Z_]+$", member): | |
sys.modules[__name__].__dict__[member] = module.__dict__[member] |