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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net.Sockets; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Org.BouncyCastle.Math; | |
using Org.BouncyCastle.Crypto.Tls; | |
namespace test_ssl_bouncy |
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
LIST = """ул. Налибокская, 34; | |
ул. Якубовского, 34; | |
ул. Шаранговича, 34; | |
ул. Пушкина, 38; | |
ул. Притыцкого, 54; | |
ул. Рафиева, 109; | |
ул. Бурдейного, 25; | |
ул. Ульяновская, 32; | |
ул. Каменногорская, 18; | |
ул. Одинцова, 89; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# plot voltages captured by arduino ADC (AnalogReadSerial example) | |
# capture data with RealTerm 3.0 | |
# use custom timestamp format: yyyy-mm-dd hh:nn:ss.zzz | |
import pandas as pd | |
df = pd.read_csv('capture.txt', names=['t','v'], parse_dates=['t']) | |
df['v'] = df['v'] / 1023 * 5 | |
df['ms'] = (df['t'] - df['t'][0]).astype('timedelta64[ms]') | |
df.plot('ms','v') |
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
// ==UserScript== | |
// @name Changeset Links | |
// @namespace http://tampermonkey.net/ | |
// @version 1.1 | |
// @description adds achavi link to openstreetmap changeset page | |
// @author shrddr | |
// @match https://www.openstreetmap.org/* | |
// @grant none | |
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js | |
// ==/UserScript== |
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
/* In this model, the actor owns a bunch of components, which in turn | |
serves as the base class for the component interfaces. Whenever a | |
system needs access to a component, it asks the actor for that interface | |
and gets a pointer to the appropriate interface object. */ | |
struct Component | |
{ | |
}; |
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
IModel* m = new MyModel(); | |
shared_ptr <IView> v(MyView()); | |
m->addView; |
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> | |
class SpriteSet | |
{ | |
public: | |
SpriteSet(int count) { m_count = count; } | |
void render() { std::cout << m_count << " sprites\n"; } | |
private: | |
int m_count; |
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> | |
class GameState | |
{ | |
public: | |
static GameState* create(int choice); | |
virtual void invoke() = 0; | |
}; |