- Intel
- Sandy Bridge processor, Q1 2011
- Sandy Bridge E processor, Q4 2011
- Ivy Bridge processor, Q1 2012
- Ivy Bridge E processor, Q3 2013
- Haswell processor, Q2 2013
- Haswell E processor, Q3 2014
- Broadwell processor, Q4 2014
- Broadwell E processor, Q2 2016
This file contains hidden or 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
| // Usage: | |
| // std::cout << COLOUR_HERE << "Text"; | |
| // Example: | |
| // std::cout << red << "Text"; | |
| // | |
| // You can also make new colours by combing the base RGB colours. | |
| // FOREGROUND_RED, FOREGROUND_GREEN, FOREGROUND_BLUE are the base colours. | |
| // FOREGROUND_INTENSITY gives vibrance. The colour name can be changed by | |
| // changing; inline std::ostream& THIS_VALUE_HERE(std::ostream& s) |
This file contains hidden or 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
| # Fork mode | |
| pm2 start app.js --name my-api # Name process | |
| # Cluster mode | |
| pm2 start app.js -i 0 # Will start maximum processes with LB depending on available CPUs | |
| pm2 start app.js -i max # Same as above, but deprecated. | |
| pm2 scale app +3 # Scales `app` up by 3 workers | |
| pm2 scale app 2 # Scales `app` up or down to 2 workers total | |
| # Listing |
This file contains hidden or 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
| const path = require('path'); | |
| const config = require('../config.js'); | |
| const fs = require('fs'); | |
| const sharp = require('sharp'); | |
| const ffmpeg = require('fluent-ffmpeg'); | |
| const utilsController = {}; | |
| utilsController.videoExtensions = ['.webm', '.mp4', '.wmv', '.avi', '.mov']; | |
| utilsController.generateThumbs = function(file, basedomain) { |
This file contains hidden or 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
| rgbasm -o main.o main.asm | |
| rgblink -o game.gb main.o | |
| rgbfix -v -p 0 game.gb |
This file contains hidden or 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
| document.getElementsByName("image_width")[0].value = 1000;document.getElementsByName("image_height")[0].value = 1; |
I recently came across a situation where I had to push multiple vectors of thread handles to a central vector.
The first element that I was adding to the central thread comes as follows;
// This works.
// `example_crate::make()` returns a `std::thread::JoinHandle<()>`;
let mut threads = vec![example_crate::make()];
This file contains hidden or 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
| # Check if a filename was supplied | |
| if ! test -n "${1}"; | |
| then | |
| echo "bmp-to-bmp3.sh <file.bmp>" | |
| exit 1 | |
| fi | |
| # Check if ImageMagick is installed | |
| if ! command -v mogrify &> /dev/null; | |
| then |