Skip to content

Instantly share code, notes, and snippets.

View techyrajeev's full-sized avatar

Rajeev Mishra techyrajeev

  • India
View GitHub Profile
@techyrajeev
techyrajeev / ObservableProperty.cs
Created July 12, 2022 18:30 — forked from bugshake/ObservableProperty.cs
C# Observable Property
// get an event when a property changes
public class ObservableProperty<T>
{
T value;
public delegate void ChangeEvent(T data);
public event ChangeEvent changed;
public ObservableProperty(T initialValue)
{
# Get the latest production tag
git tag -l 'production/*' | tail -1
> production/20090610235902
# Create a local production_bugfix branch
git branch production_bugfix production/20090610235902
# Checkout or "switch" to the production_bugfix branch
git co production_bugfix
@techyrajeev
techyrajeev / example.md
Created March 30, 2018 05:29 — forked from sdnts/example.md
Postman pm.sendRequest example

To send a request via the sandbox, you can use pm.sendRequest.

pm.test("Status code is 200", function () {
    pm.sendRequest('https://postman-echo.com/get', function (err, res) {
        pm.expect(err).to.not.be.ok;
        pm.expect(res).to.have.property('code', 200);
        pm.expect(res).to.have.property('status', 'OK');
    });
});