Skip to content

Instantly share code, notes, and snippets.

View cyborgshead's full-sized avatar
🎯
#cyber

C H cyborgshead

🎯
#cyber
View GitHub Profile
nodes:
- id: webcam
custom:
source: https://huggingface.co/datasets/dora-rs/dora-idefics2/raw/main/operators/opencv_stream.py
outputs:
- image
- id: idefics2
operator:
python: https://huggingface.co/datasets/dora-rs/dora-idefics2/raw/main/operators/idefics2_op.py
inputs:
@veekaybee
veekaybee / normcore-llm.md
Last active November 18, 2024 19:40
Normcore LLM Reads

Anti-hype LLM reading list

Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

Foundational Concepts

Screenshot 2023-12-18 at 10 40 27 PM

Pre-Transformer Models

@wolfram77
wolfram77 / report-dead-end-handling-strategies-for-page-rank-algorithm.md
Last active September 7, 2022 16:59
Dead End handling strategies for PageRank algorithm : REPORT

Dead End handling strategies for PageRank algorithm

While doing research work with [Prof. Kishore Kothapalli], [Prof. Dip Sankar Banerjee].

Abstract — Presence of dead ends, which are vertices without any out-edges, in a graph under PageRank computation can cause importance to leak out. This is undesirable since this can cause ranks of all vertices to converge to zero, which is a valid, but useless solution. Four different dead end handling strategies for static, incremental, and dynamic PageRank are studied here. These include: teleport, loop, loop-all, and remove. Results indicate that the remove strategy performs best, on average. This however is suitable only if it is possible to keep track of the dead-end free version of the graph, as otherwise the cost of recursively removing dead ends from the graph is significant. The loop and loop-all strategies perform similarly. Additionally, loop-all is a fair strategy and may be a better choice for networks associated with people. Teleport strategy pe

ICS: Cinderella Tokens: An Async/IBC friendly alternative to flash loans

Flashloans are a fascinating economic coordination mechanism that has emerged out the Ethereum architecture as a result of a synchronous, sequential, atomic transaction system. It allows anonymous coordination between capital providers and arbitrageurs because the capital providers can condition providing any capital on protocol enforced guarantee that the entire arbitrage is profitable denominated in the token being lent.

One of the effects of this process has been the it ensures an efficient and healthy liquidation market for the collateral in long term debt instruments. It also enables low cost scaling of economic exploits.

Why don’t flash loans exist in IBC world?

Flash loans are impossible in an IBC world because IBC semantics require finalizing a block on the origin chain rather than on the receiving chain. This makes atomicity for the lender difficult and moves us into the domain of over collateralized lending.

@mastercyb
mastercyb / need-muse.md
Last active September 28, 2020 21:29
Ассистент

Ищу музу

Привет :-)

Я инженер, инвестор и просто прикольный чувак. Криптоанархист. Занимаюсь всяким. Инвестирую в дикую дич (роботы, ии, суперкомпы). Мне нужен ассистент, муза.

Амбициозная, надежная, дерзкая, честная, красивая женщина рядом которая организует мой быт, досуг, время и персональные данные. В обмен получишь уникальные знания и внутреннюю свободу. Я требователен. Ты со мной либо сильно вырастешь, либо сдашься :-) Будь готова к креативным задачам и постоянному путешествию.

Интеллект необходим (!) Без английского тоже никак. Даже не рыпайся. Хорошо развитые творческие, технические и геймерские навыки - жирный плюс. Выпускницам физ., хим., био., мед., мат. факультетов - еще один гигантский бонус. Техниче

@cag
cag / CTHelpers.sol
Created July 14, 2020 19:33
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.6.6+commit.6c089d02.js&optimize=false&gist=
pragma solidity ^0.6.0;
import { IERC20 } from "github.com/OpenZeppelin/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol";
library CTHelpers {
/// @dev Constructs a condition ID from an oracle, a question ID, and the outcome slot count for the question.
/// @param oracle The account assigned to report the result for the prepared condition.
/// @param questionId An identifier for the question to be answered by the oracle.
/// @param outcomeSlotCount The number of outcome slots which should be used for this condition. Must not exceed 256.
function getConditionId(address oracle, bytes32 questionId, uint outcomeSlotCount) internal pure returns (bytes32) {
@jaekwon
jaekwon / scrypt.md
Last active June 14, 2023 02:28
The Scrypt of C฿J

This document is a personal document and does not represent the views of the company. This document is in draft form and I reserve to modify the contents of it.

The Scrypt of C฿J

  • ! The days after Christmas, for personal reasons, it became clear to me that I had been living most of my life within the confines of guilt masked as love. This is just the circumstance of my personal life, something that chose me by chance or by fate, but somehow I was always aware of.
  • ! When all the circumstances of my life and work came together under this new perspective, everything began to make sense. That I was too selfless to a fault (though some would say naive). And finally I could see why.
  • ! I don’t wish to speak more about it for respect of those involved, and to keep their honor; and besides, I accept the imperfections that I have, if I don’t celebrate them.
  • ! Until I settled in the Mission in San Francisco, I was always moving around, country to country, state to state. The only constant I knew w
@cyborgshead
cyborgshead / aragon_bare_setup.md
Last active November 25, 2021 13:28
Aragon DAO bare setup

Prepare ~/.aragon/rinkeby_key.json

{
  "rpc": "https://<network>.infura.io",
  "keys": ["put-your-priv-key-here"]
}

Bootstrap

@andy-thomason
andy-thomason / Genomics_A_Programmers_Guide.md
Created May 14, 2019 13:32
Genomics a programmers introduction

Genomics - A programmer's guide.

Andy Thomason is a Senior Programmer at Genomics PLC. He has been witing graphics systems, games and compilers since the '70s and specialises in code performance.

https://www.genomicsplc.com

@BarclayII
BarclayII / movielens.py
Last active December 9, 2023 05:47
PinSage example implementation
import pandas as pd
import dgl
import os
import torch
class MovieLens(object):
def __init__(self, directory):
'''
directory: path to movielens directory which should have the three
files: