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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="Experiment with canvas - flying dots"> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body onload="main()"> | |
<canvas id="cv" style="background:#1e0239" /> |
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
import pyaudio | |
import wave | |
from time import sleep | |
CHUNK = 1024 | |
FORMAT = pyaudio.paInt16 | |
CHANNELS = 2 | |
RATE = 48000 | |
RECORD_SECONDS = 5 | |
WAVE_OUTPUT_FILENAME = ["output.wav", |
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
// This is my performance-optimized config for Dota 2 (Linux) | |
// | |
// Launch options: -novid -high -nod3d9ex -console | |
// | |
// console show game console on start (there you can see that config was loaded OK) | |
// nod3d9ex optimize graphics for DirectX 9 | |
// novid disable intro video | |
// high set high CPU priority for Dota 2 process | |
echo "*** Performance optimizations - START ***" |
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
#include <windows.h> | |
#include <tchar.h> | |
#include <cstdio> | |
#pragma comment(lib, "user32.lib") | |
int _tmain(int argc, _TCHAR* argv[]) | |
{ | |
BOOL enabled; |
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
Processor Information: | |
Vendor: GenuineIntel | |
CPU Family: 0xf | |
CPU Model: 0x4 | |
CPU Stepping: 0x3 | |
CPU Type: 0x0 | |
Speed: 3010 Mhz | |
2 logical processors | |
1 physical processors | |
HyperThreading: Supported |