電気通信大学の休講情報を見れるChromeアプリケーション。
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/sh | |
EMACS_REPOSITORY_PATH="Your Emacs Repository Path" | |
cd $EMACS_REPOSITORY_PATH | |
CURRENT_COMMIT_HASH=$(git rev-parse HEAD) | |
git pull |
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 CO2Meter import * | |
import time | |
from datetime import datetime | |
sensor = CO2Meter("/dev/hidraw0") | |
time.sleep(5) # 認識待ち | |
data = sensor.get_data() | |
timestamp = int(time.time()) |
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
# -*- 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 |
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
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" | |
) |
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 perl | |
use strict; | |
use warnings; | |
use utf8; | |
use FindBin; | |
use lib "$FindBin::Bin/../lib"; | |
use Web::Scraper; |
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 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'}, | |
]; |
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
using System; | |
namespace TwitterWebIntentSample | |
{ | |
class Program | |
{ | |
static string TWITTER_INTENT_URI = "https://twitter.com/intent/tweet?text="; | |
static void Main(string[] args) | |
{ |
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
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 |
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
# 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 |
NewerOlder