Skip to content

Instantly share code, notes, and snippets.

import Test.Hspec (Spec, hspec, describe, it, shouldBe)
import Control.Monad (forM_)
samplef :: String -> String
samplef = concat . replicate 2
main :: IO ()
main = test
test :: IO ()
-- http://www.haskell.org/haskellwiki/99_questions/1_to_10
import Test.Hspec
import Control.Monad
main = do
hspec $ forM_ (zip [1..] specs) $ \(n,s) ->
describe ("Problem " ++ show n ++ ":") s
specs = [myLastSpec
@oropon
oropon / 0_reuse_code.js
Created March 20, 2014 07:55
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
require 'RMagick'
include Magick
id_min = 0
id_max = 10
def annotate_id img, id
fname = "Octcat_%03d.png" % id
text = Draw.new
//
// utils.swift
// md_bgmasset
//
// Created by oropon on 6/11/14.
// Copyright (c) 2014 oropon. All rights reserved.
//
extension Array {
func any(p: (T) -> Bool) -> Bool {
@oropon
oropon / rle.hs
Last active August 29, 2015 14:09
import Data.List (group, sort)
import Data.Char (isNumber, isAlpha, toUpper)
import Test.Hspec (hspec, describe, it, shouldBe)
import Test.QuickCheck (Arbitrary, Gen, elements, listOf, arbitrary)
import Test.Hspec.QuickCheck (prop)
import Control.Monad (forM_)
import Data.Functor ((<$>))
-- Main
@oropon
oropon / nokin-night-logo.png
Last active August 29, 2015 14:22
脳筋ナイト
nokin-night-logo.png

居住エリア外のサーバー用アカウント作成方法

概要

接続先のサーバーは、位置情報とかではなく接続元IPで判別される。
通常は日本国内から接続しているので、EA(東アジア)サーバーに繋がるってこと。

たとえばNAサーバーを利用するには、アメリカ国内から接続する必要がある。

なお、本来の遊び方から外れるため運営やゲームコミュニティにとって好ましいとは限らない。自己判断・自己責任でやること。

A. 他力本願