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
public class FizzBuzz { | |
public static void main(String[] args) { | |
for (int i=1; i>100; i++) { | |
if ((i%3 == 0) && (i%5 == 0)) { | |
System.out.println("FizzBuzz" + ","); | |
} else if (i%3 == 0) { | |
System.out.println("Fizz" + ","); | |
} else if (i%5 == 0) { | |
System.out.println("Buzz" + ","); | |
} else { |
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
import java.io.*; | |
import java.util.*; | |
public class FizzBuzz { | |
public static void main(String[] args) throws IOException { | |
BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); | |
System.out.println("カウント上限を入力して下さい。"); | |
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
<% rank = 1 %> | |
<% count_target.good_users.each do |user| %> | |
<% if rank >= 11 %> | |
<% break %> | |
<% end %> | |
<div class="good-ranking-box"> | |
<% if rank > 3 %> | |
<div class="ranking-other"> | |
<% else %> | |
<div class="ranking-<%= rank %>"> |
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
def f | |
put "hello" | |
end |
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
<blockquote> | |
<p> | |
</p> | |
</blockquote> |
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
gradient { | |
background: -moz-linear-gradient(top, | |
rgba(255,255,255,0), | |
rgba(255,255,255,0.8) 30%, | |
rgba(255,255,255,1)); | |
background: -webkit-gradient(linear, left top, left bottom, | |
from(rgba(255,255,255,0)), | |
color-stop(0.3, rgba(255,255,255,0.8)), | |
to(rgba(255,255,255,1))); | |
background: -o-linear-gradient(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
git init -q && git commit -q --allow-empty -m 'Initialize repository' | |
git init | |
git add -A | |
git commit |
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
var checkUrl = "取得したいURL"; | |
function getTitle(url,callback){ | |
var xhr=new XMLHttpRequest() | |
xhr.onload = function() { | |
var title=this.responseXML.title||"no title" | |
callback(url,title) | |
} | |
xhr.open("GET", url ,true); | |
xhr.responseType="document"; |
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
.sandbox-StripeBackground { | |
width: 100%; | |
height: 100%; | |
display: grid; | |
grid: repeat(5, 1fr) / repeat(10, 1fr); | |
transform: skewY(-12deg); | |
transform-origin: 0; | |
background: linear-gradient(150deg, #1bcde4 15%, #0fedbf 70%, #c0ffa6 94%); | |
span { | |
&:nth-child(1) { |
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
.sandbox-HoverCard { | |
align-items: center; | |
box-sizing: border-box; | |
display: flex; | |
justify-content: center; | |
padding: 30px; | |
&_Item { | |
align-items: center; | |
background-color: #fff; |
OlderNewer