Skip to content

Instantly share code, notes, and snippets.

Stanislav Pankevich stanislaw

Block or report user

Report or block stanislaw

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
\caption{Basic layout}
stanislaw / wrapfigure_without_whitespace.tex
Created Oct 6, 2018 — forked from yig/wrapfigure_without_whitespace.tex
Eliminate white space around wrapfigure environments in LaTeX.
View wrapfigure_without_whitespace.tex
%% The typical answer for how to eliminate white space in wrapfigure doesn't work for me (I'm using a SIGGRAPH style sheet):
%% Instead, let's just offset the image.
%% The horizontal white space is \columnsep and the vertical white space is \intextsep.
%% Subtract them from the column width and offset the image accordingly.
%% How to move an image:
\begin{wrapfigure}[11]{R}{1in - .75\columnsep}
stanislaw / HexDump.c
Created Apr 30, 2018
Printing hex dumps for diagnostics
View HexDump.c
stanislaw /
Created Mar 19, 2018
Idea onboarding


  • Command + N Generate...

  • Command + E Recent files

  • Command + Shift + backspace - идет назад по истории изменений

  • Command + Alt + V создать новую переменную из выражения

    • сложные выражения

Keybase proof

I hereby claim:

  • I am stanislaw on github.
  • I am stanislaw ( on keybase.
  • I have a public key ASCiwHfn7gYVr7FqXxfrYIBZmpQYEeW9PkFBUVwhQxx7Ygo

To claim this, I am signing this object:

stanislaw / Beams.lus
Last active Feb 22, 2018
Kind2/Lustre examples for the Week 6 quiz on the course Formal Software Verification.
View Beams.lus
-- I am building a cancer treatment machine. The machine can emit two types of
-- beams; for simplicity let’s just call them A and B. There are two different
-- plates that can be placed in front of the beam; let’s call them 1 and 2. When
-- you turn the machine on it always starts ups with beam set to A and plate set
-- to 1. That is the initial state.
-- For safety reasons we never want the machine to be at beam B and plate 2.
-- If this every happens a deadline dose of radiation will be emitted and it
-- will kill the patient.
-- But all of the other combinations of beams and plates are valid.
stanislaw / DYLDYN.cpp
Created Feb 21, 2018
Fixup selectors
View DYLDYN.cpp
// Resolve the relocations for all symbols we currently know about.
void RuntimeDyldImpl::resolveRelocations() {
MutexGuard locked(lock);
// Print out the sections prior to relocation.
for (int i = 0, e = Sections.size(); i != e; ++i)
dumpSectionMemory(Sections[i], "before relocations");
stanislaw / Communicator.h
Created Feb 15, 2018 — forked from rjungemann/Communicator.h
How to open a TCP socket in Objective-C
View Communicator.h
#import <Foundation/Foundation.h>
@interface Communicator : NSObject <NSStreamDelegate> {
NSString *host;
int port;
- (void)setup;
stanislaw / runtime-class.m
Created Feb 14, 2018 — forked from mikeash/runtime-class.m
Creating a usable class purely at runtime using the Objective-C runtime APIs.
View runtime-class.m
// clang -fobjc-arc -framework Foundation runtime-class.m
#import <Foundation/Foundation.h>
#import <objc/runtime.h>
@interface Person : NSObject
- (id)initWithFirstName: (NSString *)firstName lastName: (NSString *)lastName age: (NSUInteger)age;
You can’t perform that action at this time.