Skip to content

Instantly share code, notes, and snippets.

#include <bits/stdc++.h>
using namespace std;
const int N = 3e5 + 5;
int n, k, p, prv[N];
int main() {
// readining input
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="output" path="bin"/>
<classpathentry kind="lib" path="/path/to/lib/stdlib.jar"/>
<classpathentry kind="lib" path="/path/to/lib/algs4.jar"/>
<classpathentry kind="lib" path="/path/to/lib/introcs.jar"/>
</classpath>
#######
LanguageClient 0.1.161
#######
11:30:06 DEBUG unnamed src/language_client.rs:108 state: null ==> {"capabilities":{},"code_lens":{},"diagnostics":{},"highlight_match_ids":[],"highlight_source":null,"highlights":{},"highlights_placed":{},"initialization_options":null,"inlay_hints":{},"last_cursor_line":0,"last_line_diagnostic":" ","logger":{"level":"DEBUG","path":"/home/antlord/.local/share/nvim/LanguageClient.log"},"namespace_ids":{},"registrations":[],"roots":{},"semantic_highlights":{},"semantic_scope_to_hl_group_table":{},"semantic_scopes":{},"stashed_code_action_actions":[],"text_documents":{},"text_documents_metadata":{},"user_handlers":{},"viewports":{}}
11:30:06 INFO unnamed src/language_server_protocol.rs:3580 settings synced
11:30:06 INFO unnamed src/language_server_protocol.rs:3607 Project root: /mnt/home/wantlord/develop/study/languageclienttest
11:30:06 DEBUG writer-None src/rpcclient.rs:254 => None {"jsonrpc":"2.0","method":"s:EchomsgEllipsis","params":["Project root: /mnt/home/wantlord/de
GSConnect Version: 30
GSConnect Install: user
GJS: 15801
XDG_SESSION_TYPE: x11
GDMSESSION: ubuntu
--------------------------------------------------------------------------------
-- Logs begin at Fri 2019-11-08 09:25:47 EET, end at Mon 2019-12-23 16:07:38 EET. --
Dec 23 16:04:03 kernel: usb usb2-port2: Cannot enable. Maybe the USB cable is bad?
Dec 23 16:04:07 kernel: usb usb2-port2: Cannot enable. Maybe the USB cable is bad?
GSConnect Version: 30
GSConnect Install: user
GJS: 15801
XDG_SESSION_TYPE: x11
GDMSESSION: ubuntu
--------------------------------------------------------------------------------
-- Logs begin at Fri 2019-11-08 09:25:47 EET, end at Mon 2019-12-23 16:07:38 EET. --
Dec 23 16:04:03 kernel: usb usb2-port2: Cannot enable. Maybe the USB cable is bad?
Dec 23 16:04:07 kernel: usb usb2-port2: Cannot enable. Maybe the USB cable is bad?
C:\Users\vantlord>cd /d D:\badsound
D:\badsound>dub
## Warning for package badsound ##
The following compiler flags have been specified in the package description
file. They are handled by DUB and direct use in packages is discouraged.
Alternatively, you can set the DFLAGS environment variable to pass custom flags
to the compiler, or use one of the suggestions below:
import std.stdio;
void main() {
int* a = new int(1);
a.writeln;
size_t.sizeof.writeln;
}
[Version]
version=7.51 Build 020
; environment for both 32/64 bit
[Environment]
DFLAGS="-I%@P%\..\..\src\phobos" "-I%@P%\..\..\src\druntime\import"
; optlink only reads from the Environment section so we need this redundancy
; from the Environment32 section (bugzilla 11302)
@ANtlord
ANtlord / sh
Created October 12, 2017 12:20
#!/bin/bash
#COMMAND='/usr/local/bin/flake8 --config=/etc/flake8/.flake8'
COMMAND='/home/antlord/.pyenv/shims/python -m flake8 --config=/media/storage/develop/h4r-platform/.flake8'
TEMPDIR=`mktemp -d`
while read oldrev newrev refname; do
files=`git diff --name-only ${oldrev} ${newrev}`
for file in ${files}; do
object=`git ls-tree --full-name -r ${newrev} | egrep "(\s)${file}\$" | awk '{ print $3 }'`
class AnotherModel(models.Model)
#...
class MyModel(MPTTModel):
parent = TreeForeignKey('self', null=True, blank=True, db_index=True, related_name='children')
shifted_finish_date_from = TreeForeignKey(
AnotherModel, related_name='another_children', null=True, blank=True, db_index=True
)