1. 作業ディレクトリ 2. ステージングエリア(インデックス) 3. リポジトリ(ローカル、リモート)
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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Click Counter</title> | |
<style> | |
body { | |
background-image: linear-gradient(-45deg, #daea6a 25%, #fff 25%, #fff 50%, #daea6a 50%, #daea6a 75%, #fff 75%, #fff); | |
background-size: 3px 3px; |
RVMのインストール https://rvm.io/rvm/install/#explained
安定版のインストール
\curl -L https://get.rvm.io | bash -s stable
=== 開発版のインストール
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
rvm : rubyのバージョンマネージャー | |
ruby: | |
gemset: | |
rails gem: | |
------- | |
xcode | |
java |
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
新しいRailsプロジェクトを作る | |
$ rails new myapp | |
新しいGemをインストールする必要がない場合 | |
※rails new my app --skip-bundle | |
myappの中に移動 | |
$ cd myapp |
#なんだかんだ
##えーと1 どういうこういう そういうどういう
##えーと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
<?php | |
/* | |
if (is_uploaded_file($_FILES["file"]["tmp_name"])) { | |
if (move_uploaded_file($_FILES["file"]["tmp_name"], "csv/" . $_FILES["file"]["name"])) { | |
chmod("csv/" . $_FILES["file"]["name"], 0644); | |
} |
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
// URLの任意のパラメータから値を取得 | |
function get_param_val($atts) { | |
extract(shortcode_atts(array( | |
"name" => "" | |
), $atts)); | |
$val = (isset($_GET[$name]) && $_GET[$name] != "") ? $_GET[$name] : ""; | |
$val = htmlspecialchars($val, ENT_QUOTES); |
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
///////////////////////////////// | |
//TOPへ戻るボタン | |
///////////////////////////////// | |
jQuery(function(){ | |
jQuery(window).scroll(function(){ | |
//最上部から現在位置までの距離を取得して、変数[now]に格納 | |
var now = jQuery(window).scrollTop(); | |
//最上部から現在位置までの距離(now)が600以上 | |
if(now > 600){ | |
//[#page-top]をゆっくりフェードインする |
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
<?php | |
class Get_file_name { | |
private $dir; | |
private $pattern; | |
public $match_word; | |
function __construct($d, $p) { | |
$this->dir = $d; |
OlderNewer