Skip to content

Instantly share code, notes, and snippets.

View farazshaikh's full-sized avatar

f farazshaikh

View GitHub Profile
@farazshaikh
farazshaikh / openapi.json
Created April 28, 2025 05:09
NORD JSON API - APR 27 2025
{
"openapi": "3.1.0",
"info": {
"title": "nord",
"description": "",
"license": {
"name": ""
},
"version": "0.4.0"
},
@farazshaikh
farazshaikh / risc-zero-stark-to-snark-prover_attestation.log
Created April 14, 2024 20:09
Attestation for RISC Zero STARK-to-SNARK Prover MPC Phase 2 Trusted Setup ceremony
Hey, I'm farazshaikh-2507850 and I have contributed to the RISC Zero STARK-to-SNARK Prover MPC Phase2 Trusted Setup ceremony.
The following are my contribution signatures:
Circuit # 1 (stark_verify)
Contributor # 62
Contribution Hash: 58d72e49 8c99ce0c bac78005 c6f83b38
e3b94f2b 529da17a 3d7864a1 eaebc021
e60d7af9 39a06653 b4c34838 92ef777b
65246672 326bed9a 9781817f 86c11106
@farazshaikh
farazshaikh / main.rs
Created August 11, 2021 06:19
2D Slice example in Rust.
std::fmt::Display;
type TwoDSlice<'a, T> = [&'a mut [T]];
fn print2dslice<T: Display>(two_d_slice: &Box<TwoDSlice<T>>) {
for (row_idx, row) in two_d_slice.iter().enumerate() {
println!("");
for (col_idx, elt) in row.iter().enumerate() {
print!("[{} {} {}] ", row_idx, col_idx, elt);
}
OpengrokCodeIndex Setup
Contents
--------
Notes for future: Moving opengrok to home server
Download and install pre-reqs
Setup directory structure
Download and setup opengrok
@farazshaikh
farazshaikh / navigatorY.js
Last active October 21, 2015 03:57
Example use of React Native javascript navigator
/*
* Example use of React Native javascript navigator
*/
'use strict';
var React = require('react-native');
var {
TouchableOpacity,
AppRegistry,
StyleSheet,
var http = require('http');
var server = http.createServer(function(req, res) {
// console.log(req); // debug dump the request
// If they pass in a basic auth credential it'll be in a header called "Authorization" (note NodeJS lowercases the names of headers in its request object)
var auth = req.headers['authorization']; // auth is in base64(username:password) so we need to decode the base64
console.log("Authorization Header is: ", auth);