Skip to content

Instantly share code, notes, and snippets.

Avatar

Mikio Fujita benevolent0505

View GitHub Profile
@benevolent0505
benevolent0505 / update_emacs.sh
Last active Apr 3, 2021
Emacs build on macOS
View update_emacs.sh
#!/bin/sh
EMACS_REPOSITORY_PATH="Your Emacs Repository Path"
cd $EMACS_REPOSITORY_PATH
CURRENT_COMMIT_HASH=$(git rev-parse HEAD)
git pull
View co2-mini-metrics.py
from CO2Meter import *
import time
from datetime import datetime
sensor = CO2Meter("/dev/hidraw0")
time.sleep(5) # 認識待ち
data = sensor.get_data()
timestamp = int(time.time())
View persp-mode-setting.el
(el-get-bundle! persp-mode
:type github
:pkgname "Bad-ptr/persp-mode.el"
(persp-mode 1))
@benevolent0505
benevolent0505 / Vagrantfile
Created Mar 30, 2017
Windows上に構築中のUbuntu環境
View Vagrantfile
# -*- 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
@benevolent0505
benevolent0505 / build.sbt
Created Jan 26, 2017
UEC休講情報スクレイピングコード Scala版
View build.sbt
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"
)
@benevolent0505
benevolent0505 / scraper.pl
Created Dec 12, 2016
UEC休講情報スクレイピングスクリプト
View scraper.pl
#!/usr/bin/env perl
use strict;
use warnings;
use utf8;
use FindBin;
use lib "$FindBin::Bin/../lib";
use Web::Scraper;
View sort_hash.pl
#!/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'},
];
@benevolent0505
benevolent0505 / Portfolio.md
Last active Mar 29, 2017
ポートフォリオ
View Portfolio.md

ポートフォリオ

公開しているソフトウェアなど

UEC 休講

UEC 休講 for Chrome

電気通信大学の休講情報を見れるChromeアプリケーション。

View Program.cs
using System;
namespace TwitterWebIntentSample
{
class Program
{
static string TWITTER_INTENT_URI = "https://twitter.com/intent/tweet?text=";
static void Main(string[] args)
{
View nodejs.rb
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