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
[ | |
{ | |
"model": "major_city.district", | |
"pk": 1, | |
"fields": { | |
"name": "北海道" | |
} | |
}, | |
{ | |
"model": "major_city.district", |
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
2597406934722172416615503402127591541488048538651769658472477070395253454351127368626555677283671674475463758722307443211163839947387509103096569738218830449305228763853133492135302679278956701051276578271635608073050532200243233114383986516137827238124777453778337299916214634050054669860390862750996639366409211890125271960172105060300350586894028558103675117658251368377438684936413457338834365158775425371912410500332195991330062204363035213756525421823998690848556374080179251761629391754963458558616300762819916081109836526352995440694284206571046044903805647136346033000520852277707554446794723709030979019014860432846819857961015951001850608264919234587313399150133919932363102301864172536477136266475080133982431231703431452964181790051187957316766834979901682011849907756686456845066287392485603914047605199550066288826345877189410680370091879365001733011710028310473947456256091444932821374855573864080579813028266640270354294412104919995803131876805899186513425175959911520563155337703996941035518275274919959802 |
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 jp.mydns.akanekodou.scala | |
import math.Rational | |
object Main extends App { | |
// ここから | |
implicit val RationalIsFractional = new Fractional[Rational] { | |
// compare の実装 | |
def compare(x : Rational, y : Rational) : Int = | |
(x.numerator * y.denominator) compare (x.denominator * y.numerator) |
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.util.stream.IntStream; | |
import java.util.List; | |
import java.time.MonthDay; | |
import java.time.Year; | |
import java.time.DayOfWeek; | |
import java.time.LocalDate; | |
import static java.util.Arrays.asList; | |
import static java.time.Month.APRIL; | |
import static java.time.DayOfWeek.SATURDAY; |
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
> gem install sqlite3 --platform=ruby -- --with-sqlite3-include=C:/temp/sqlite3 --with-sqlite3-lib=C:/temp/sqlite3 | |
> gem install sqlite3 |
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
@function gcd($a, $b) { | |
@if $b == 0 { | |
@return $a; | |
} @else { | |
@return gcd($b, $a % $b); | |
} | |
} | |
@function lcm($a, $b) { | |
@return $a * $b / gcd($a, $b); |
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
@counter-style em-decimal { | |
system : numeric; | |
symbols : "\FF10" "\FF11" "\FF12" "\FF13" "\FF14" "\FF15" "\FF16" "\FF17" "\FF18" "\FF19"; | |
} |
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
use std::iter::range_inclusive; | |
fn main() { | |
let fact = |n: uint| { range_inclusive(1, n).fold(1, |a, b| a * b) }; | |
let nums = [3, 5, 0]; | |
for num in nums.iter() { println!("{}", fact(*num)) } | |
} |
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
puts "ほのうみことりんぱなまきえりのぞにこ".scan(/.{1,2}/).combination(2).map(&:join).shuffle |
NewerOlder