Skip to content

Instantly share code, notes, and snippets.

View DavidBurela's full-sized avatar

David Burela DavidBurela

View GitHub Profile
@DavidBurela
DavidBurela / easter.js
Created February 28, 2019 04:42
Code snippet from the Build website - I don't have any insider info about this easter egg
// Disclaimer: I don't have any insider info about this. I am just as interested.
// Text from https://www.microsoft.com/en-us/build#agenda
// https://img-prod-cms-rt-microsoft-com.akamaized.net/cms/api/am/imageFileData/RWtKxO
// Uses the `request` module from npm.
// Quickstart: `mkdir node && cd node && npm init -y && npm install request`
const request = require('request')
const queryString = Buffer.from('Intelligent Edge').toString('base64')
// get accounts
web3.eth.accounts
// get reference to deployed contract
var metaCoin;
MetaCoin.deployed().then(function(deployed) {metaCoin = deployed;});
// get balance of account 0
metaCoin.getBalance.call(web3.eth.accounts[0])

Keybase proof

I hereby claim:

  • I am davidburela on github.
  • I am davidburela (https://keybase.io/davidburela) on keybase.
  • I have a public key ASCDWw3sFc2_cjL2L4ICsRfygaPTK9dT7EdXAgBGgC5TsAo

To claim this, I am signing this object:

@DavidBurela
DavidBurela / Main.cs
Last active December 14, 2015 09:59
A Windows RT example of how to call the Sensis SAPI service Is a direct port of http://developers.sensis.com.au/docs/examples/C_Example
namespace SsapiExample
{
public class SearchSample
{
public SearchSample()
{
DoSampleSearch();
}
public async void DoSampleSearch()
@DavidBurela
DavidBurela / AsyncPortableTask.cs
Created July 9, 2012 08:05 — forked from dsplaisted/AsyncPortableTask.cs
Portable task wrappers
// An implementation of IPortableTask which wraps an actual Task.
// This has to go in a project targeting a platform or platforms which support Task and async/await
using System;
using System.Threading.Tasks;
namespace PortableTasks
{
public class AsyncPortableTask : IPortableTask
{