Skip to content

Instantly share code, notes, and snippets.

View DutchKevv's full-sized avatar
💭
I may be slow to respond.

Kewin Brandsma DutchKevv

💭
I may be slow to respond.
  • Frontend Freelance
  • Amsterdam, The Netherlands
View GitHub Profile
const { MAINNET_PROGRAM_ID, LIQUIDITY_STATE_LAYOUT_V4, Token } = require("@raydium-io/raydium-sdk")
const { Connection } = require("@solana/web3.js")
const bs58 = require('bs58')
const connection = new Connection('RPC URL')
let timeoutRef
const raydiumSubscriptionId = connection.onProgramAccountChange(
MAINNET_PROGRAM_ID.AmmV4,
async updatedAccountInfo => {
@DutchKevv
DutchKevv / stickybar
Last active December 30, 2015 08:39
A javascript sticky bar (floating sidebar) plugin. Requires jQuery and lodash/underscore
(function (window, document, App, $, _) {
'use strict';
App.prototype.Components || (App.prototype.Components = {});
var supports3d = false,
prefixes = ['Webkit', 'Moz', 'ms', 'O'],
div = document.createElement('div');
if (typeof div.style.perspective !== 'undefined') {