Skip to content

Instantly share code, notes, and snippets.

😇
busy

Yuya Matsushima yterajima

😇
busy
Block or report user

Report or block yterajima

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View 20190502.vimrc
set fileencodings=utf-8,ucs-bom,euc-jp,iso-2022-jp,sjis,cp932,utf-16,utf-16le
"scriptencoding utf-8
"set verbosefile=~/vimlog
call plug#begin('~/.vim/plugged')
Plug 'prabirshrestha/async.vim'
Plug 'prabirshrestha/asyncomplete.vim'
Plug 'prabirshrestha/asyncomplete-lsp.vim'
Plug 'prabirshrestha/vim-lsp'
@yterajima
yterajima / filter.go
Created Nov 18, 2016
構造体スライスを使って sort 実装
View filter.go
package main
import (
"fmt"
"log"
"sort"
"strings"
)
type filter struct {
View middleman-kouza.md

Middleman 講座

概要

Middleman を実践で採用できるように基礎を中心にデプロイができるまでを目標としたマンツーマンオンライン講座です。

内容

  • Middleman の基礎〜デプロイ
    • Ruby 環境の用意
@yterajima
yterajima / slim_lint.vim
Created Apr 22, 2015
vimで保存時にslimの構文チェックする
View slim_lint.vim
"gem install slim_lint が必要
function! SlimLint()
let slim_lint = "slim-lint"
silent cexpr system(slim_lint . " " . shellescape(expand('%')))
copen
endfunction
"augroupで適当にくくったほうがいい
autocmd BufWritePost *.slim call SlimLint()
@yterajima
yterajima / sitemap.go
Last active Aug 29, 2015
sitemap.xmlを読み込んでデータをよしなにする
View sitemap.go
package main
import (
"encoding/xml"
"fmt"
"io/ioutil"
"net/http"
"os"
)
@yterajima
yterajima / api.rb
Last active Aug 29, 2015
Middleman Directory API Test (Ruby 1.9.3)
View api.rb
# Middleman Directory API test
# Ruby v1.9.3-p551 (rbenv)
require 'open-uri'
require 'json'
amicus = 'https://directory.middlemanapp.com/api/amicus.json'
uri = ::URI.parse(amicus)
p uri.read
View index.php
<div class="sample">
<?php if ($hoge === true):?>
<div class="inner">
<p>
hogehoge
</p>
<p>
<?php echo $hoge;?>
</p>
</div>
View middleman_typescript.feature
Feature: Middleman-Typescript
Scenario: Middleman build
Given a fixture app "basic-app"
And a file named "config.rb" with:
"""
ignore "source/typescripts/*"
activate :typescript
"""
And a successfully built app at "basic-app"
View layout.slim
doctype html
html
head
meta charset="utf-8"
meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"
title
== current_page.data.title || 'VirtKick, a 1-Click Cloud Management Center'
meta name="description" content="A simple yet powerful cloud management center. Use on your laptop, home server or in the data center! 100% open source."
meta name="viewport" content="width=device-width"
link rel="shortcut icon" href="/favicon.ico"
View 観光協会サイトトラブル.md

東吾妻町観光協会リニューアル問題点

全体

  • copyright 表記があるページとないページがある
  • copyright 表記の形式が誤っている

Topページ

  • ヘッダーの画像とリンク類の位置と背景の横線がずれてる
You can’t perform that action at this time.