[ Launch: flying-fuck ] 81aad5e022afb282802c by ptvans[ Launch: flying-fuck ] 6ebeff7f7dbf98474afa by ptvans[ Launch: flying-fuck ] e8ae6baa035b7c5c6423 by ptvans[ Launch: test ] 4653053 by enjalot[ Launch: test ] 4652017 by enjalot[ Launch: test ] 4582399 by enjalot
Discover gists
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
# PowerShell script to disable Windows power management on all currently connected serial ports, including USB adapters | |
# In simpler terms, it prevents Windows from turning off connected serial devices to save power. | |
# Equivalent to right-clicking on a serial port device in Device Manager > Properties > "Power Management" Tab > Unchecking "Allow the computer to turn off this device to save power." | |
$hubs = Get-CimInstance -ClassName Win32_SerialPort | Select-Object Name, DeviceID, Description | |
$powerMgmt = Get-CimInstance -ClassName MSPower_DeviceEnable -Namespace root\wmi | |
foreach ($p in $powerMgmt) { | |
$IN = $p.InstanceName.ToUpper() | |
foreach ($h in $hubs) { |
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 db = mongoose.connect('mongodb://localhost:27017/DB'); | |
// In middleware | |
app.use(function (req, res, next) { | |
// action after response | |
var afterResponse = function() { | |
logger.info({req: req}, "End request"); | |
// any other clean ups |
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
/* | |
* Play duo melody with Arduino | |
* ============================ | |
* | |
* Description: | |
* This sketch simultaneously plays two separate melodies on two (passive) | |
* speakers or buzzers. This creates effect of a "choir". | |
* For simplicity, it uses function play2Tones(), which only plays two notes | |
* of equal duration simultaneosly. | |
* The actual melody here is the Anthem of Ukraine. |
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
//added to git | |
// chrome.windows.getAll({}, function (winArr) { | |
// // print(winArr) | |
// for (var win of winArr) { | |
// SinWave(win); | |
// } | |
// }); | |
// function SinWave(win) { |
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
allprojects { | |
afterEvaluate { | |
// Global KAPT flags applied to all projects. | |
extensions.findByType<KaptExtension>()?.apply { | |
// Do not replace unknown types (including types for the generated classes) by NonExistentClass. | |
correctErrorTypes = true | |
// Provide links to locations in the original Kotlin code rather than generated Java stubs | |
// as it reports errors encountered during annotation processing. |
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
<!-- | |
photo background by marcelo quinan via unsplash: https://unsplash.com/marceloquinan --> | |
<header id="header"><h1>Right Now</h1><form><input id="search" type="text"placeholder="Search or say 'Ok Google'"></form></header> | |
<article> | |
<section id="section"></section> | |
<section></section> | |
<section></section> | |
<section></section> | |
<section></section> | |
</article> |
Finn the Human
A Pen by Sam Murphey on CodePen.
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
<!-- main --> | |
<section class="main"> | |
<div class="points"></div> | |
<div class="shield-left"></div> | |
<div class="shield-right"></div> | |
<!-- card --> | |
<div class="card"> | |
<div class="detail"> | |
<div class="detail-images"><img src="https://assets.codepen.io/76692/internal/avatars/users/default.png?fit=crop&format=auto&height=80&version=1523479757&width=80" alt="Picture"></div> | |
<h3>HARUN PEHLİVAN </h3> |
NewerOlder