ポートフォリオ
公開しているソフトウェアなど
UEC 休講
電気通信大学の休講情報を見れるChromeアプリケーション。
;; タイトルパーにファイルのフルパスを表示する | |
(setq frame-title-format "%f") | |
;; 行番号を表示する | |
(global-linum-mode t) | |
;; カラム番号も表示する | |
(column-number-mode t) | |
;; 空白文字を強制表示 |
#!/bin/sh | |
EMACS_REPOSITORY_PATH="Your Emacs Repository Path" | |
cd $EMACS_REPOSITORY_PATH | |
CURRENT_COMMIT_HASH=$(git rev-parse HEAD) | |
git pull |
from CO2Meter import * | |
import time | |
from datetime import datetime | |
sensor = CO2Meter("/dev/hidraw0") | |
time.sleep(5) # 認識待ち | |
data = sensor.get_data() | |
timestamp = int(time.time()) |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure("2") do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
電気通信大学の休講情報を見れるChromeアプリケーション。
name := "Scala-UEC-Kyuuko" | |
version := "1.0" | |
scalaVersion := "2.12.1" | |
libraryDependencies ++= Seq( | |
"net.ruippeixotog" %% "scala-scraper" % "1.2.0", | |
"joda-time" % "joda-time" % "2.9.7" | |
) |
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use utf8; | |
use FindBin; | |
use lib "$FindBin::Bin/../lib"; | |
use Web::Scraper; |
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
my $people = [ | |
{ first_name => 'Martry', last_name => 'McFly' }, | |
{ first_name => 'Emmett', last_name => 'Brown' }, | |
{ first_name => 'Biff', last_name => 'Tannen'}, | |
]; |
execute 'install nodebrew' do | |
command 'curl -L git.io/nodebrew | perl - setup' | |
not_if 'nodebrew help' | |
end | |
execute 'add path' do | |
command %Q(export PATH=$HOME/.nodebrew/current/bin:$PATH) | |
not_if 'cat ~/.bashrc | grep nodebrew' | |
end |
# Install Scala | |
execute 'download scala' do | |
command 'cd ~/tmp; wget http://downloads.typesafe.com/scala/2.11.6/scala-2.11.6.tgz' | |
not_if 'scala -v' | |
end | |
execute 'unzip tar file' do | |
command 'tar xzvf ~/tmp/scala-2.11.6.tgz /usr/local/' | |
not_if 'test -d /usr/local/scala' | |
end |