This file contains 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
var user_id = "自分のユーザーID"; | |
function yomiyomi(text){ | |
var synthes = new SpeechSynthesisUtterance(); | |
synthes.voiceURI = 'native'; | |
synthes.volume = 0.3; | |
synthes.rate = 1.3; | |
synthes.pitch = 1; | |
synthes.text = text; | |
synthes.lang = 'ja-JP'; |
This file contains 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
server { | |
listen 80; | |
server_name domain; | |
charset UTF-8; | |
index index.php index.html index.htm; | |
root /公開パス; | |
try_files $uri $uri/ /index.php?q=$uri&$args; | |
location ~ \.php$ { | |
root /公開パス; | |
fastcgi_pass 環境に合わせて書く; |
This file contains 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
\documentclass[slide]{beamer} | |
\usepackage{apalike} | |
\usepackage{luatexja} | |
%\usepackage[hiragino-pro]{luatexja-preset} | |
\usepackage[ipa]{luatexja-preset} | |
%%%% 見た目の設定 | |
\usetheme{Pittsburgh} | |
\setbeamertemplate{frametitle}[default][center] | |
\setbeamertemplate{navigation symbols}{} |
This file contains 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
NEWHOSTNAME=$1 | |
ROOTPASSWD=$2 | |
# Keymap | |
loadkeys jp106 | |
# Setup HDD | |
sudo parted /dev/mmcblk1 mklabel gpt | |
parted /dev/mmcblk1 mkpart ESP fat32 1MiB 551MiB | |
parted /dev/mmcblk1 mkpart primary ext4 551MiB 100% |
This file contains 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
module Tw | |
class Client::Stream | |
def initialize(user=nil) | |
user = Tw::Auth.get_or_regist_user user | |
@client = Twitter::Streaming::Client.new do |config| | |
config.consumer_key = Conf['consumer_key'] | |
config.consumer_secret = Conf['consumer_secret'] | |
config.access_token = user['access_token'] | |
config.access_token_secret = user['access_secret'] |
This file contains 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
lib = File.expand_path('../lib', __FILE__) | |
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | |
require 'tw/version' | |
Gem::Specification.new do |gem| | |
gem.name = "tw" | |
gem.version = Tw::VERSION | |
gem.authors = ["Sho Hashimoto"] | |
gem.email = ["[email protected]"] | |
gem.description = %q{CUI Twitter Client.} |
This file contains 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
require "twitter" | |
require 'json' | |
USERNAME = "********" | |
client = Twitter::REST::Client.new do |config| | |
config.consumer_key = "********" | |
config.consumer_secret = "********" | |
config.access_token = "********" | |
config.access_token_secret = "********" |
This file contains 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
require "twitter" | |
require 'json' | |
USERNAME = "********" | |
client = Twitter::REST::Client.new do |config| | |
config.consumer_key = "********" | |
config.consumer_secret = "********" | |
config.access_token = "********" | |
config.access_token_secret = "********" |
This file contains 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
##バックアップは真面目に取る | |
##特にデータベースとファイルは絶対取る | |
sudo su | |
##何もでなかったらスルー。 | |
dpkg --get-selections | grep 'hold$' | |
##何もでなかったらスルー。 | |
dpkg -l | awk '/^rc/ { print $2 }' |
This file contains 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
sudo apt update | |
sudo apt upgrade | |
sudo apt install gcc make python2.7 nodejs npm git | |
git clone git://github.com/c9/core.git c9sdk | |
cd c9sdk | |
scripts/install-sdk.sh | |
cd ~ | |
sudo mv c9sdk /opt/ | |
mkdir workspace | |
echo " /usr/bin/node /opt/c9sdk/server.js -l 127.0.0.1 -w $home/workspace" > cloud9 |
OlderNewer