This file contains hidden or 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
head: { | |
title: 'Zero Code NFT Wizard', | |
meta: [ | |
{ charset: 'utf-8' }, | |
{ name: 'viewport', content: 'width=device-width, initial-scale=1' }, // mobile responsive https://search.google.com/test/mobile-friendly | |
{ name: 'format-detection', content: 'telephone=no' }, | |
{ | |
hid: 'description', | |
name: 'description', | |
content: 'Drop your NFT collection with ZERO coding skills', |
This file contains hidden or 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 Vue from 'vue' | |
import { ethers } from 'ethers' | |
import MetaMaskOnboarding from '@metamask/onboarding' | |
export default async ({env}, inject) => { | |
const wallet = Vue.observable({ | |
account: null, | |
accountCompact: null, | |
network: null, |
This file contains hidden or 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
const fs = require('fs'); | |
const path = require('path') | |
function validate(basePath) { | |
console.log("running validation") | |
Object.entries(percentages).forEach(([key,val]) => { | |
const folderPath = path.join(basePath, key) | |
fs.readdir(folderPath, (err, files) => { |
This file contains hidden or 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
function findImports(missingImport) { | |
if (missingImport.startsWith('@openzeppelin')) { | |
console.log(`reading import ${missingImport}`) | |
return { | |
contents: fs.readFileSync(path.join('../node_modules', missingImport), 'utf8') | |
}; | |
} | |
else { | |
console.log(`import ${missingImport} not found`); | |
return { error: 'File not found' }; |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Reflection; | |
using System.Text; | |
using Microsoft.CodeAnalysis; | |
using Microsoft.CodeAnalysis.CSharp; | |
using Microsoft.CodeAnalysis.CSharp.Syntax; | |
using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory; |
This file contains hidden or 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
IEnumerable<dynamic> GetGroup() | |
{ | |
return settings.GroupBy switch | |
{ | |
GroupByEnum.Day => listOfObjects.GroupBy(x => new DateTime(x.StartDate.Year, x.StartDate.Month, x.StartDate.Day)) | |
.Select(x => new | |
{ | |
Date = x.Key.ToString("d"), | |
Items = x | |
}), |
This file contains hidden or 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
.clamp { | |
display: -webkit-box; | |
overflow: hidden; | |
text-overflow: ellipsis; | |
-webkit-box-orient: vertical; | |
-webkit-line-clamp: 2; | |
} |
This file contains hidden or 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
private static async Task<string> UploadFile(byte[] bytes, string expiresParam = "1d", bool noIndexParam = true) | |
{ | |
string res = null; | |
try | |
{ | |
using (var client = new HttpClient()) | |
using (var formData = new MultipartFormDataContent()) | |
{ | |
formData.Add(new StringContent(noIndexParam.ToString()), "no_index"); | |
formData.Add(new StringContent(expiresParam), "expires"); |
This file contains hidden or 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
using Org.BouncyCastle.Bcpg; | |
using Org.BouncyCastle.Bcpg.OpenPgp; | |
using Org.BouncyCastle.Security; | |
using System; | |
using System.IO; | |
namespace Helpers | |
{ | |
public class EncryptionHelper | |
{ |
This file contains hidden or 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 { Input, Directive, HostListener } from "@angular/core"; | |
import { NgControl } from "@angular/forms"; | |
import { DecimalPipe } from "@angular/common"; | |
/* | |
* Form control decimal directive. | |
* Pass optional custom regex and pipe expression. | |
* */ | |
@Directive({ |
NewerOlder