Rubyのインストールにはrbenvを使います。
sudo apt-get -y install libncurses5-dev build-essential libreadline-dev libssl-dev libcurl4-openssl-dev zlib1g-dev libxml2-dev libxslt-dev git
--============================== | |
-- Extract Keynote Presenter Notes to TextEdit | |
-- Refered to https://gist.github.com/benwaldie/9955151 | |
--============================== | |
tell application "Keynote" | |
if (front document exists) = false then | |
display alert "Unable to proceed." message "Please open a presentation in Keynote." | |
return | |
end if |
require 'nokogiri' | |
require 'open-uri' | |
require 'json' | |
id = ARGV.first | |
url = 'https://www.instagram.com/p/' + id | |
f = open(url) | |
doc = Nokogiri::HTML.parse(f.read) |
<div align="center"> | |
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel" style="width: 500px;"> | |
<!-- Indicators --> | |
<ol class="carousel-indicators"> | |
<% @ideas.count.times do |i| %> | |
<li data-target="#carousel-example-generic" data-slide-to="<%= i %>" class="<%= i == 0 ? 'active' : '' %>"></li> | |
<% end %> | |
</ol> |
#include <LiquidCrystal.h> | |
#define RS 12 | |
#define ENABLE 11 | |
#define DB4 10 | |
#define DB5 7 | |
#define DB6 9 | |
#define DB7 8 | |
#define SW_ESC 19 |
#!/bin/bash | |
#---------------------------------------# | |
# 設定開始 # | |
#---------------------------------------# | |
# WANインタフェース名定義 | |
WAN=eth0 | |
# VPNネットワークの範囲 |