This file contains hidden or 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
using System.Collections.Generic; | |
namespace UnityEngine.UI | |
{ | |
[AddComponentMenu("UI/Effects/Bevel", 15)] | |
public class Bevel : Shadow | |
{ | |
[SerializeField] private Color highlightColor; | |
protected Bevel() |
This file contains hidden or 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
extends layout | |
block content | |
h1 title | |
form(action='/submitform', method='post', enctype="multipart/form-data") | |
label(for='myinput') Input | |
input(name='myinput',id='myinput',type='text') | |
input(type="file", name="jsonfile") | |
input(type='submit',value='Submit') |
This file contains hidden or 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
/* | |
* GET home page. | |
*/ | |
var fs = require('fs'); | |
exports.thing = function (req, res) { | |
res.render('testform', { title: 'Test form' }); | |
}; | |
exports.submitform = function(req,res) { | |
console.log(req.files); |
This file contains hidden or 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
function getSide(targetPosition:Point, currentPosition:Point, currentDirection:Point):int | |
{ | |
var positionDelta:Point = new Point( | |
targetPosition.x - currentPosition.x, | |
targetPosition.y - currentPosition.y | |
); | |
var direction:Number = positionDelta.x*-currentDirection.y + positionDelta.y*currentDirection.x; | |
if (direction < 0.0) | |
return 1; | |
else if (direction > 0.0) |