Skip to content

Instantly share code, notes, and snippets.

@shoya140
shoya140 / gist:7113770
Last active December 26, 2015 07:18
現在のコミットログとは別ツリーでgh-pagesブランチが作れる
git checkout --orphan gh-pages
git rm -rf .
s/!\[\](\(.*\))/<img src="\1" class="image-on-frame image-fade">
#git
source ~/git-prompt.sh
source ~/git-completion.bash
GIT_PS1_SHOWDIRTYSTATE=true
export PS1='\[\033[32m\]\u@\h\[\033[00m\]$(__git_ps1)\[\033[00m\]\$ '
# Xcode
*/build/*
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
//
// ViewController.m
// CountSample
//
// Created by Shoya Ishimaru on 13/03/30.
// Copyright (c) 2013年 Shoya Ishimaru. All rights reserved.
//
#import "ViewController.h"
//
// ViewController.m
// CountSample
//
// Created by Shoya Ishimaru on 13/03/30.
// Copyright (c) 2013年 Shoya Ishimaru. All rights reserved.
//
#import "ViewController.h"
set nocompatible
filetype off
if has('vim_starting')
set runtimepath+=~/.vim/bundle/neobundle.vim/
call neobundle#rc(expand('~/.vim/bundle/'))
endif
NeoBundle 'Shougo/neobundle.vim'
NeoBundle 'Shougo/vimfiler'
export CLICOLOR=1
export LSCOLORS=CxGxcxdxCxegedabagacad
MAX = 100;
x = rand(MAX, MAX);
s = ones(MAX, 1) * sum(x);
%良くないアルゴリズム
%for i = 1:MAX
% for j = 1:MAX
% ans(j, i) = x(j, i)/s(j, i);
% end
%end
program timer
integer time_max, i
i = 0
print *, "This program will tell you when X seconds is up."
print *, "Please input X(Real number psease) and push ENTER."
read *, time_max
!count down