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
/* Inspired by: https://github.com/AH72KING/Instagram-scraping/blob/master/instagram_hashtag_images.php */ | |
const https = require('https'); | |
const getContent = function (url) { | |
return new Promise((resolve, reject) => { | |
const lib = url.startsWith('https') ? require('https') : require('http'); | |
const request = lib.get(url, (response) => { | |
if (response.statusCode < 200 || response.statusCode > 299) { | |
reject(new Error('Failed to load page, status code: ' + response.statusCode)); |
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
ninja: Entering directory `/tmp/deno/target/debug' | |
[1/589] CXX obj/build_extra/flatbuffers/compiler_files/go_generator.o | |
FAILED: obj/build_extra/flatbuffers/compiler_files/go_generator.o | |
/tmp/deno/prebuilt/linux64/sccache ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/build_extra/flatbuffers/compiler_files/go_generator.o.d -DV8_DEPRECATION_WARNINGS -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DCHROMIUM_BUILD -DFIELDTRIAL_TESTING_ENABLED -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -DCR_CLANG_REVISION=\"346388-5\" -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS -DCR_LIBCXX_REVISION=344254 -DCR_LIBCXXABI_REVISION=344215 -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -D_GLIBCXX_DEBUG=1 -I../../third_party/flatbuffers/grpc -I../.. -Igen -I../../third_party/flatbuffers/include -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= |
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
// script that parses first 10 pages of your followings and prints curl-commands to unfollow them on codecanyon.net | |
const fetch = require("node-fetch"); | |
const regex = /<a class="avatar" title="(.+?)"/gm; | |
//TODO: change pages count if needed | |
for (let page = 1; page <= 10; page++) { | |
fetch(`https://codecanyon.net/user/maxim_mazurok/following?page=${page}`) | |
.then(res => res.text()) |
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
# Protect GRUB2 with password on CentOS: | |
# | |
# Tested (basic): | |
# 1. Run: | |
sudo grub2-setpassword # to set root password | |
# 2. Update GRUB config: | |
sudo grub2-mkconfig -o /boot/grub2/grub.cfg | |
# | |
# Not tested (advanced): | |
# 1. Run 'grub2-mkpasswd-pbkdf2' as root to generate encrypted password. |
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
/home/maxim/.nvm/versions/node/v12.13.0/bin/node /home/maxim/.nvm/versions/node/v12.13.0/lib/node_modules/npm/bin/npm-cli.js run start --scripts-prepend-node-path=auto | |
> gmail-api-typings-generator@ start /home/maxim/IdeaProjects/google-api-typings-generator | |
> ts-node src/google-api-typings-generator.ts --out ./types | |
/home/maxim/IdeaProjects/google-api-typings-generator/node_modules/ts-node/src/index.ts:293 | |
return new TSError(diagnosticText, diagnosticCodes) | |
^ | |
TSError: ⨯ Unable to compile TypeScript: |
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
[2020-01-07T21:10:32.008Z] cloudidentity:v1beta1 changed | |
[2020-01-07T21:10:50.175Z] fcm:v1 changed | |
[2020-01-07T21:15:31.100Z] classroom:v1 changed | |
[2020-01-07T21:16:11.734Z] runtimeconfig:v1 changed | |
[2020-01-07T21:21:10.775Z] remotebuildexecution:v1alpha changed | |
[2020-01-07T21:21:25.053Z] sheets:v4 changed | |
[2020-01-07T21:26:32.119Z] tagmanager:v1 changed | |
[2020-01-07T21:36:09.790Z] runtimeconfig:v1beta1 changed | |
[2020-01-07T21:36:11.287Z] script:v1 changed | |
[2020-01-07T21:41:24.950Z] slides:v1 changed |
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
// Type definitions for non-npm package Tasks API v1 1.0 | |
// Project: https://developers.google.com/google-apps/tasks/firstapp | |
// Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok> | |
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | |
// TypeScript Version: 2.8 | |
// IMPORTANT | |
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually. | |
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator | |
// Generated from: https://www.googleapis.com/discovery/v1/apis/tasks/v1/rest |
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
[2020-01-11T10:45:40.481Z] cloudtasks:v2 changed | |
[2020-01-11T10:45:44.947Z] container:v1 changed | |
[2020-01-11T10:46:22.845Z] servicecontrol:v1 changed | |
[2020-01-11T10:51:30.877Z] videointelligence:v1p2beta1 changed | |
[2020-01-11T11:00:36.061Z] cloudtasks:v2beta3 changed | |
[2020-01-11T11:01:33.275Z] videointelligence:v1 changed | |
[2020-01-11T11:05:45.472Z] discovery:v1 changed | |
[2020-01-11T11:10:39.723Z] cloudsearch:v1 changed | |
[2020-01-11T11:10:40.262Z] cloudtasks:v2beta2 changed | |
[2020-01-11T11:20:32.116Z] classroom:v1 changed |
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
# Credits: https://www.youtube.com/watch?v=h3l4qz76JhQ | |
# Basic description: teach NN to output [0, 1, 1, 0] for different inputs | |
import numpy as np | |
def nonlin(x, deriv=False): | |
if(deriv == True): | |
return x*(1-x) | |
return 1/(1+np.exp(-x)) |
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
{ | |
"auth": { | |
"oauth2": { | |
"scopes": { | |
"https://www.googleapis.com/auth/cloud-platform": { | |
"description": "View and manage your data across Google Cloud Platform services" | |
} | |
} | |
} | |
}, |
OlderNewer