Skip to content

Instantly share code, notes, and snippets.

View avras's full-sized avatar

Saravanan Vijayakumaran avras

View GitHub Profile
@avras
avras / movsequence1.asm
Last active January 24, 2021 17:03
Move numbers into memory
MOV 40H, #00H
MOV 41H, #01H
MOV 42H, #02H
MOV 43H, #03H
MOV 44H, #04H
MOV 45H, #05H
MOV 46H, #06H
MOV 47H, #07H
MOV 48H, #08H
MOV 49H, #09H
@avras
avras / allow-trustline.js
Last active September 6, 2021 19:17
Stellar Asset Transfer
// Script for allowing a trustline for an asset
const StellarSdk = require('stellar-sdk');
// The source account is the account which will be issuing the new asset
// Replace this value with your own public key
const sourcePublicKey = 'GCCNY66T3W2FJ544FPFPXQCXDRDODPIHY2UHTYJIJ44G6FKUB5AKZMS4';
const receiverSecretKey = 'SDHDHPQNSEPTWPDXAURD3BTYNVORAQTE5LZLJ75MRG4ZX3V3YWGQHGXB';
@avras
avras / gist:f9e343a1f9ebd1f6f467ac91be8bbe0f
Created November 3, 2017 05:51
Blockstack verification
Verifying my Blockstack ID is secured with the address 138eWwShx6XthGZZMthx5Kcf3BS36iiwMQ https://explorer.blockstack.org/address/138eWwShx6XthGZZMthx5Kcf3BS36iiwMQ

Keybase proof

I hereby claim:

  • I am avras on github.
  • I am sarva_v (https://keybase.io/sarva_v) on keybase.
  • I have a public key ASB8Rv2B_U5n43syk5TLBx1Mu0_nSxY61N3UQOlENBMjPQo

To claim this, I am signing this object:

@avras
avras / udp_cs_pairs.cc
Created November 16, 2012 07:36
A number of UDP echo client/server pairs communicating with each other
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
@avras
avras / bankaccount.erl
Created November 13, 2012 09:07
Illustration of gen_server using a bank account example
%% Illustration of gen_server using a bank account example
%% Author: Saravanan Vijayakumaran
%% Date: 13/11/2012
-module(bankaccount).
-record(account, {customer, number, balance}).
-behaviour(gen_server).
-export([init/1, handle_call/3, handle_cast/2,