{"commit":"24a87630536ac8b44500309692101c88d0885701","old_file":"MS3\/QA\/Examples\/DC\/SelectAdvanced.dyalog","new_file":"MS3\/QA\/Examples\/DC\/SelectAdvanced.dyalog","old_contents":"﻿ msg←SelectAdvanced;result;output;sel;froot;prev\n⍝ Test \/Examples\/DC\/SelectAdvanced\n\n⍝ Ensure 'multi' (the selection list) is there:\n msg←'selection list not there'\n :If 0≢sel←Find'multi'\n   ⍝ Grab the 2 elements already chosen:\n     Click'PressMe'\n     output←Find'output'\n     {0≠⍴output.Text}Retry ⍬ ⍝ Wait to see if it gets populated\n     msg←'Expected output was not produced.'\n :AndIf 'You picked: Bananas Pears'≡prev←output.Text\n   ⍝ Make a single selection:\n     froot←'Grapes'\n    'multi'SelectByText'-'froot\n         Click'PressMe'\n     output←Find'output'\n     {prev≢output.Text}Retry ⍬ ⍝ Wait to see if it gets populated\n:AndIf (prev←output.Text)≡'You picked: ',froot\n   ⍝ Make another selection:\n    'multi'SelectByText'Pears'\n         Click'PressMe'\n     output←Find'output'\n     {prev≢output.Text}Retry ⍬ ⍝ Wait to see if it gets populated\n    :AndIf (prev←output.Text)≡'You picked: ',froot,' Pears'\n    msg←''\n :EndIf","new_contents":"﻿ msg←SelectAdvanced;result;output;sel;froot;prev\n⍝ Test \/Examples\/DC\/SelectAdvanced\n\n⍝ Ensure 'multi' (the selection list) is there:\n msg←'selection list not there'\n :If 0≢sel←Find'multi'\n   ⍝ Grab the 2 elements already chosen:\n     Click'PressMe'\n     output←Find'output'\n     {0≠⍴output.Text}Retry ⍬ ⍝ Wait to see if it gets populated\n     msg←'Expected output was not produced.'\n :AndIf 'You picked: Bananas Pears'≡prev←output.Text\n   ⍝ Make a single selection:\n     froot←'Grapes'\n     'multi'SelectItemText'~'froot\n     Click'PressMe'\n     output←Find'output'\n     {prev≢output.Text}Retry ⍬ ⍝ Wait to see if it gets populated\n :AndIf (prev←output.Text)≡'You picked: ',froot\n   ⍝ Make another selection:\n     'multi'SelectItemText'Pears'\n     Click'PressMe'\n     output←Find'output'\n     {prev≢output.Text}Retry ⍬ ⍝ Wait to see if it gets populated\n :AndIf (prev←output.Text)≡'You picked: ',froot,' Pears'\n     msg←''\n :EndIf","subject":"Rename of SelectByText to SelectItemText","message":"Rename of SelectByText to SelectItemText\n","lang":"APL","license":"mit","repos":"Dyalog\/MiServer,Dyalog\/MiServer,Dyalog\/MiServer"}
{"commit":"ead24874953313e5f434d13fa8aced2f054eac5c","old_file":"MS3\/Examples\/DC\/EditFieldSimple.dyalog","new_file":"MS3\/Examples\/DC\/EditFieldSimple.dyalog","old_contents":"﻿:Class EditFieldSimple : MiPageSample\n⍝ Control:: _DC.EditField _DC.Button _html.label\n⍝ Description:: Collect input and echo it on a button press\n\n    ∇ Compose;btn;F1;label;name\n      :Access Public\n     \n      F1←'myform'Add _.Form ⍝ Create a form\n      label←('for\"name\"')F1.Add _.label'Please enter your name'\n      name←'name'F1.Add _.EditField\n      done←'done'F1.Add _.Button'Done'\n      done.On'click' 'CallbackFn'\n     \n      'result'F1.Add _.div ⍝ a div to contain output, updated by CallbackFn\n    ∇\n\n    ∇ r←CallbackFn\n      :Access Public \n      r←'#result'Replace _.p('Hello, ',(Get'name'),'!')\n    ∇\n\n:EndClass","new_contents":"﻿:Class EditFieldSimple : MiPageSample\n⍝ Control:: _DC.EditField _DC.Button _html.label\n⍝ Description:: Collect input and echo it on a button press\n\n    ∇ Compose;btn;F1;label;name\n      :Access Public\n     \n      F1←'myform'Add _.Form ⍝ Create a form\n      label←('for=\"name\"')F1.Add _.label'Please enter your name'\n      name←'name'F1.Add _.EditField\n      done←'done'F1.Add _.Button'Done'\n      done.On'click' 'CallbackFn'\n     \n      'result'F1.Add _.div ⍝ a div to contain output, updated by CallbackFn\n    ∇\n\n    ∇ r←CallbackFn\n      :Access Public \n      r←'#result'Replace _.p('Hello, ',(Get'name'),'!')\n    ∇\n\n:EndClass","subject":"Add missing '=' in MS3\/Examples\/DC\/EditFieldSample","message":"Add missing '=' in MS3\/Examples\/DC\/EditFieldSample\n","lang":"APL","license":"mit","repos":"Dyalog\/MiServer,Dyalog\/MiServer,Dyalog\/MiServer"}
{"commit":"8f40bd95601a5f0e1bee2a40787e3ec0e362c0a2","old_file":"MS3\/Code\/MS3Server.dyalog","new_file":"MS3\/Code\/MS3Server.dyalog","old_contents":"﻿:Class MS3Server : MiServer\n⍝ This is an example of a customized MiServer\n⍝ The MiServer class exposes several overridable methods that can be customized by the user\n⍝ In this case we customize the onServerLoad method\n⍝ The ClassName parameter in the Server.xml configuration file is used to specify the customized class\n\n    :Include #.MS3SiteUtils ⍝∇:require =\/MS3SiteUtils\n\n    ∇ Make config\n      :Access Public\n      :Implements Constructor :Base config\n     ⍝ Version warning\n      :If 14>{⊃(\/\/)⎕VFI ⍵\/⍨2>+\\'.'=⍵}2⊃'.'⎕WG'APLVersion'\n          ⎕←''\n          ⎕←'MiServer 3.0 itself will run under Dyalog APL versions 13.2 and later'\n          ⎕←'However, the MS3 MiSite uses features found only in Dyalog APL versions beginning with 14.0'\n          ⎕←''\n          ⎕←'Please restart the MS3 MiSite using Dyalog APL version 14.0 or later...'\n          →\n      :EndIf\n    ∇\n\n    ∇ onServerLoad\n      :Access Public Override\n    ⍝ Handle any server startup processing\n      {}C ⍝ initialize CACHE\n    ∇\n\n:EndClass","new_contents":"﻿:Class MS3Server : MiServer\n⍝ This is an example of a customized MiServer\n⍝ The MiServer class exposes several overridable methods that can be customized by the user\n⍝ In this case we customize the onServerLoad method\n⍝ The ClassName parameter in the Server.xml configuration file is used to specify the customized class\n\n    :Include #.MS3SiteUtils ⍝∇:require =\/MS3SiteUtils\n\n    ∇ Make config\n      :Access Public\n      :Implements Constructor :Base config\n     ⍝ Version warning\n      :If 14>{⊃(\/\/)⎕VFI ⍵\/⍨2>+\\'.'=⍵}2⊃'.'⎕WG'APLVersion'\n          ⎕←''\n          ⎕←'MiServer 3.0 itself will run under Dyalog APL versions 13.2 and later'\n          ⎕←'However, the MS3 MiSite uses features found only in Dyalog APL versions beginning with 14.0'\n          ⎕←'From version 15.0, Dyalog APL is available free of charge at http:\/\/www.dyalog.com' \n          ⎕←''\n          ⎕←'Please restart the MS3 MiSite using Dyalog APL version 14.0 or later...'\n          →\n      :EndIf\n    ∇\n\n    ∇ onServerLoad\n      :Access Public Override\n    ⍝ Handle any server startup processing\n      {}C ⍝ initialize CACHE\n    ∇\n\n:EndClass\n","subject":"Upgrade message inculdes note of 15.0+ being free.","message":"Upgrade message inculdes note of 15.0+ being free.\n","lang":"APL","license":"mit","repos":"Dyalog\/MiServer,Dyalog\/MiServer,Dyalog\/MiServer"}
{"commit":"31522762e3e4a9e3ddfed315485fdaa02ff89d85","old_file":"MS3\/Examples\/html\/aSimple.dyalog","new_file":"MS3\/Examples\/html\/aSimple.dyalog","old_contents":"﻿:class aSimple : MiPageSample\n⍝ Control:: _html.a  \n⍝ Description:: Insert a hyperlink\n\n    ∇ Compose\n      :Access public \n      Add 'Click '\n      'href' 'http:\/\/www.dyalog.com\/meet-team-dyalog.htm'Add _.a'here'\n      Add ' to meet us.'\n    ∇\n\n:endclass\n","new_contents":"﻿:class aSimple : MiPageSample\n⍝ Control:: _html.a  \n⍝ Description:: Insert a hyperlink\n\n    ∇ Compose\n      :Access public \n      Add'Click '\n      'href=http:\/\/www.dyalog.com\/meet-team-dyalog.htm'Add _.a'here'\n      Add' to meet us.'\n    ∇\n\n:endclass\n","subject":"Fix to new ParseAttr syntax","message":"Fix to new ParseAttr syntax\n","lang":"APL","license":"mit","repos":"Dyalog\/MiServer,Dyalog\/MiServer,Dyalog\/MiServer"}
{"commit":"6054d202ca88d93d6604694a18e912e1747b485c","old_file":"3-1.apl","new_file":"3-1.apl","old_contents":"#!\/usr\/local\/bin\/apl -s\n\n'Day 3: Perfectly Spherical Houses in a Vacuum'\n\ni ← (0 0)\ncmds ← ('<' '>' '^' 'v')\ndirs ← ((¯1 0) (1 0) (0 ¯1) (0 1))\nhouses ← ∪ (0 0) , i { ++\\⍵ } { dirs[ti] ⊣ ti ← cmds ⍳ ⍵ } ⍞\n⍴ houses ⍝ the amount of houses to visit\n\n)OFF\n","new_contents":"#!\/usr\/local\/bin\/apl -s\n\n'Day 3: Perfectly Spherical Houses in a Vacuum'\n\ncmds ← ('<' '>' '^' 'v')\ndirs ← ((¯1 0) (1 0) (0 ¯1) (0 1))\nhouses ← ∪ (0 0) , { ++\\⍵ } { dirs[ti] ⊣ ti ← cmds ⍳ ⍵ } ⍞\n⍴ houses ⍝ the amount of houses to visit\n\n)OFF\n","subject":"Trim fat on apl nr 1","message":"Trim fat on apl nr 1\n","lang":"APL","license":"mit","repos":"profan\/advent-of-code-2015,profan\/advent-of-code-2015,profan\/advent-of-code-2015"}
{"commit":"05b308db282b0f8a5b61e6ce144c5c564db3fe46","old_file":"MS3\/Examples\/HTML\/abbrsample.dyalog","new_file":"MS3\/Examples\/HTML\/abbrsample.dyalog","old_contents":"﻿:class abbrsample: MiPage\n⍝ Control:: HTML.abbr \n⍝ Description:: this is an example of use of abbr which allows you to display text when hovering over an area\n⍝    \n⍝ This is an example of using the HTML 'abbr' element.\n\n    ∇ Compose\n      :Access public \n    ⍝ We simply display the text 'Hover over THIS to reveal.'\n     \n    ⍝ First we add the text 'Hover over', then\n      Add'Hover over '\n    ⍝ Then we add the element 'abbr' containing the text 'THIS',\n    ⍝ making sure the text to display when hovering over it\n    ⍝ (the title) displays 'True Http Internet Scripts'\n      'title' 'True Http Internet Scripts'Add _.abbr'THIS'\n    ⍝ then we add the final text.\n      Add' to reveal.'\n    ∇\n:endclass\n","new_contents":"﻿:class abbrsample: MiPage\n⍝ Control:: HTML.abbr \n⍝ Description:: this is an example of use of abbr which allows you to display text when hovering over an area\n\n⍝ This is an example of using the HTML 'abbr' element.\n\n    ∇ Compose\n      :Access public \n    ⍝ We simply display the text 'Hover over THIS to reveal.'\n     \n    ⍝ First we add the text 'Hover over', then\n      Add'Hover over '\n    ⍝ Then we add the element 'abbr' containing the text 'THIS',\n    ⍝ making sure the text to display when hovering over it\n    ⍝ (the title) displays 'True Http Internet Scripts'\n      'title' 'True Http Internet Scripts'Add _.abbr'THIS'\n    ⍝ then we add the final text.\n      Add' to reveal.'\n    ∇\n:endclass\n","subject":"Remove empty comment that messes up the index page","message":"Remove empty comment that messes up the index page\n","lang":"APL","license":"mit","repos":"Dyalog\/MiServer,Dyalog\/MiServer,Dyalog\/MiServer"}
{"commit":"b686026f4993f3934100324bb9a4cc593f06d434","old_file":"shell\/cgi.apl","new_file":"shell\/cgi.apl","old_contents":"","new_contents":"#!\/usr\/local\/bin\/apl --script\nNEWLINE ← ⎕UCS 10\nHEADERS ← 'Content-Type: text\/plain', NEWLINE\nHEADERS\n⍝ ⎕←HEADERS\n⍝ ⍕⎕TS\n)OFF\n\n⍝ testVars←'FUCKYEAH'\n⍝ ≠\\~(testVars ∊ 'AEIOU')\n⍝ (124 × 4)≠(+\/124 124 124)\n⍝ testVars ∊ '<>'\n","subject":"Add boilerplate APL script to serve CGI webpages","message":"Add boilerplate APL script to serve CGI webpages\n\nI can no longer tell if I've gone insane, or I've just become bored with\nweb development. Probably a collusion of both.\n\nEither way, getting this script working required some changes in the GNU\nAPL preferences file (interpreter built from source: v1.5 \/ SVN revision\n694). The following settings were changed to the designated values:\n\n  * Welcome:      No\n  * Color:        No\n  * SharedVars:   Disabled\n\nThat last setting is especially critical for running the APL interpreter\nas a CGI handler. Since multiple arguments can't be passed to a hashbang\n(at least in Apache), we can't set --script and --noSV at the same time.\nThis leads to an error message being spat to STDOUT when the interpreter\nis invoked, screwing with the HTTP headers.\n","lang":"APL","license":"isc","repos":"Alhadis\/Snippets,Alhadis\/Snippets,Alhadis\/Snippets,Alhadis\/Snippets,Alhadis\/Snippets"}
