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
─────────────────────────────────────────────────────────────────────────────── | |
Language Files Lines Blanks Comments Code Complexity | |
─────────────────────────────────────────────────────────────────────────────── | |
C 352 288903 35009 41638 212256 45085 | |
XML 281 93275 13604 5176 74495 0 | |
HTML 262 4608 926 8 3674 0 | |
Forth 244 93006 13524 0 79482 656 | |
C Header 197 38049 4830 19153 14066 285 | |
Autoconf 80 6398 778 1832 3788 500 | |
m4 56 3842 416 89 3337 0 |
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
thread 'rustc' panicked at 'path resolved multiple times (PartialRes { base_res: Def(Mod, DefId(0:0)), unresolved_segments: 0 } before, PartialRes { base_res: Def(Mod, DefId(0:0)), unresolved_segments: 0 } now)', src/librustc_resolve/lib.rs:2414:13 | |
stack backtrace: | |
0: 0x7f9dd643afe8 - backtrace::backtrace::libunwind::trace::h86edaa2680be3f32 | |
at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/libunwind.rs:88 | |
1: 0x7f9dd643afe8 - backtrace::backtrace::trace_unsynchronized::h020717321cc60d9f | |
at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/mod.rs:66 | |
2: 0x7f9dd643afe8 - std::sys_common::backtrace::_print_fmt::h95a740d649d8282b | |
at src/libstd/sys_common/backtrace.rs:77 | |
3: 0x7f9dd643afe8 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h229d12a248a94d4d | |
at src/libstd/sy |
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 numpy as np | |
import matplotlib.pyplot as plt | |
from matplotlib.widgets import Slider | |
import matplotlib.lines as mlines | |
fig, ax = plt.subplots() | |
plt.subplots_adjust(bottom=0.60) | |
plt.grid(True) | |
MIN = -10 |
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
monitor() { | |
heading_template='\[$(date +%T)\] ' | |
heading_length=11 # "[HH:MM:SS] "=11 | |
#$(echo -n '{CMD}' | cut -c -$(( $COLUMNS - {heading_length} )) ) | |
heading_template+="\$( echo -n '$@' | cut -c -\$(( \$COLUMNS - $heading_length )) )" | |
heading=$(eval echo -n $heading_template) | |
output=$(eval $@ 2>&1) | |
while true; do |
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
def getChar(x, y, accuracy, fns): | |
d = 1 / accuracy / 2 | |
res = ' ' | |
clr = 0 | |
n = 0 | |
for fn in fns: | |
ll = 1 if fn(x, y)[0] else 0 | |
lr = 2 if fn(x + d, y)[0] else 0 | |
ul = 4 if fn(x, y + d)[0] else 0 | |
ur = 8 if fn(x + d, y + d)[0] else 0 |
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
# https://oauth.vk.com/authorize?client_id=6263031&display=page&redirect_uri=https://oauth.vk.com/blank.html&scope=photos,messages,offline,docs&response_type=token | |
vkToken = токен вконтакте | |
userId = айди пользователя вк # ID бота | |
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
/** | |
* Collision box object. | |
* @param {number} x X position. | |
* @param {number} y Y Position. | |
* @param {number} w Width. | |
* @param {number} h Height. | |
*/ | |
function CollisionBox(x, y, w, h) { | |
this.x = x; | |
this.y = y; |
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
Failed to load resource: net::ERR_FILE_NOT_FOUND | |
popup.html:1 Error in response to cookies.getAll: InvalidCharacterError: Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range. | |
at Object.a [as callback] (chrome-extension://njabckikapfpffapmjgojcnbfjonfjfg/scripts/popup.js:4:30972) | |
at Object.callback (chrome-extension://njabckikapfpffapmjgojcnbfjonfjfg/scripts/popup.js:4:32382) |
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
from sys import argv | |
from hashlib import md5 | |
import time | |
import shutil | |
import os | |
import sqlite3 | |
import progressbar # https://pypi.org/project/progressbar2/3.18.1/ | |
def download(fromDir, toDir, copyId): |
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
''' | |
https://projecteuler.net/problem=4 | |
A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99. | |
Find the largest palindrome made from the product of two 3-digit numbers. | |
''' | |
from time import time | |
n = 0 | |
start = time() | |
DELAY = 1000 | |
for a in range(9, 0, -1): |