This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying my Blockstack ID is secured with the address 1oVAUqjZLsvvGCT3JmPcTNGF5VQqBTrw1 https://explorer.blockstack.org/address/1oVAUqjZLsvvGCT3JmPcTNGF5VQqBTrw1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var randomInt = (min,max) => { return Math.floor(Math.random() * (max - min + 1) + min) } | |
var loremString = (max) => { | |
let words = ['ad', 'adipisicing', 'aliqua', 'aliquip', 'amet', 'anim', 'aute', 'cillum', 'commodo', 'consectetur', 'consequat', 'culpa', 'cupidatat', 'deserunt', 'do', 'dolor', 'dolore', 'duis', 'ea', 'eiusmod', 'elit', 'enim', 'esse', 'est', 'et', 'eu', 'ex', 'excepteur', 'exercitation', 'fugiat', 'id', 'in', 'incididunt', 'ipsum', 'irure', 'labore', 'laboris', 'laborum', 'Lorem', 'magna', 'minim', 'mollit', 'nisi', 'non', 'nostrud', 'nulla', 'occaecat', 'officia', 'pariatur', 'proident', 'qui', 'quis', 'reprehenderit', 'sint', 'sit', 'sunt', 'tempor', 'ullamco', 'ut', 'velit', 'veniam', 'voluptate' ] | |
var sentence = '' | |
var count = max | |
while (count > 0) { | |
let i = randomInt(0,words.length) | |
let word = words[i] | |
sentence = count == max ? word : sentence+' '+word | |
count = count - 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// RealmORM.swift | |
// | |
// Copyright © 2016 Mobile Flow LLC. All rights reserved. | |
// | |
import UIKit | |
import Realm | |
import RealmSwift |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ParseORM.swift | |
// | |
// Copyright © 2016 Mobile Flow LLC. All rights reserved. | |
// | |
import UIKit | |
import Parse | |
class ParseORM : NSObject { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MARK: - NSDate timeAgoSinceDate | |
// Updated for Swift2.0 | |
func timeAgoSinceDate(date:NSDate, numericDates:Bool) -> String { | |
let calendar = NSCalendar.currentCalendar() | |
let now = NSDate() | |
let earliest = now.earlierDate(date) | |
let latest = (earliest == now) ? date : now | |
let components:NSDateComponents = calendar.components([.Hour, .Minute, .Day, .WeekOfYear, .Month, .Year, .Second], fromDate: earliest, toDate: latest, options: []) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" | |
"http://www.w3.org/TR/html4/strict.dtd"> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<link rel="stylesheet" href="stylesheets/canvas.css" type="text/css" media="screen" /> | |
<style type="text/css" media="screen"> | |
#wrapper {width:100%;} | |
#wrapper p {width:80% !important;} |
NewerOlder