Skip to content

Instantly share code, notes, and snippets.

View judeebene's full-sized avatar
👨‍💻
Multi-tasking and breaking things

Jude Ben judeebene

👨‍💻
Multi-tasking and breaking things
  • London
View GitHub Profile
{
"fields":[
{
"fields":[
{
"bytes":"bdd5402a608267d8d47e021a61e5c1ae6aa62a1f770579aa38b88143"
},
{
"map":[
{
@judeebene
judeebene / datum1.ts
Last active April 25, 2022 18:41
offer datum
//based on https://gist.github.com/judeebene/021b9c77bb761378e59a8e657cb76cbc datum.json
const serializeOfferDatum = ({
tradeOwnerAddress,
assetPolicyId,
assetSymbol,
quantity,
mediatorAddress,
tresuryAddress,
SwapDeadLine,
}) => {
{ "constructor": 0,
"fields": [
{
"constructor": 0,
"fields": [
{
"bytes": "$sellerPkh"
},
{
@judeebene
judeebene / wallet connect
Created April 18, 2022 13:56
This is a sample cardano wallet connect for Nami
import React, { useState } from 'react';
import { useModel } from 'umi';
import { Avatar, Button, Col, Modal, Row, Statistic } from 'antd';
import Loader from '../../utils/loader';
import type Paginate from '@/interfaces/Paginate';
import type { WalletError } from '@/components/WalletConnect/WalletErrors';
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@judeebene
judeebene / .gitignore
Created July 25, 2021 10:56 — forked from pdxjohnny/.gitignore
Setting Up k3s for Serverless (knative) on a $5 DigitalOcean Droplet Using k3d
.terraform/
*.pem
*.tf
*.tfstate
*.yaml
*.backup
istio-*/
cert-manager-*/
*.swp
env
{
"configurations": [
{
"name": "Mac",
"includePath": [
"${workspaceFolder}/**",
"${env:EMSCRIPTEN}/system/include"
],
"defines": [],
"macFrameworkPath": [
package com.shareqube.nammi.service;
import android.Manifest;
import android.app.IntentService;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.location.Address;
import android.location.Criteria;
import android.location.Geocoder;
@judeebene
judeebene / config.yml
Created April 19, 2018 11:29
Artifactory evaluation
version: 2
jobs:
build:
working_directory: ~/pillar
docker:
- image: circleci/node:8.9.4
steps:
- checkout
- run:
name: download + configure jfrog cli to interact with artifactory
@judeebene
judeebene / postgres-cheatsheet.md
Created January 15, 2018 12:22 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)