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
#pragma strict | |
var second: float = 30; | |
var timer: Text; | |
function Start () { | |
timer = GetComponent.<Text>(); | |
} | |
function Update () { |
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
AllCops: | |
Include: | |
- '**/Rakefile' | |
- '**/config.ru' | |
Exclude: | |
- 'db/**/*' | |
- 'config/**/*' | |
- 'script/**/*' | |
- 'vendor/**/*' | |
- 'bin/**' |
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
%li.page-item.prev{ class: "#{'disabled' if current_page.first?}" } | |
= link_to (current_page.first? ? "#" : url), class: "page-link", "aria-label" => "First", :remote => remote do | |
%span{"aria-hidden" => "true"} « | |
%span.sr-only | |
= t('views.pagination.first').html_safe |
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
text = <<"EOS" | |
gem 'sass-rails' | |
gem 'uglifier' | |
gem 'coffee-rails' | |
gem 'jquery-rails' | |
gem 'turbolinks' | |
gem 'jbuilder' | |
gem 'unicorn' | |
gem 'bootstrap-sass' | |
gem 'faml' |
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
package com.example.retrofitsample; | |
import java.util.List; | |
import retrofit.Call; | |
import retrofit.http.GET; | |
import retrofit.http.Path; | |
public interface GitHubService { | |
@GET("/users/{user}/repos") |
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
package com.example.listviewsample; | |
import android.os.Bundle; | |
import android.support.v7.app.AppCompatActivity; | |
import android.support.v7.widget.Toolbar; | |
import android.widget.ListView; | |
import java.util.ArrayList; | |
public class MainActivity extends AppCompatActivity { |
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
package com.example.listviewsample; | |
import android.os.Bundle; | |
import android.support.v7.app.AppCompatActivity; | |
import android.support.v7.widget.Toolbar; | |
import android.widget.ArrayAdapter; | |
import android.widget.ListView; | |
import java.util.ArrayList; |
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
require 'benchmark' | |
ary = [] | |
1000.times { | |
ary << ['hoge', rand(100)] | |
} | |
n = 1000 | |
Benchmark.bm(25) do |x| |
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
module B | |
class << self | |
def b1 | |
[72, 64, 56, 48, 40, 32, 24, 16, 8] | |
end | |
def b2 | |
[54, 48, 42, 36, 30, 24, 18, 12, 6] | |
end |