Skip to content

Instantly share code, notes, and snippets.

View opaopa6969's full-sized avatar

opaopa6969 opaopa6969

View GitHub Profile
@rosylilly
rosylilly / gist:3401612
Created August 20, 2012 06:40
先輩と覚える HTTP ステータスコード

先輩に学ぶ HTTP Status Code

超雑にまとめました。修正してください。

登場人物

  • アプリケーション先輩: いつも忙しい。横に広がるのが得意(デブじゃない)。
  • 後輩: 頼んでばっかしで役に立たない。
  • サーバー先輩: アプリケーション先輩と仲がいい。Unix Socket でつながるくらい仲良し。
  • プロクシ先輩: アプリケーション先輩とかサーバー先輩と後輩の間を取り持って代わりに伝えたりしてくれる。たまに勝手にレスポンスを書き換える。
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
@stormcat24
stormcat24 / gist:2566998
Created May 1, 2012 10:09
eclipseのHTMLファイルで文字コード宣言をしないとShift-JISになってしまう問題の解決方法
plugins/org.eclipse.wst.html.core_1.1.502.v201202091936.jar のplugin.xmlファイルを修正する。
org.eclipse.core.contenttype.contentTypes部分を以下のように修正。le-extensionsからhtml, htmとかを除外する。
<extension point="org.eclipse.core.contenttype.contentTypes">
<content-type
file-extensions="htpl,wml"
priority="high"
name="%HTML_Content_Type_Extension_Element.name"
id="org.eclipse.wst.html.core.htmlsource"
base-type="org.eclipse.core.runtime.text">
@kmizu
kmizu / gist:1876800
Last active December 22, 2019 00:05 — forked from gakuzzzz/gist:1865400
Scala環境構築

Scala 開発環境構築手順

前提条件

  • JDKがinstall済みであること
  • java コマンドに環境変数Pathが通っていること