powercfg -h off
- disable indexation
disk->options->allow the index file...
- disable Superfetch in control services
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
#include <iostream> | |
#include <regex> | |
using namespace std; | |
int main() | |
{ | |
regex sentense_regex("[^!?.]+"); | |
string all_str; | |
string cmp_str; |
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
'use strict' | |
const super_cast = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']; | |
const convert = (arr_char) => { | |
let real_num = 0; | |
for (let i = 0; i < arr_char.length; ++i) { | |
real_num = real_num + Math.pow(10, i) * super_cast.indexOf(arr_char[i]); | |
}; | |
return real_num; | |
} |
: w !sudo tee % > /dev/null
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
int current_sum = 0; | |
/* return pointer on vector with random numbers*/ | |
int* get_rnd1d_vector(const int *count_num, const int *max_num){/*{{{*/ | |
int* vector = malloc((*count_num) * sizeof(int)); | |
for (int i = 0; i < (*count_num); ++i) |
%s/\(-\)\(\w\)/\U\2/g
- replace something like font-size to fontSize%s/\(: \)\(.\+\);/\1"\2",/g
- replace something like25px;
to"25px",
fontSize
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 abstract_object = { | |
first_pro : "first", | |
second_pro : "second", | |
third_pro : "third" | |
}; | |
Object.keys(abstract_object).map((num, index) => { | |
abstract_object[num] = index+1; | |
}); | |
console.log(abstract_object); |
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
"use strict"; | |
const shool_rating = [ | |
"Вова Петькин 2 2 3", | |
"Митька Залупкин 2 2 2", | |
"Антон Газенвагович 5 5 3", | |
"Антон Залупкин 2 2 3", | |
"Вова Залупкин 2 4 3", | |
"Вова Петькин 3 3 2" | |
]; |
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
'use strict' | |
const objects = [{ | |
channel: { | |
id: "first" | |
} | |
}, { | |
channel: { | |
id: "second", | |
props: "old value" |
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
;.editorconfig | |
root = true | |
[**.js] | |
; path to optional external js beautifier, default is vim-jsbeautify/plugin/lib | |
path=/usr/local/lib/node_modules/js-beautify/js/lib/beautify.js | |
; Javascript interpreter to be invoked by default 'node' | |
bin = node | |
e4x = true |