Skip to content

Instantly share code, notes, and snippets.

@benevolent0505
benevolent0505 / init.el
Created Oct 10, 2021
Emacs for TypeScript
View init.el
;; package.el
(require 'package)
(setq package-archives
'(("melpa" . "https://melpa.org/packages/")
("org" . "https://orgmode.org/elpa/")
("gnu" . "https://elpa.gnu.org/packages/")))
;; (package-refresh-contents)
(package-initialize)
;; emacs 28
@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
@benevolent0505
benevolent0505 / init.el
Last active Feb 18, 2019
コピペで出来るEmacs便利設定
View init.el
;; タイトルパーにファイルのフルパスを表示する
(setq frame-title-format "%f")
;; 行番号を表示する
(global-linum-mode t)
;; カラム番号も表示する
(column-number-mode t)
;; 空白文字を強制表示
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 / Portfolio.md
Last active Mar 29, 2017
ポートフォリオ
View Portfolio.md

ポートフォリオ

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

UEC 休講

UEC 休講 for Chrome

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

@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'},
];