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
const { utimesSync } = require('fs'); | |
const { Airgram, Auth, isError, prompt, toObject, Message } = require('airgram'); | |
const probe = require('node-ffprobe'); | |
const tdLibFile = process.platform === 'win32' ? 'tdjson.dll' : 'libtdjson.so' | |
const { API_ID, API_HASH, CHAT_ID } = process.env; | |
const airgram = new Airgram({ | |
apiId: API_ID, | |
apiHash: API_HASH, |
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
library(httr) | |
library(GEOmetadb) | |
library(rhdf5) | |
library(tidyr) | |
isGPLAnnotGood <- function (gpl) { | |
stub = gsub('\\d{1,3}$','nnn',gpl,perl=TRUE) | |
gplurl <- 'https://ftp.ncbi.nlm.nih.gov/geo/platforms/%s/%s/annot/%s' | |
myurl <- sprintf(gplurl,stub,gpl,paste0(gpl,'.annot.gz')) |
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 arm64v8/ubuntu | |
RUN apt-get update | |
ARG LUA_VERSION=5.1 | |
RUN apt-get update && \ | |
apt-get -y upgrade && \ | |
apt-get -y install libreadline-dev libssl-dev lua5.1 liblua5.1-dev git make unzip redis-server curl libcurl4-gnutls-dev wget && \ | |
wget http://luarocks.org/releases/luarocks-2.2.2.tar.gz && \ | |
tar zxpf luarocks-2.2.2.tar.gz && \ | |
cd luarocks-2.2.2 && \ | |
sh ./configure --lua-version=${LUA_VERSION} && \ |
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
const m3u = require('m3ujs'); | |
const {promisify} = require('util'); | |
const sanitize = require("sanitize-filename"); | |
const fetch = require('node-fetch'); | |
const ID3Writer = require('browser-id3-writer'); | |
const fs = require('fs'); | |
const path = require("path"); | |
const readFileAsync = promisify(fs.readFile); | |
const writeFileAsync = promisify(fs.writeFile); | |
const jsmediatags = require("jsmediatags"); |
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
#TabsToolbar { | |
visibility: collapse; | |
} | |
#titlebar { | |
display: none; | |
} | |
#nav-bar { | |
margin-top: 10px; |
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
backend = "glx"; | |
paint-on-overlay = true; | |
glx-no-stencil = true; | |
glx-no-rebind-pixmap = true; | |
vsync = "opengl-swc"; | |
# These are important. The first one enables the opengl backend. The last one is the vsync method. Depending on the driver you might need to use a different method. | |
# The other options are smaller performance tweaks that work well in most cases. | |
# You can find the rest of the options here: https://github.com/chjj/compton/wiki/perf-guide, and here: https://github.com/chjj/compton/wiki/vsync-guide |
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
Section "ServerLayout" | |
Identifier "layout" | |
Screen 0 "intel" | |
Screen 1 "radeon" LeftOf "intel" | |
EndSection | |
Section "Device" | |
Identifier "radeon" | |
Driver "radeon" | |
BusID "PCI:1:0: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
// | |
// Created by kamenev on 09.03.16. | |
// | |
#include <fstream> | |
#include <vector> | |
#include <iterator> | |
#include <algorithm> | |
#define IN "search3" |
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 <iostream> | |
#include <ostream> | |
#include <fstream> | |
#include <cmath> | |
#include <ctime> | |
#include <vector> | |
#include <algorithm> | |
#include <iterator> | |
#include <functional> | |
using namespace std; |
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 <iostream> | |
#include <vector> | |
#include <stack> | |
using namespace std; | |
stack<int> m; | |
vector<pair<bool,int>> items; | |
int ss=0; | |
inline int summ(std::stack<int> in) | |
{ | |
int s=0; |