Skip to content

Instantly share code, notes, and snippets.

View purplesyringa's full-sized avatar
🥺

Alisa Sireneva purplesyringa

🥺
View GitHub Profile
I hereby confirm that gitcenter1@zeroid.bit is me.
travis_fold:start:worker_info
Worker information
hostname: 09ebe55f-3389-4b65-837b-02b43cbca086@1.worker-org-689d9fcfd5-7rxgt.gce-production-1
version: v6.2.8 https://github.com/travis-ci/worker/tree/6d3048d96b26562be21fa1a8b8144f4c4cecd083
instance: travis-job-b5f73953-be9a-4c10-8683-9c557f3a2974 travis-ci-sardonyx-xenial-1553530528-f909ac5 (via amqp)
startup: 6.261711909s
travis_fold:end:worker_info
travis_time:start:18c3f290
travis_time:end:18c3f290:start=1583342082143600118,finish=1583342082289048405,duration=145448287,event=no_world_writable_dirs
travis_time:start:006cab2d
travis_fold:start:worker_info
Worker information
hostname: 5ac4e035-f64c-4d22-b408-612f9ffd3558@1.worker-org-db8cd8d97-mjfjn.gce-production-1
version: v6.2.8 https://github.com/travis-ci/worker/tree/6d3048d96b26562be21fa1a8b8144f4c4cecd083
instance: travis-job-f6b4c042-68b1-4070-b693-d13c5d853eb9 travis-ci-sardonyx-xenial-1553530528-f909ac5 (via amqp)
startup: 5.926745095s
travis_fold:end:worker_info
travis_time:start:0e38a370
travis_time:end:0e38a370:start=1583236804673943834,finish=1583236804815720438,duration=141776604,event=no_world_writable_dirs
travis_time:start:062be771
I, Ivanq, own gitcenteramorgan@zeroid.bit (address: 194pDo3F76iy7UnsyuXVdgtH3BVM1Ai1dg), registered on zn.amorgan.xyz proxy.
@purplesyringa
purplesyringa / bug.c++
Created June 16, 2018 13:38
clang bug?
//
// main.cpp
// Work in Moscow
//
// Created by Ivan Gorbunov on 21.07.17.
// Copyright © 2017 Ivan Gorbunov. All rights reserved.
//
#include <algorithm>
#include <iostream>
#include <cstdlib>

C++ и STL

Библиотеки

bits/stdc++.h

IO

ios_base::sync_with_stdio(0); - только если только cin/cout или только scanf/printf.

@purplesyringa
purplesyringa / BK0010.sublime-build
Created April 22, 2018 12:24
Sublime Build System для БК0010 / PDP11ASM
{
"shell_cmd": "\"/Users/Ivanq/Documents/BK0010/compile.sh\" \"$file_path/$file_name\""
}
@purplesyringa
purplesyringa / pdp11asm.md
Last active October 22, 2019 08:49
Syntax highlighting for PDP11ASM

Откройте папку с пакетами Sublime опцией Browse packages.... Перейдите в папку User и скопируйте туда приведенные ниже файлы.

Затем откройте любой исходник на ассемблере (файл с расширением .ASM или .MAC), выберите в списке языков (справа снизу) PDP-11 Asm. Затем в Preferences -> Color Scheme... выберите pdp11asm.


Open the directory with Sublime packages by pressing Browse packages.... Then open User subdirectory and copy the files below there.

Then open any assembler source (.ASM or .MAC), choose PDP-11 Asm in the language list (bottom right). Then open Preferences -> Color Scheme... and choose pdp11asm.

@purplesyringa
purplesyringa / compile.sh
Last active April 22, 2018 11:57
PDP11/BK0010 compiler script
#!/usr/bin/env bash
cd "$(dirname "$0")"
echo Compiling $1
./compiler "$1" >_log
if [ $? -ne 0 ]; then
cat _log | python -c "import sys; print sys.stdin.read().decode('utf-8', 'ignore').encode('utf-8')" | tail -2 | head -1
exit
@purplesyringa
purplesyringa / sword.cpp
Last active February 21, 2018 21:18
Some code looking like sword
template
<class T>
struct
RMQ{
typedef
vector<
T>V;
typedef
size_t
H;vector