I hereby claim:
- I am dubiy on github.
- I am dubii (https://keybase.io/dubii) on keybase.
- I have a public key ASByOFINYTjh0lngurWbUevYbfDirTpjBylSWcbYAU3lqQo
To claim this, I am signing this object:
using Jint; | |
using UnityEngine; | |
using System; | |
using System.Threading.Tasks; | |
public class RunJs : MonoBehaviour | |
{ | |
private static Engine engine; | |
void Start() |
using Jint; | |
using UnityEngine; | |
using System; | |
using System.IO; | |
using System.Net.Http; | |
using System.Threading.Tasks; | |
using System.Collections.Generic; | |
using System.Timers; | |
using Jint; | |
using UnityEngine; | |
using System; | |
using System.IO; | |
using System.Net.Http; | |
using System.Threading.Tasks; | |
using System.Collections.Generic; | |
public class RunJs : MonoBehaviour | |
{ |
let linesIntersect = (a, b, c, d, threshold = 0.0001, debug = false) => { | |
if (debug) { | |
console.warn('linesIntersect', 'debug') | |
} | |
let result = {type: 'none', isIntersects: false, points: []} | |
// https://web.archive.org/web/20120303204205/http://local.wasp.uwa.edu.au:80/~pbourke/geometry/lineline2d/ | |
let denominator = (d.y - c.y) * (b.x - a.x) - (d.x - c.x) * (b.y - a.y) | |
let numerator1 = (d.x - c.x) * (a.y - c.y) - (d.y - c.y) * (a.x - c.x) | |
let numerator2 = (b.x - a.x) * (a.y - c.y) - (b.y - a.y) * (a.x - c.x) | |
if (denominator === 0) { |
I hereby claim:
To claim this, I am signing this object:
#include <SoftwareSerial.h> | |
SoftwareSerial mySerial(10, 11); // RX, TX | |
byte ledState = 0, | |
incomingByte = 0, | |
equalsCount = 0, | |
weight[6] = {0,0,0,0,0,0}; | |
char lastValue[10], |
var arr = [2,1,5,0,3,4,7,2,3,1,0]; | |
console.log('waterRecursion', findWater(arr, Math.min(...arr), Math.max(...arr))); | |
/////////////////////////////////////////////////////////////////////////////// | |
var depth = Math.min(...arr); | |
var maxHigh = Math.max(...arr); | |
var water = 0; |
<?php | |
namespace AppBundle\Service; | |
use Aws\ElasticTranscoder\ElasticTranscoderClient; | |
use Symfony\Component\HttpFoundation\File\UploadedFile; | |
use Symfony\Component\Security\Core\SecurityContext; | |
use Symfony\Component\Validator\Validator; | |
use Doctrine\Bundle\DoctrineBundle\Registry; |
<?php | |
/** | |
* User: Igor Dubiy | |
*/ | |
namespace AppBundle\Controller\Api; | |
use Aws\Common\Aws; | |
use Doctrine\ORM\EntityManager; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; |
var gulp = require('gulp'), | |
concat = require('gulp-concat'), | |
uglify = require('gulp-uglify'), | |
autoprefixer = require('gulp-autoprefixer'), | |
sass = require('gulp-sass'), | |
minifyCss = require('gulp-minify-css'), | |
del = require('del'), | |
imagemin = require('gulp-imagemin'), | |
sourcemaps = require('gulp-sourcemaps'), | |
babel = require('gulp-babel'), |