Permalink
Browse files

update snap

  • Loading branch information...
sdpython committed Jul 30, 2015
1 parent 7c6d8fd commit 72afc2aa15f0f6d54e06a81ac85439ba56bc4c9e
View
@@ -247,4 +247,9 @@ _doc/notebooks/*/.ipynb_checkpoints/*
auto_*.bat
auto_*.py
auto_*.xml
auto_*.db3
auto_*.db3
/_unittests/ut_jsscripts/Snap_test_extracted
/src/code_beatrix/jsscripts/Snapin8r/tests/Snap test extracted
/src/code_beatrix/jsscripts/Snapin8r/tests/Topsy Turvy- the game
/src/code_beatrix/jsscripts/Snapin8r/tests/Snap test
/src/code_beatrix/jsscripts/Snapin8r/tests
@@ -46,7 +46,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 4,
"metadata": {
"collapsed": false,
"scrolled": false
@@ -56,11 +56,9 @@
"data": {
"text/html": [
"\n",
" <div id=\"scratch_div_id_62946div\">\n",
" <div id=\"scratch_div_id_22841div\" style=\"position:relative; width:1000px; height:600px;\">\n",
" Snap showing up soon...\n",
" <!--<iframe width=\"1000\" height=\"600\" scrolling=\"auto\">-->\n",
" <canvas id=\"scratch_div_id_62946\" width=\"1000\" height=\"600\" />\n",
" <!-- </iframe>-->\n",
" <canvas id=\"scratch_div_id_22841\" style=\"width:1000px; height:600px; position:relative; \" />\n",
" </div>\n",
" \n",
"<script type=\"text/javascript\" src=\"/static/snap/blocks.js\"></script>\n",
@@ -107,28 +105,28 @@
"<script type=\"text/javascript\" src=\"/static/snap/xml.js\"></script>\n",
"<script type=\"text/javascript\" src=\"/static/snap/ypr.js\"></script>\n",
"<script>\n",
" var worldscratch_div_id_62946;\n",
" function loopscratch_div_id_62946() {\n",
" worldscratch_div_id_62946.doOneCycle();\n",
" var worldscratch_div_id_22841;\n",
" function loopscratch_div_id_22841() {\n",
" worldscratch_div_id_22841.doOneCycle();\n",
" }\n",
" function start_snapscratch_div_id_62946() {\n",
" var sec = document.getElementsByClassName(\"scratch_div_id_62946div\");\n",
" function start_snapscratch_div_id_22841() {\n",
" var sec = document.getElementsByClassName(\"scratch_div_id_22841div\");\n",
" sec.innerHTML = \"loading...\";\n",
" worldscratch_div_id_62946 = new WorldMorph(document.getElementById('scratch_div_id_62946'));\n",
" worldscratch_div_id_62946.worldCanvas.focus();\n",
" new IDE_Morph().openIn(worldscratch_div_id_62946);\n",
" setInterval(loopscratch_div_id_62946, 1);\n",
" worldscratch_div_id_22841 = new WorldMorph(document.getElementById('scratch_div_id_22841'));\n",
" worldscratch_div_id_22841.worldCanvas.focus();\n",
" new IDE_Morph().openIn(worldscratch_div_id_22841);\n",
" setInterval(loopscratch_div_id_22841, 1);\n",
" sec.innerHTML = \"\";\n",
" }\n",
" window.setTimeout(start_snapscratch_div_id_62946,500);\n",
" window.setTimeout(start_snapscratch_div_id_22841,500);\n",
" </script>\n",
" "
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"execution_count": 2,
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
@@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright (c) 2013 Hardmath123
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,13 @@
Snapin8r
========
http://hardmath123.github.io/Snapin8r/
--------------------------------------
Snapin8r is a plugin for [Snap!](http://snap.berkeley.edu) which converts [Scratch 2.0](http://scratch.mit.edu) projects (.sb2) to Snap! projects. It lets you drag and drop Scratch projects into the Snap! IDE just like Snap! projects.
See also
--------
* [Kurt](https://github.com/blob8108/kurt) by @blob8108
Made with [JSZip](http://stuk.github.io/jszip/)
@@ -0,0 +1 @@
javascript:!function(){var s = document.createElement("script"); s.src="snapin8r.js"; document.body.appendChild(s);}();
@@ -0,0 +1,6 @@
cat jszip.min.js snapin8r.js > snapin8r.min.js
echo "Built."
if [ "$1" == "-c" ]; then
cat snapin8r.min.js | pbcopy;
echo "Copied.";
fi

Large diffs are not rendered by default.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 72afc2a

Please sign in to comment.