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
@media screen and (min-width: 1025px) { | |
.tabs-bar { | |
display: flex; | |
} | |
.drawer__header, | |
.tabs-bar__link[href="/web/statuses/new"], | |
.columns-area>[role="region"] { | |
display: none; | |
} | |
.drawer { |
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 Main where | |
type People = Int -- 人間 | |
type Grave = (Int, Int) -- 墓穴 | |
呪う :: (People, People, Grave) -> (People, People, Grave) | |
呪う (0, 0, n) = (0, 0, n) -- 人間がいない | |
呪う (0, 1, (i, j)) = (0, 0, (i + 1, j + 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
{-# LANGUAGE GeneralizedNewtypeDeriving #-} | |
newtype FizzBuzz = FizzBuzz Int deriving (Enum, Eq, Ord, Num, Real, Integral) | |
instance Show FizzBuzz where | |
show x = (fizz ++ buzz) `or` show asInt where | |
fizz | ifMultipleOf 3 = "fizz" | otherwise = [] | |
buzz | ifMultipleOf 5 = "buzz" | otherwise = [] | |
ifMultipleOf n = x `mod` n == 0 | |
or [] ys = ys |
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
qsort xs = qsort' xs [] | |
qsort' xs rs = case xs of | |
[] -> rs | |
[x] -> x:rs | |
(x:xs') -> | |
let m = median xs in qsort'' xs m rs [] [] [] | |
qsort'' xs m rs ls es gs = case xs of | |
[] -> qsort' ls $ es ++ qsort' gs rs |
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
using UnityEngine; | |
public class BillBoard : MonoBehaviour { | |
public Transform targetToFace; | |
public bool isAutoFace = true; | |
Quaternion adjustEuler = Quaternion.Euler (90, 180, 0); | |
// Use this for initialization | |
void Start () |
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
using UnityEngine; | |
using System.Collections; | |
public class DetonatorTest : MonoBehaviour { | |
public GameObject currentDetonator; | |
private int _currentExpIdx = -1; | |
private bool buttonClicked = false; | |
public GameObject[] detonatorPrefabs; | |
public float explosionLife = 10; |
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
{ | |
//-- GUI Look & Feel -- | |
"highlight_line": true, | |
"rulers": [ 80, 120 ], | |
// Source Code Pro - https://github.com/adobe/source-code-pro | |
"font_face": "Source Code Pro ExtraLight", | |
// for MacOS X | |
"font_options": [ "subpixel_antialias", "no_round" ], |
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
i=0;while(100>i++){console.log(((i%3?'':'Fizz')+(i%5?'':'Buzz'))||i);} |
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
@@ -111, +111,113 @@ | |
- min-width: 6em; | |
+ min-width: 6ex; | |
+ font-size: 16pt; | |
+ font-weight: bold; | |
@@ -265, +267 @@ | |
- font-size: 1.5em; | |
+ font-size: 21pt; |
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
people = require "../lib/people" | |
test_data = | |
Tom: | |
age: 15 | |
gender: people.GENDER.MALE | |
Beth: | |
age: 15 | |
gender: people.GENDER.FEMALE |
NewerOlder