This file contains hidden or 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
# -*- coding: utf-8 -*- | |
# | |
# Usage | |
# | |
# rails new yourapp -m https://raw.github.com/gist/1976178/82f66883dcd55321a814de3648596c3046494457/rails32template.rb -T --skip-bundle | |
# | |
git :init | |
append_file '.gitignore', <<-END |
This file contains hidden or 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
#template.rb | |
remove_file "public/index.html" | |
gem 'twitter-bootstrap-rails', :group => :assets | |
gem 'therubyracer', :group => :assets | |
gem 'less-rails', :group => :assets | |
gem 'devise', :group => :assets |
This file contains hidden or 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
#!/bin/sh | |
cd ~/ | |
home=`pwd` | |
# Disable dashboard | |
defaults write com.apple.dashboard mcx-disabled -boolean YES | |
killall Dock | |
# Remove localized file |
This file contains hidden or 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
(setq rsense-home (expand-file-name "~/lib/rsense-0.3")) | |
(add-to-list 'load-path (concat rsense-home "/etc")) | |
(require 'rsense) | |
;; auco-tompleteで自動補完 | |
(add-hook 'ruby-mode-hook | |
(lambda () | |
(add-to-list 'ac-sources 'ac-source-rsense))) |
This file contains hidden or 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
;;; Classes | |
;; LaTeX::法政大学卒論 | |
(when (require 'org nil t) | |
;;(setq org-export-latex-date-format "%Y-%m-%d") | |
(setq org-export-latex-classes nil) | |
;; 抄録class | |
(add-to-list 'org-export-latex-classes | |
'("thesis" | |
" | |
\\documentclass[11pt,a4paper]{jarticle} |
This file contains hidden or 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import time | |
import sys | |
for i in xrange(101): | |
time.sleep(0.05) | |
sys.stdout.write("\r%s" % i) | |
sys.stdout.flush() |
This file contains hidden or 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
print 'test' |
This file contains hidden or 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
print """ | |
_人人人人人_ | |
> V I M < | |
 ̄YYYYY ̄ | |
""" |
This file contains hidden or 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
print ''' | |
_人人人人人_ | |
> V I M < | |
 ̄YYYYY ̄ | |
''' |
This file contains hidden or 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
#include <stdio.h> | |
#include <unistd.h> | |
int main(void) { | |
int i; | |
useconds_t delay = 20000; | |
fprintf(stderr, "Begin counting up.\n"); | |
for(i = 1; i <= 100; i++) { | |
fprintf(stderr, "%d\r", i); | |
fflush(stderr); |
OlderNewer