Skip to content

Instantly share code, notes, and snippets.

View Nek's full-sized avatar
🏠
Working from home

Nikita Dudnik Nek

🏠
Working from home
View GitHub Profile
class BackedProxy {
static DEBUG = true;
static WRAPPED = Symbol('Wrapped Objects accessor.');
static make = (obj, origObj) => new Proxy(obj, {
get(obj, prop, receiver) {
if (prop === BackedProxy.WRAPPED) return {obj, origObj};
if (BackedProxy.DEBUG) {
console.log(`get ${prop.toString()})`)
}
const value = prop in obj ? obj[prop] : origObj[prop]
-- https://github.com/Simon-L/ModScript script for interaction with Akai Fire MIDI controller
config.frameDivider = 1
config.bufferSize = 32
done = false
buttonTrig = SchmittTrigger.new()
OR, XOR, AND = 1, 3, 4
set -gx CPATH $CPATH "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.0/include"
set -gx CPATH $CPATH "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include"
set -gx CPATH $CPATH "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include"
set -gx CPATH $CPATH "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Versions/Current/Headers"
set -gx CC /usr/bin/clang
set -gx CPATH $CPATH "/opt/homebrew/opt/libgccjit/include"
set -gx CPATH $CPATH "/opt/homebrew/opt/gcc/lib/gcc/12/gcc/aarch64-apple-darwin22/12/include"
set -gx LDFLAGS $LDFLAGS "-L/opt/homebrew/opt/libgccjit/lib/gcc/12"
I am attesting that this GitHub handle nek is linked to the Tezos account tz1SG66LHjWadhJXj7WKUsa2uaxpNndNvpQ8 for tzprofiles
sig:edsigu3xgjuxKnLfTxrJ6xDUwJM9TdVu7kmzJBjzXXZptrk7pPUJXuB2MRh9DLxTSPDR2QfJCg8nUrArh9A4qiRAKjwZMAfAtAn
I am attesting that this GitHub handle nek is linked to the Tezos account tz1SG66LHjWadhJXj7WKUsa2uaxpNndNvpQ8 for tzprofiles
sig:edsigu3xgjuxKnLfTxrJ6xDUwJM9TdVu7kmzJBjzXXZptrk7pPUJXuB2MRh9DLxTSPDR2QfJCg8nUrArh9A4qiRAKjwZMAfAtAn
@Nek
Nek / machine.js
Created January 27, 2022 12:18
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@Nek
Nek / hic_et_nunc_basic_scraper.py
Created May 7, 2021 07:10 — forked from Quasimondo/hic_et_nunc_basic_scraper.py
This is a very basic no-frills scraper to retrieve the metadata and digital assets from all tokens minted on hicetnunc.xyz. I share this as a starting point for people who want to experiment with building alternative views on the works created on the platform or preserve the data. Feel free to improve upon this or add additional features.
import requests
import os
import ipfsApi
api = ipfsApi.Client(host='https://ipfs.infura.io', port=5001)
url = "https://better-call.dev/v1/contract/mainnet/KT1RJ6PbjHpwc3M5rw5s2Nbmefwbuwbdxton/tokens"
r = requests.get(url)
data = r.json()
@Nek
Nek / hic_et_nunc_basic_scraper.py
Created May 7, 2021 07:10 — forked from Quasimondo/hic_et_nunc_basic_scraper.py
This is a very basic no-frills scraper to retrieve the metadata and digital assets from all tokens minted on hicetnunc.xyz. I share this as a starting point for people who want to experiment with building alternative views on the works created on the platform or preserve the data. Feel free to improve upon this or add additional features.
import requests
import os
import ipfsApi
api = ipfsApi.Client(host='https://ipfs.infura.io', port=5001)
url = "https://better-call.dev/v1/contract/mainnet/KT1RJ6PbjHpwc3M5rw5s2Nbmefwbuwbdxton/tokens"
r = requests.get(url)
data = r.json()
@Nek
Nek / uninstall_homebrew.sh
Last active August 23, 2020 16:17 — forked from mxcl/uninstall_homebrew.sh
Uninstall Homebrew
#!/bin/sh
# Just copy and paste the lines below (all at once, it won't work line by line!)
# MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY!
function abort {
echo "$1"
exit 1
}
set -e
@Nek
Nek / keybase.md
Created September 14, 2019 06:23

Keybase proof

I hereby claim:

  • I am nek on github.
  • I am dudnik (https://keybase.io/dudnik) on keybase.
  • I have a public key ASC8jl5ig4G_4A4GN2ZtqUiL1EjlFd5ShfXpRTKvnL2B-go

To claim this, I am signing this object: