Skip to content

Instantly share code, notes, and snippets.

View moflo's full-sized avatar
🎯
Focusing

moflo moflo

🎯
Focusing
View GitHub Profile
@moflo
moflo / Webcrawl YCombinator Database, ycdb.co
Created December 8, 2018 01:55
Use the Ruby Capybara-based Kimurai web crawler to iterate through the YCDB.co data and populate an AirTable spreadsheet
require 'airrecord'
require 'kimurai'
# Use the Capybara based Kimurai web crawler to iterate through the YCDB.co data and populate an AirTable spreadsheet
class YCDBSpider < Kimurai::Base
@name = "example_spider"
@engine = :mechanize
import UIKit
// CSV column filtering
// Generate function which takes CSV string and column names as input and return array of sums of column data
// For example, a string of CSV data includes a header row, and columns consisting of Double and Strings.
func csvSum(_ csv:String,_ names: String) -> [Double]? {
let rows :[String] = csv.split(separator: "\n").map { String($0) }
@moflo
moflo / App.js
Created November 20, 2021 22:22 — forked from farzaa/App.js
import './styles/App.css';
import twitterLogo from './assets/twitter-logo.svg';
import { ethers } from "ethers";
import React, { useEffect, useState } from "react";
import myEpicNft from './utils/MyEpicNFT.json';
const TWITTER_HANDLE = '_buildspace';
const TWITTER_LINK = `https://twitter.com/${TWITTER_HANDLE}`;
const OPENSEA_LINK = '';
const TOTAL_MINT_COUNT = 50;