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
Run the project | |
` flutter run | Select-String -Pattern "D/EGL_emulation" -NotMatch | Select-String -Pattern "D/TrafficStats" -NotMatch ` |
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
// Targets AMD & Nvidia GPUS | |
if (hardware.HardwareType == HardwareType.GpuAti || hardware.HardwareType == HardwareType.GpuNvidia) | |
{ | |
// only fire the update when found | |
hardware.Update(); | |
// loop through the data | |
foreach (var sensor in hardware.Sensors) | |
if (sensor.SensorType == SensorType.Temperature && sensor.Name.Contains("GPU Core")) | |
{ |
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
if (hardware.HardwareType == HardwareType.CPU) | |
{ | |
// only fire the update when found | |
hardware.Update(); | |
// loop through the data | |
foreach (var sensor in hardware.Sensors) | |
if (sensor.SensorType == SensorType.Temperature && sensor.Name.Contains("CPU Package")) | |
{ | |
// store |
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
static void Main(string[] args) | |
{ | |
c.Open(); | |
// loop | |
while (true) | |
{ | |
ReportSystemInfo(); | |
} |
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
computer.Open(); |
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
/** | |
* Init OpenHardwareMonitor.dll Computer Object | |
**/ | |
static Computer c = new Computer() | |
{ | |
GPUEnabled = true, | |
CPUEnabled = true, | |
//RAMEnabled = true, // uncomment for RAM reports | |
//MainboardEnabled = true, // uncomment for Motherboard reports |
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 System; | |
using OpenHardwareMonitor.Hardware; // add the reference |
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
/** | |
* Delay Adnsense & Google Analytics Until After DOM Loaded | |
* by: Andy Cresswell (@andy_ppsu) | |
* https://twitter.com/andy_ppsu | |
* #JavaScript #JS #AdSense #Analytics #CWV #CoreWebVitals #PageExperience | |
* | |
* This script, written in pure javascript, will help your improve your Core Web Vitals by delaying Javascript | |
* until after the DOM has loaded. Use with caution as some site may see an earnings | |
* drop. This is because adverts above the fold will be slight delayed. | |
* |
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
// why do this? clip-path accepts a `url` reference to an svg element, right? | |
// the difference is that anything defined as a `basic-shape` can be animated: | |
// https://developer.mozilla.org/en-US/docs/Web/CSS/clip-path | |
const input = `121.151,20.761 170.165,55.885 200.872,3.816 231.145,55.884 280.592,20.762 286.854,80.687 346.526,68.666 | |
327.657,126.005 387.276,139.247 346.502,184 395.796,220.302 340.127,244.647 370.611,297.814 309.636,297.457 316.076,358.381 | |
260.303,333.3 241.622,391.529 200.655,345.979 160.121,391.53 141.008,333.302 85.666,358.381 91.673,297.456 31.131,297.813 | |
61.183,244.647 5.947,220.302 54.81,184 14.466,139.248 73.652,126.004 55.216,68.667 114.457,80.688 ` | |
const viewBoxScale = 4 |
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 gulp = require('gulp') | |
, imagemin = require('gulp-imagemin'); | |
var paths = { | |
srcDir: 'src/*', | |
destDir: 'images' | |
} | |
gulp.task('imagemin', function() { | |
gulp.src(paths.srcDir) |
NewerOlder