Skip to content

Instantly share code, notes, and snippets.

View tmsnvd's full-sized avatar
🎯
Focusing

Tomas Nev. tmsnvd

🎯
Focusing
  • devbridge
  • Kaunas, Lithuania
View GitHub Profile
@tmsnvd
tmsnvd / PlaneModel.py
Last active March 21, 2022 13:29 — forked from YannBerthelot/PlaneModel.py
Plane Model Transition Function for RL Environment
import math
from math import cos, sin, ceil, floor
import numpy as np
from numpy import arcsin
from numpy.linalg import norm
from .graph_utils import plot_duo, plot_multiple, plot_xy
class FlightModel:
def __init__(self):
"""
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
Enable-RemoteDesktop
cinst laragon.portable
cinst chrome
cinst heidisql
cinst composer
cinst slack
cinst phpstorm
cinst vscode
const http = require('http');
const httpProxy = require('http-proxy');
const express = require('express'),
bodyParser = require('body-parser');
// listen port
const port = 9997;
// create proxy server
const proxy = httpProxy.createProxyServer({});
@tmsnvd
tmsnvd / ruleset.md
Last active February 28, 2024 07:27
phpcs PHP_CodeSniffer rules list
Rule Namespace Description
Arrays.ArrayBracketSpacing /Squiz.Arrays.ArrayBracketSpacing Ensure that there are no spaces around square brackets.
Arrays.ArrayDeclaration /Squiz.Arrays.ArrayDeclaration Ensures that arrays conform to the array coding standard.
Arrays.DisallowLongArraySyntax /Generic.Arrays.DisallowLongArraySyntax Bans the use of the PHP long array syntax.
Arrays.DisallowShortArraySyntax /Generic.Arrays.DisallowShortArraySyntax Bans the use of the PHP short array syntax.
CSS.BrowserSpecificStyles /MySource.CSS.BrowserSpecificStyles Ensure that browser-specific styles are not used.
CSS.ClassDefinitionClosingBraceSpace /Squiz.CSS.ClassDefinitionClosingBraceSpace Ensure there is a single blank line after the closing brace of a class definition.
CSS.ClassDefinitionNameSpacing /Squiz.CSS.ClassDefinitionNameSpacing Ensure there are no blank lines between the names of classes/IDs.
CSS.ClassDefinitionOpeningBrace
@tmsnvd
tmsnvd / 0_reuse_code.js
Last active August 29, 2015 14:09
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
<?php
$params = require(__DIR__ . '/params.php');
$config = [
'id' => 'test',
'basePath' => dirname(__DIR__),
'bootstrap' => ['log'],
'language' => 'lt-LT',
'components' => [
Error
PHP Fatal Error – yii\base\ErrorException
Maximum function nesting level of '100' reached, aborting!
1. in /var/www/vendor/composer/ClassLoader.php at line 310
301302303304305306307308309310311312313314315316317318319
if ($file === null) {
<?php
namespace tests\unit\models;
use app\tests\fixtures\UserFixture;
use Yii;
use yii\codeception\DbTestCase;
use Codeception\Specify;
use Codeception\Util\Debug;
use app\models\User;
@tmsnvd
tmsnvd / designer.html
Created June 30, 2014 12:16
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../chart-js/chart-js.html">
<link rel="import" href="../cool-clock/cool-clock.html">
<polymer-element name="my-element">
<template>
<style>
@tmsnvd
tmsnvd / gist:11fbc04c60d13f654fbf
Created May 10, 2014 19:51
Angular optimization
http://blog.scalyr.com/2013/11/25/angular-optimizations-released/
http://davej.github.io/angular-classy/
http://tylermcginnis.com/angularjs-factory-vs-service-vs-provider/