Skip to content

Instantly share code, notes, and snippets.

parrot-studio parrot-studio

Block or report user

Report or block parrot-studio

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@parrot-studio
parrot-studio / BF.kt
Last active Apr 11, 2019
BrainF**k interpreter by Kotlin
View BF.kt
object BF {
private val commends = mapOf(
'>' to "pinc",
'<' to "pdec",
'+' to "inc",
'-' to "dec",
'.' to "out",
',' to "inp",
'[' to "jmp",
']' to "ret"
View logics_skill_4005.rb
# https://paiza.jp/logic_summoner/challenges/logics_skill_4005
def mark(board, table, w, max, color, base, ind)
return if table[ind]
return unless color == board[ind]
r = ind % w
table[ind] = base
mark(board, table, w, max, color, base, ind - 1) if r > 0 # left
mark(board, table, w, max, color, base, ind + 1) if r < w - 1 # right
mark(board, table, w, max, color, base, ind - w) if ind >= w # up
@parrot-studio
parrot-studio / bf.exs
Last active Jan 17, 2017
BrainF**k interpreter by Elixir
View bf.exs
defmodule BF do
@cmap %{
">" => :pinc,
"<" => :pdec,
"+" => :inc,
"-" => :dec,
"." => :out,
"," => :inp,
"[" => :jmp,
"]" => :ret
View ando
https://paiza.jp/poh/ando
glasses
https://paiza.jp/poh/ando/share/f872136d
santa
https://paiza.jp/poh/ando/share/b8c73b8b
swimwear
https://paiza.jp/poh/ando/share/841f1803
View joshibato
https://paiza.jp/poh/joshibato/
kirishima.rb
https://paiza.jp/poh/joshibato/kirishima/result/4d6681fb
rio.rb
https://paiza.jp/poh/joshibato/tsubame/result/f494a598
tsubame.rb
https://paiza.jp/poh/joshibato/tsubame/result/f494a598
View ccpts_react.js.jsx.coffee
searchArcanas = (query, path, component, callback) ->
component.setState(showError: false)
$("#loading-modal").modal('show')
query ?= {}
query.ver = $("#data-ver").val()
url = $("#app-path").val() + path
callbacks =
done: (as) ->
callback(as, component)
$("#loading-modal").modal('hide')
View fibonacci.rb
class Fibonacci
class << self
include Enumerable
def each
(1..Float::INFINITY).lazy.each do |i|
yield fib(i)
end
end
You can’t perform that action at this time.