Coder Social home page Coder Social logo

gofrendiasgard / goblock Goto Github PK

View Code? Open in Web Editor NEW
7.0 5.0 1.0 25.56 MB

Visual Programming for Newbies

JavaScript 89.73% CSS 0.18% Perl 1.11% Python 0.89% Emacs Lisp 1.53% Shell 0.12% PHP 0.17% HTML 5.45% Batchfile 0.01% Roff 0.75% Vim Script 0.08%

goblock's Introduction

Goblock

A visual programming for newbies. Goblock is built on top of google blockly. Compared to the original google blockly, it has several advantages:

  • No ugly alert and prompt Goblock use stratified.js and bootstrap-modal to completely replace alert and prompt (except when you enter debugging mode). Thus, your risk of accidentally check "Prevent this page from creating another dialog" will be minimalized.

  • Console-like output Rather than using javascript alert, goblock prints the output into console-like interface, thus you can retrieve the output history easier. I also have modify it can print array beautifuly.

  • Better toolbox arrangement The toolbox is arranged in a more practical order, so that you won't have any difficulty to find where-is-what.

  • Real time source code translation You can immediately look for corresponding python, javascript, php, dart, or lua code in the same screen.

Click here for demo.

Requirement

To run goblock, you need a web server.

If you have Python installed, you can simply run Python -m SimpleHTTPServer in this directory.

If you use windows, you can install xampp.

goblock's People

Contributors

gofrendiasgard avatar

Stargazers

Eko Triono avatar Reyhan Sofian avatar Dwicao avatar Ridho Pratama avatar Joel Murphy avatar Labo Lado avatar Stacey Reiman avatar

Watchers

James Cloos avatar  avatar Reyhan Sofian avatar Labo Lado avatar  avatar

Forkers

kevinmel2000

goblock's Issues

Syntax error (related to sjs)

<xml xmlns="http://www.w3.org/1999/xhtml">
  <block type="variables_set" id="40" inline="true" x="47" y="76">
    <field name="VAR">JML</field>
    <value name="VALUE">
      <block type="text_prompt" id="43">
        <field name="TYPE">NUMBER</field>
        <field name="TEXT">Jumlah = </field>
      </block>
    </value>
    <next>
      <block type="text_print" id="91" inline="false">
        <value name="TEXT">
          <block type="text" id="100">
            <field name="TEXT">PR(0)</field>
          </block>
        </value>
        <next>
          <block type="controls_for" id="110" inline="true">
            <field name="VAR">Posisi</field>
            <value name="FROM">
              <block type="math_number" id="111">
                <field name="NUM">1</field>
              </block>
            </value>
            <value name="TO">
              <block type="math_arithmetic" id="198" inline="true">
                <field name="OP">MINUS</field>
                <value name="A">
                  <block type="variables_get" id="135">
                    <field name="VAR">JML</field>
                  </block>
                </value>
                <value name="B">
                  <block type="math_number" id="112">
                    <field name="NUM">1</field>
                  </block>
                </value>
              </block>
            </value>
            <value name="BY">
              <block type="math_number" id="113">
                <field name="NUM">1</field>
              </block>
            </value>
            <statement name="DO">
              <block type="text_print" id="201" inline="false">
                <value name="TEXT">
                  <block type="text" id="210">
                    <field name="TEXT">AM</field>
                  </block>
                </value>
                <next>
                  <block type="text_print" id="213" inline="false">
                    <value name="TEXT">
                      <block type="text_join" id="266" inline="false">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block type="text_join" id="231" inline="false">
                            <mutation items="2"></mutation>
                            <value name="ADD0">
                              <block type="text" id="228">
                                <field name="TEXT">PR(</field>
                              </block>
                            </value>
                            <value name="ADD1">
                              <block type="math_arithmetic" id="248" inline="true">
                                <field name="OP">MINUS</field>
                                <value name="A">
                                  <block type="variables_get" id="263">
                                    <field name="VAR">JML</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="variables_get" id="175">
                                    <field name="VAR">Posisi</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="text" id="277">
                            <field name="TEXT">)</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <next>
                      <block type="text_print" id="280" inline="false">
                        <value name="TEXT">
                          <block type="text" id="289">
                            <field name="TEXT">LT</field>
                          </block>
                        </value>
                        <next>
                          <block type="controls_if" id="293" inline="false">
                            <value name="IF0">
                              <block type="logic_compare" id="299" inline="true">
                                <field name="OP">LT</field>
                                <value name="A">
                                  <block type="variables_get" id="306">
                                    <field name="VAR">Posisi</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="math_arithmetic" id="323" inline="true">
                                    <field name="OP">MINUS</field>
                                    <value name="A">
                                      <block type="variables_get" id="330">
                                        <field name="VAR">JML</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="math_number" id="339">
                                        <field name="NUM">1</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="text_print" id="342" inline="false">
                                <value name="TEXT">
                                  <block type="text_join" id="345" inline="false">
                                    <mutation items="2"></mutation>
                                    <value name="ADD0">
                                      <block type="text_join" id="348" inline="false">
                                        <mutation items="2"></mutation>
                                        <value name="ADD0">
                                          <block type="text" id="357">
                                            <field name="TEXT">PR(</field>
                                          </block>
                                        </value>
                                        <value name="ADD1">
                                          <block type="math_arithmetic" id="374" inline="true">
                                            <field name="OP">MINUS</field>
                                            <value name="A">
                                              <block type="variables_get" id="381">
                                                <field name="VAR">Posisi</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="math_arithmetic" id="411" inline="true">
                                                <field name="OP">MINUS</field>
                                                <value name="A">
                                                  <block type="variables_get" id="388">
                                                    <field name="VAR">JML</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="math_number" id="420">
                                                    <field name="NUM">1</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="ADD1">
                                      <block type="text" id="429">
                                        <field name="TEXT">)</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </statement>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </statement>
          </block>
        </next>
      </block>
    </next>
  </block>
</xml>

Good luck, mou hitori no boku :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.