- Open Powershell as an administrator
- Run
Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Enum\HID\*\*\Device` Parameters FlipFlopWheel -EA 0 | ForEach-Object { Set-ItemProperty $_.PSPath FlipFlopWheel 1 }
- Verify that all mice devices have had their
FlipFlopWheel
attributes set to 1Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Enum\HID\*\*\Device` Parameters FlipFlopWheel -EA 0
- Reboot
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
using UnityEngine; | |
namespace Player | |
{ | |
[RequireComponent(typeof(Rigidbody2D))] | |
[RequireComponent(typeof(SpriteRenderer))] | |
[RequireComponent(typeof(Animator))] | |
public class PlayerMovement : MonoBehaviour | |
{ | |
[Header("Movement Vars")] [SerializeField] |
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
function mime2ext($mime){ | |
$all_mimes = [ | |
"png" => [ | |
"image/png", | |
"image/x-png" | |
], | |
"bmp" => [ | |
"image/bmp", | |
"image/x-bmp", | |
"image/x-bitmap", |
Only swipe events available for IonItemSliding by default. So, here the idea to add click event.
How to use ngModel in Angular Component?
import { Component, forwardRef } from '@angular/core';
import { NG_VALUE_ACCESSOR, ControlValueAccessor } from '@angular/forms';
const noop = () => {
};
export const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR: any = {
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
How to Completely Remove Android Studio | |
Execute these commands from the terminal | |
rm -Rf /Applications/Android\ Studio.app | |
rm -Rf ~/Library/Preferences/AndroidStudio* | |
rm ~/Library/Preferences/com.google.android.studio.plist | |
rm -Rf ~/Library/Application\ Support/AndroidStudio* | |
rm -Rf ~/Library/Logs/AndroidStudio* |
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
{ | |
$uri = "http://ptkavto.ru/xmlprice.php?login=$vwLog&password=$vwPas&code=$searchNumber"; | |
$ch = curl_init($uri); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
curl_setopt($ch, CURLOPT_HEADER, 0); | |
$xml = curl_exec($ch); | |
curl_close($ch); | |
$xml = simplexml_load_string($xml); | |
print"<pre>\n";print_r(array("METHOD"=>"GET","URI"=>$uri,"XML"=>$xml));print"</pre>\n"; |
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
CalculateDistance:function(starting,ending,byMeters){ | |
var toRad = function(value){ | |
var RADIANT_CONSTANT = 0.0174532925199433; | |
return (value * RADIANT_CONSTANT); | |
}; | |
var KM_RATIO = 6371; ///6214,6371 | |
try { | |
///var dLat = toRad(ending.latitude - starting.latitude); | |
var dLat = toRad(ending[1] - starting[1]); | |
///var dLon = toRad(ending.longitude - starting.longitude); |
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
upstream php54 { | |
server 127.0.0.1:9000; | |
} | |
server { | |
listen 80; | |
access_log /var/log/nginx/access.log main; | |
error_log /var/log/nginx/error.log warn; |
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
var arr = { | |
1:{ | |
anime:4000, | |
number:1540, | |
pause:0 | |
}, | |
2:{ | |
anime:3000, | |
number:12040, | |
pause:500 |
NewerOlder