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
{"swagger":"2.0","info":{"version":"1.0.0","title":"Otonom Approbation system","description":"This API describe the information needed to interact with the approbation system of Otonom Solution","termsOfService":"https://www.otonomsolution.com/terms","contact":{"name":"OtonomSolution IT support","email":"[email protected]"}},"host":"localhost:3000","basePath":"/api/v1","schemes":["http","https"],"consumes":["application/json","text/plain"],"produces":["application/json","text/plain"],"paths":{"/organizations":{"get":{"summary":"All organization that you have access to","description":"Return all the organization name and basic information","operationId":"getAllOrganizations","produces":["application/json"],"tags":["Organizations"],"responses":{"200":{"description":"Organization response","schema":{"type":"array","items":{"$ref":"#/definitions/Organization"}},"examples":{"application/json":{"id":1,"name":"Test","created_at":"2020-09-30T21:48:36.133Z","updated_at":"2020-09-30T21:48:36.133Z","url":"http://loc |
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
def create | |
resource = User.find_for_database_authentication(email: params[:user][:email]) | |
return invalid_login_attempt unless resource | |
if resource.valid_password?(params[:user][:password]) | |
sign_in :user, resource | |
return render nothing: true | |
end | |
invalid_login_attempt |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
/** | |
* A* (A-Star) Pathfinding Algorithm in JavaScript | |
* @author Matthew Trost | |
* @license Creative Commons Attribution-ShareAlike 3.0 Unported License | |
* @datepublished December 2010 | |
*/ | |
function astar (map, heuristic, cutCorners) { | |
var listOpen = []; | |
var listClosed = []; |
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
j=document.createElement("SCRIPT"); | |
j.src="http://code.jquery.com/jquery-latest.pack.js"; | |
document.getElementsByTagName("HEAD")[0].appendChild(j); |
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
<!-- DIALOG BOX --> | |
[h:screen=input( | |
"tab0|Main||TAB", | |
"power|Power Name|Power", | |
"action|Standard,Move,Minor,Free,Immediate Interupt,Immediate Reaction,Opportunity,No Action|Action Type|LIST|SELECT=0 VALUE=STRING ", |