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
#!/usr/bin/env ruby | |
# vim: set syntax=ruby | |
begin | |
require 'colorize' | |
rescue LoadError | |
class String | |
def fake_color(*) | |
self | |
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
class AppleRecord < Record | |
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
defmodule Brainluck do | |
defstruct data: <<0>>, data_pointer: 0, | |
output: <<>>, | |
instructions: "", inst_pointer: 0, | |
input: <<>>, | |
skip_depth: 0, | |
block_stack: [] | |
def brain_luck(program, inputs) do | |
%Brainluck{instructions: program, input: inputs} |> process |
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
const defaultSnapshot = { | |
token: '', | |
myInnerInfo: { login: '', type: '' }, | |
myDisplayInfo: { login: '', type: '' }, | |
loginInfo: { login: '', type: '' }, | |
loginList: [], | |
loading: false, | |
logined: false, | |
} |
OlderNewer