Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Always Coding

Brian briandilley

:octocat:
Always Coding
View GitHub Profile
View NonFungibleToken
pub contract interface NonFungibleToken {
pub var totalSupply: UInt64
pub event ContractInitialized()
pub event Withdraw(id: UInt64, from: Address?)
pub event Deposit(id: UInt64, to: Address?)
pub resource interface INFT {
pub let id: UInt64
View TenantService.cdc
import NonFungibleToken from 0xNONFUNGIBLETOKEN
pub contract TenantService: NonFungibleToken {
// basic data about the tenant
pub let version: UInt32
pub let name: String
pub let description: String
pub var closed: Bool
View NFTMetaDataExample.cdc
import NonFungibleToken from 0xNONFUNGIBLETOKEN
pub contract NFTMetaDataExample: NonFungibleToken {
// The immutable data for an NFT, this is the actual NFT
//
pub resource NFT: NonFungibleToken.INFT {
pub let id: UInt64
pub let metadata: {String: TenantService.MetadataField}
@briandilley
briandilley / # nginx-full - 2020-05-03_12-47-54.txt
Created May 3, 2020
nginx-full (denji/nginx/nginx-full) on macOS 10.15.4 - Homebrew build logs
View # nginx-full - 2020-05-03_12-47-54.txt
Homebrew build logs for denji/nginx/nginx-full on macOS 10.15.4
Build date: 2020-05-03 12:47:54
View PendingDeliveriesUpdater.java
import java.util.Collection;
import com.graphhopper.jsprit.core.algorithm.recreate.listener.InsertionStartsListener;
import com.graphhopper.jsprit.core.algorithm.recreate.listener.JobInsertedListener;
import com.graphhopper.jsprit.core.algorithm.state.StateId;
import com.graphhopper.jsprit.core.algorithm.state.StateManager;
import com.graphhopper.jsprit.core.algorithm.state.StateUpdater;
import com.graphhopper.jsprit.core.problem.Capacity;
import com.graphhopper.jsprit.core.problem.Location;
import com.graphhopper.jsprit.core.problem.job.Delivery;
View dates.ts
export const ONE_MILLISECOND: number = 1;
export const ONE_SECOND: number = ONE_MILLISECOND * 1000;
export const ONE_MINUTE: number = ONE_SECOND * 60;
export const ONE_HOUR: number = ONE_MINUTE * 60;
Date.prototype.getUTCTime = getUTCTime;
Date.prototype.isEqual = isEqual;
Date.prototype.isBefore = isBefore;
Date.prototype.isAfter = isAfter;
View gist:492895c6384f5eb7572006f2f7f7cdb7
export const ONE_MILLISECOND: number = 1;
export const ONE_SECOND: number = ONE_MILLISECOND * 1000;
export const ONE_MINUTE: number = ONE_SECOND * 60;
export const ONE_HOUR: number = ONE_MINUTE * 60;
Date.prototype.getUTCTime = getUTCTime;
Date.prototype.isEqual = isEqual;
Date.prototype.isBefore = isBefore;
Date.prototype.isAfter = isAfter;
View vagrant-debug-out.txt
This file has been truncated, but you can view the full file.
INFO global: Vagrant version: 2.2.3
INFO global: Ruby version: 2.4.4
INFO global: RubyGems version: 2.6.14.1
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/2.2.3/gems/vagrant-2.2.3/bin/vagrant"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_LOG="debug"
WARN global: resolv replacement has not been enabled!
View EtherHiLoRandom.sol
pragma solidity ^0.4.24;
import "./EtherHiloInterfaces.sol";
import "./Ownable.sol";
import "oraclize-api/usingOraclize.sol";
/// @title EtherHiLoRandom
/// @dev the contract than handles the EtherHiLo random numbers
contract EtherHiLoRandom is usingOraclize, Ownable, EtherHiLoRandomNumberGenerator {
View BaseRxComponent.ts
export class BaseRxComponent
implements OnDestroy {
private subscription: Subscription = new Subscription();
protected manage(teardown: TeardownLogic): Subscription {
return this.subscription.add(teardown);
}